Small bugfixes to HTTP capture

git-svn-id: file:///home/svn/framework3/trunk@5486 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2008-04-21 21:49:10 +00:00
parent 1b96107f3a
commit 2084024822
3 changed files with 18 additions and 5 deletions

View File

@ -14,7 +14,7 @@
<table align="center" width="100%" border=0 cellspacing=0 cellpadding=6>
<tr><td colspan="2" valign="top" align="center">
<h1>Guess Access</h1>
<h1>Guest Access</h1>
</td></tr>
<tr>

View File

@ -18,3 +18,7 @@ myspace.com
linkedin.com
orkut.com
facebook.com
# Miscellaneous
flickr.com
amazon.com

View File

@ -150,7 +150,7 @@ class Auxiliary::Server::Capture::HTTP < Msf::Auxiliary
hhead = (req['Host'] || @myhost).split(':', 2)[0]
cookies = req['Cookies'] || ''
cookies = req['Cookie'] || ''
if(req['Authorization'] and req['Authorization'] =~ /basic/i)
@ -230,13 +230,22 @@ class Auxiliary::Server::Capture::HTTP < Msf::Auxiliary
req_ext = req.resource.split(".")[-1].downcase
if(ctypes[req_ext])
ctype = ctypes[req_ext]
ctype = ctypes['gif']
data =
"\x47\x49\x46\x38\x39\x61\x01\x00\x01\x00\x80\x00" +
"\x00\xff\xff\xff\xff\xff\xff\x2c\x00\x00\x00\x00" +
"\x01\x00\x01\x00\x00\x02\x02\x44\x01\x00\x3b"
res =
"HTTP/1.1 200 OK\r\n" +
"Host: #{mysrc}\r\n" +
"Content-Type: #{ctype}\r\n" +
"Content-Length: 0\r\n" +
"Connection: Close\r\n\r\n"
"Content-Length: #{data.length}\r\n" +
"Connection: Close\r\n\r\n#{data}"
cli.put(res)
return