Skip to content

Commit 04668c7

Browse files
author
jvazquez-r7
committed
fix response codes check to avoid second tries to fail
1 parent 9576d26 commit 04668c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/exploits/windows/http/umbraco_upload_aspx.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def exploit
162162
return
163163
end
164164

165-
if (res.code < 200 or res.code >= 300)
165+
if (res.code < 200 or res.code > 302)
166166
print_error("#{@peer} - Execution failed on #{upload_path} [#{res.code} #{res.message}]")
167167
return
168168
end

0 commit comments

Comments
 (0)