mirror of
https://github.com/autistic-symposium/sec-pentesting-toolkit.git
synced 2025-04-27 19:16:08 -04:00
13 lines
406 B
C
13 lines
406 B
C
#include <stdio.h> //IO header
|
|
#include <string.h> //Functions on favor of strings
|
|
#include <stdlib.h> //exit() function
|
|
char shellcode[] = ""; /* Global array */
|
|
int main(int argc, char **argv)
|
|
{
|
|
int (*ret)(); /* ret is a func pointer*/
|
|
ret = (int(*)())shellcode; /* ret points to our shellcode */
|
|
|
|
(int)(*ret)(); /* shellcode is type caste as a function */
|
|
exit(0); /* exit() */
|
|
}
|