lua - Sending UDP Packets from Wireshark / tshark -
i working "real time" data analysis toolchain separated 2 parts. first part fetches data analyzed, packs udp packet , sends host. second part, running on aforementioned host, receives udp packets , performs analysis on received packets. "real time" mean output of analysis toolchain should appear live human user, latencies of 100 ms acceptable.
i looking making new data source available receiving part. data looking being transferred on ethercat bus, can sniff. wireshark/tshark have dissector ethercat packets. said, it's simple @ data in script running within wireshark/tshark. since have little control on second part of analysis, cannot readily modify second part sniff ethercat frames via pcap or somesuch.
is possible send udp packets script running in wireshark/tshark?
wireshark's lua doesn't have way available out-of-the-box, it's stock lua can write wireshark lua script can import (i.e., use require) other lua script or compiled lua dll/so library. so, example, use luasocket library send packets within wireshark lua script.
note there no event loop available wireshark lua scripts, receiving packets via luasocket isn't going work, afaik. since you're talking sending on udp, , sending when wireshark lua script invoked (i.e., because you'd send() call inside tap or dissector), think should work. if does/doesn't please post back, because question comes , , know.
Comments
Post a Comment