Wireshark-users: [Wireshark-users] problem in writeing a lua script
From: habib zainali g <[email protected]>
Date: Wed, 26 Sep 2007 14:08:47 +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



Connect to the next generation of MSN Messenger  Get it now!