fix response codes check to avoid second tries to fail
parent
9576d26299
commit
04668c7d61
|
@ -162,7 +162,7 @@ class Metasploit3 < Msf::Exploit::Remote
|
|||
return
|
||||
end
|
||||
|
||||
if (res.code < 200 or res.code >= 300)
|
||||
if (res.code < 200 or res.code > 302)
|
||||
print_error("#{@peer} - Execution failed on #{upload_path} [#{res.code} #{res.message}]")
|
||||
return
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue