Skip to content

Commit

Permalink
fix(exploit): fix argv[1] to static
Browse files Browse the repository at this point in the history
  • Loading branch information
V4bel-theori committed Aug 16, 2024
1 parent e2a1ac7 commit 215b03b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
exploit:
gcc -o exploit exploit.c --static -Wno-format

run:
./exploit


clean:
rm -rf exploit
Binary file modified pocs/linux/kernelctf/CVE-2024-41010_lts/exploit/lts-6.6.35/exploit
100644 → 100755
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -1095,6 +1095,7 @@ int run(void)

int main(int argc, char *argv[])
{
usleep_time = atoi(argv[1]);
while(run() < 0);
usleep_time = atoi("500000");
for(int i=0; i<0x100; i++)
run();
}

0 comments on commit 215b03b

Please sign in to comment.