Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>While this may be doable with Wireshark, it is orders of magnitude easier with <a href="http://www.bro-ids.org" rel="nofollow">Bro</a>. </p> <h1>Extracting URIs</h1> <p>Simply run it with your trace file:</p> <pre><code>bro -r &lt;trace&gt; </code></pre> <p>This invocation generates a bunch of log files in the current directory. The one you are interested in is <code>http.log</code>. You can filter the output to obtain only the GET requests:</p> <pre><code>bro-cut id.orig_h id.resp_h method host uri &lt; http.log | awk '$3 == "GET"' </code></pre> <p>Example output:</p> <pre><code>192.168.1.104 212.96.161.238 GET update.avg.com /softw/90/update/avg9infowin.ctf 192.168.1.104 77.67.44.206 GET backup.avg.cz /softw/90/update/u7avi1777u1705ff.bin 192.168.1.104 198.189.255.75 GET aa.avg.com /softw/90/update/u7iavi2511u2510ff.bin 192.168.1.104 77.67.44.206 GET backup.avg.cz /softw/90/update/x8xplsb2_118c8.bin </code></pre> <p>As you can see, the last two columns make up the full URL. To remove the space in-between, you could use awk to concatenate the last two fields.</p> <h1>Extracting Files</h1> <p>Note: the upcoming Bro 2.1 release will have major improvements for file extractions. Until then, you can extract all files from a HTTP stream by specifying the MIME type of the files to store:</p> <pre><code>bro -r &lt;trace&gt; 'HTTP::extract_file_type = /video\/avi/' </code></pre> <p>Bro sniffs the MIME type of a HTTP body and if it matches the regular expression <code>/video\/avi/</code>, it creates a file with the prefix <code>http-item</code>. You can change the prefix name by redefining the <code>HTTP::extraction_prefix</code> variable.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload