-- Author: Lukasz Taczuk (lukasz at gmail com) -- This script show every URL that is accessed from the computer -- regardless of the browser -- this is going to be our tap tap_http = nil hostExtr = Field.new("http.host") uriExtr = Field.new("http.request.uri") ipExtr = Field.new("ip.dst") -- first we declare the tap called "http tap" with the filter it is going to use tap_http = Listener.new("frame","http.request") -- then we define a function to (re)initialize our counter -- this one is going to be called every time the capture restarts (2) function tap_http.reset() end -- this function will get called at the end(3) of the capture to print the summary function tap_http.draw() end -- this function is going to be called once each time the filter of the tap matches function tap_http.packet(pinfo,tvb,userdata) local host = hostExtr() local uri = uriExtr() local ip = ipExtr() if string.sub(uri.value, 1, 7) == "http://" then -- We are probably using a proxy print(uri.value) else if host ~= nil then print("http://" .. host.value .. uri.value) else print("http://" .. tostring(ip.value) .. uri.value) end end end