Changeset 5486

Show
Ignore:
Timestamp:
04/21/08 16:49:10 (3 weeks ago)
Author:
hdm
Message:

Small bugfixes to HTTP capture

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • framework3/trunk/data/exploits/capture/http/index.html

    r5484 r5486  
    1515<table align="center" width="100%" border=0 cellspacing=0 cellpadding=6> 
    1616<tr><td colspan="2" valign="top" align="center"> 
    17         <h1>Guess Access</h1> 
     17        <h1>Guest Access</h1> 
    1818</td></tr> 
    1919 
  • framework3/trunk/data/exploits/capture/http/sites.txt

    r5484 r5486  
    1919orkut.com 
    2020facebook.com 
     21 
     22# Miscellaneous 
     23flickr.com 
     24amazon.com 
  • framework3/trunk/modules/auxiliary/server/capture/http.rb

    r5485 r5486  
    151151 
    152152 
    153                 cookies = req['Cookies'] || '' 
     153                cookies = req['Cookie'] || '' 
    154154                 
    155155 
     
    231231                 
    232232                if(ctypes[req_ext]) 
    233                         ctype = ctypes[req_ext] 
     233                        ctype = ctypes['gif'] 
     234 
     235                        data =  
     236                                "\x47\x49\x46\x38\x39\x61\x01\x00\x01\x00\x80\x00" + 
     237                                "\x00\xff\xff\xff\xff\xff\xff\x2c\x00\x00\x00\x00" + 
     238                                "\x01\x00\x01\x00\x00\x02\x02\x44\x01\x00\x3b" 
     239 
    234240                        res = 
    235241                           "HTTP/1.1 200 OK\r\n" + 
    236242                           "Host: #{mysrc}\r\n" + 
    237243                           "Content-Type: #{ctype}\r\n" + 
    238                            "Content-Length: 0\r\n" + 
    239                            "Connection: Close\r\n\r\n" 
     244                           "Content-Length: #{data.length}\r\n" + 
     245                           "Connection: Close\r\n\r\n#{data}" 
     246 
     247 
     248 
    240249 
    241250                        cli.put(res)