Updated Slides, Code, Readme
This commit is contained in:
12
x86_32/0x1_SyscallBasics/Example_Code/skeleton_oldschool.c
Normal file
12
x86_32/0x1_SyscallBasics/Example_Code/skeleton_oldschool.c
Normal file
@@ -0,0 +1,12 @@
|
||||
#include <stdio.h>
|
||||
|
||||
unsigned char shellcode[] = "";
|
||||
|
||||
int main()
|
||||
{
|
||||
printf("Shellcode Length: %ld\n", sizeof(shellcode) - 1);
|
||||
int (*ret)() = (int(*)())shellcode;
|
||||
ret();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user