We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68f61f3 commit 8069633Copy full SHA for 8069633
modules/exploits/windows/iis/iis_webdav_scstoragepathfromurl.rb
@@ -122,7 +122,7 @@ def exploit
122
},
123
'uri' => target_uri.path
124
)
125
- fail_with(Failure::BadConfig, "Server does not respond to WebDAV request") unless res || res.code != 207
+ fail_with(Failure::BadConfig, "Server did not respond correctly to WebDAV request") if(res.nil? || res.code != 207)
126
127
xml = res.get_xml_document
128
url = URI.parse(xml.at("//a:response//a:href").text)
@@ -157,7 +157,7 @@ def exploit
157
158
159
if res
160
- vprint_status("Server returned #{res.code}")
+ vprint_status("Server returned status #{res.code}")
161
if res.code == 502 || res.code == 400
162
next
163
elsif session_created?
0 commit comments