Skip to content

Commit 4229ea3

Browse files
committed
included documentation
1 parent 0cbd968 commit 4229ea3

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed
Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +0,0 @@
1-
#include<stdio.h>
2-
#include<string.h>
3-
4-
char code[] ="\x31\xc0\x31\xdb\x31\xd2\x31\xc9\xb0\x04\xb3\x01\xb9\xa0\x90\x04\x08\xba\x1c\x00\x00\x00\xcd\x80\x31\xc0\xb0\x01\x31\xdb\xcd\x80";
5-
6-
int main(int argc, char *argv[])
7-
{
8-
printf("Shellcode Length: %d\n", (int)strlen(code));
9-
10-
int (*func)();
11-
func = (int (*)()) code;
12-
(int)(*func)();
13-
14-
//int (*ret)() = (int(*)())code;
15-
//ret();
16-
}

0 commit comments

Comments
 (0)