Skip to content

Commit

Permalink
enlarge shellcode size limit, and wait while shellcode is running cuc…
Browse files Browse the repository at this point in the history
  • Loading branch information
shellbombs authored and jbremer committed Oct 9, 2018
1 parent 8be55c7 commit 1299c43
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions stuff/execsc/execsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,23 @@

int main (int argc, char ** argv) {
int fd;
char buf[2048] = {0};
void *buf = malloc(1024*1024);

if (argc < 2) return 1;

// read in shellcode from analysis target file
fd = open(argv[1], 0);
read(fd, buf, 2048);
read(fd, buf, 1024*1024);
close(fd);

// jump into shellcode
int (*func)();
func = (int (*)()) buf;
(int)(*func)();

getchar();
free(buf);

return 0;
}

0 comments on commit 1299c43

Please sign in to comment.