Wireshark-dev: [Wireshark-dev] problem in writing a lua script
From: habib zainali g <[email protected]>
Date: Sat, 20 Oct 2007 10:29:55 +0400

          Hello dear guys,

I want to write a Lua script for Tshark to export http data.

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.

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!