More verbose failure messages
parent
783a986a19
commit
dcff06eba1
|
@ -343,7 +343,11 @@ class Metasploit3 < Msf::Exploit::Remote
|
||||||
}, 1)
|
}, 1)
|
||||||
|
|
||||||
if r
|
if r
|
||||||
print_error("Received response, exploit probably failed.")
|
if r.code == 404 and r.body =~ /not exist/
|
||||||
|
print_error("File: #{file_name} does not exist.")
|
||||||
|
else
|
||||||
|
print_error("Received response #{r.code}, exploit probably failed.")
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue