Wireshark mailing list archives
running a lua function via tshark
From: "Maayan Zadik" <maayanz () designartnetworks com>
Date: Sun, 15 Jan 2012 18:04:10 +0200
HI, I have a lua script range_check.lua It has a function range_check(), which checks the ranges of the fields of each packet in a pcap file, and it is registered to the menu "MENU_TOOLS_UNSORTED" It runs different tests on each packet and saves to a file the Error Log, using a Listener and Field Extractors. This works great in wireshark. I tried running: tshark -X lua_script:range_check.lua -q -r my_capture.pcap but "-X lua_script:range_check.lua" just loads reange_check, it does no run the function "range_check()" on the pcap. Is there a way to run "range_check()"on a given pcap file via tshark? Regards, Maayan Zadik maayanz () designartnetworks com
___________________________________________________________________________ Sent via: Wireshark-dev mailing list <wireshark-dev () wireshark org> Archives: http://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request () wireshark org?subject=unsubscribe
Current thread:
- Getting a pcap filename from a Lua script Maayan Zadik (Jan 15)
- running a lua function via tshark Maayan Zadik (Jan 15)
- Re: running a lua function via tshark Tony Trinh (Jan 15)
- Re: Getting a pcap filename from a Lua script Tony Trinh (Jan 15)
- running a lua function via tshark Maayan Zadik (Jan 15)