Skip to content

Commit 9a27984

Browse files
committed
switch from error to switch
1 parent a823ca6 commit 9a27984

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

modules/exploits/windows/iis/iis_webdav_upload_asp.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,11 @@ def exploit
149149
end
150150

151151
if (res.code < 200 or res.code >= 300)
152-
print_error("Deletion failed on #{path} [#{res.code} #{res.message}]")
152+
# Changed this to a warning, because red is scary and if this aprt fails,
153+
# honestly it's not that bad. In most cases this is probably expected anyway
154+
# because by default we're using IWAM_*, which doesn't give us a lot of
155+
# freedom to begin with.
156+
print_warning("Deletion failed on #{path} [#{res.code} #{res.message}]")
153157
return
154158
end
155159

0 commit comments

Comments
 (0)