Skip to content

Commit 5ea062b

Browse files
committed
fix bug
1 parent 55b8d67 commit 5ea062b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/exploits/unix/webapp/wp_downloadmanager_upload.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def exploit
5959
'vars_get' => { 'task' => 'wpdm_upload_files' }
6060
)
6161

62-
if res && res.code == 200 && res.body && res.body.length > 0 && res.body !~ /filename.+\.php$/
62+
if res && res.code == 200 && res.body && res.body.length > 0 && res.body =~ /#{Regexp.escape(filename)}$/
6363
uploaded_filename = res.body
6464
register_files_for_cleanup(uploaded_filename)
6565
print_status("#{peer} - File #{uploaded_filename} successfully uploaded")

0 commit comments

Comments
 (0)