![]() Then, when you do a capture and the capture is complete, a “Launch script” dialog will be presented. ![]() To launch a Python script from Airtool, go to Preferences > General and choose “Launch script” as an action to perform after saving the capture file. In this case, Airtool would only display any errors that may occur when running the script. If the script doesn’t produce any output, that’s okay too. It also prevents Airtool from opening Terminal windows, which can be annoying under some circumstances. The reason behind this change was to make it easier to use the output as input to further analysis tasks or for troubleshooting and reporting. ![]() For example, the output file after running the script for airtool_02.37.36.PM.pcap is airtool_02.37.36.PM.pcap.out. The name of the output file is the same as the original file ending with the. In Airtool 1.6, the feature was slightly modified to run the script in the background and save the script’s output to a text file. In the original implementation of the “Launch script” feature, Airtool would launch a Terminal window and then run the script so that users could then inspect its output (if any). The only requirement for the script is to take as its first command line argument the path to a capture file so that Airtool can pass the path of the file when invoking the script. This Python script can do whatever you want. The idea is pretty simple: after completing the capture, the user is presented with a dialog to choose a Python script for post processing the capture file. The “Launch script” feature was demonstrated during Brian’s Ten Talk titled “Automating Wi-Fi Packet Analysis with Pyshark.” For the past WLAN Professionals Conference in Phoenix, AZ (February 21-23, 2017), I collaborated with Brian Long for the development of a feature in Airtool to allow users to run a Python script for post processing capture files.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |