Wireshark-users: [Wireshark-users] problem in writeing a lua script
From: habib zainali g <habibz1366@xxxxxxxxxxx>
Date: Sun, 23 Sep 2007 13:17:07 +0400

Hello dear guys,

I want to write a Lua script for Tshark to export http data (as like as jpeg, html and…).

I write this:

 

Do

                local listener=Listener.new("http")  

                function listener.packet(http_eo,eo_info,payload_data)

                  do

                                                while data<=2400

                                                  do

                                                                print(data,payload_data:range(data))

                                                                data="">

                                                  end

end

end

 

But it only gives me Tcp segment data.

Any help will be accept happily

P.S.: I check all of check boxes in preferences in http protocol



Get news, entertainment and everything you care about at Live.com. Check it out!