Small bugfixes to HTTP capture
git-svn-id: file:///home/svn/framework3/trunk@5486 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
1b96107f3a
commit
2084024822
|
@ -14,7 +14,7 @@
|
||||||
|
|
||||||
<table align="center" width="100%" border=0 cellspacing=0 cellpadding=6>
|
<table align="center" width="100%" border=0 cellspacing=0 cellpadding=6>
|
||||||
<tr><td colspan="2" valign="top" align="center">
|
<tr><td colspan="2" valign="top" align="center">
|
||||||
<h1>Guess Access</h1>
|
<h1>Guest Access</h1>
|
||||||
</td></tr>
|
</td></tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
|
|
|
@ -18,3 +18,7 @@ myspace.com
|
||||||
linkedin.com
|
linkedin.com
|
||||||
orkut.com
|
orkut.com
|
||||||
facebook.com
|
facebook.com
|
||||||
|
|
||||||
|
# Miscellaneous
|
||||||
|
flickr.com
|
||||||
|
amazon.com
|
||||||
|
|
|
@ -150,7 +150,7 @@ class Auxiliary::Server::Capture::HTTP < Msf::Auxiliary
|
||||||
hhead = (req['Host'] || @myhost).split(':', 2)[0]
|
hhead = (req['Host'] || @myhost).split(':', 2)[0]
|
||||||
|
|
||||||
|
|
||||||
cookies = req['Cookies'] || ''
|
cookies = req['Cookie'] || ''
|
||||||
|
|
||||||
|
|
||||||
if(req['Authorization'] and req['Authorization'] =~ /basic/i)
|
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
|
req_ext = req.resource.split(".")[-1].downcase
|
||||||
|
|
||||||
if(ctypes[req_ext])
|
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 =
|
res =
|
||||||
"HTTP/1.1 200 OK\r\n" +
|
"HTTP/1.1 200 OK\r\n" +
|
||||||
"Host: #{mysrc}\r\n" +
|
"Host: #{mysrc}\r\n" +
|
||||||
"Content-Type: #{ctype}\r\n" +
|
"Content-Type: #{ctype}\r\n" +
|
||||||
"Content-Length: 0\r\n" +
|
"Content-Length: #{data.length}\r\n" +
|
||||||
"Connection: Close\r\n\r\n"
|
"Connection: Close\r\n\r\n#{data}"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
cli.put(res)
|
cli.put(res)
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue