Last active
August 29, 2015 13:56
-
-
Save Zren/9283647 to your computer and use it in GitHub Desktop.
Wireshark: Log HTTP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import subprocess | |
#Filter | |
wireshark_filter = "http" | |
#Command | |
wireshark_cmd = [ | |
r"C:\Program Files\Wireshark\wireshark.exe", | |
"-k", # Start monitoring immediately | |
"-i", r"\Device\NPF_{5F5BB5A9-231F-4233-9685-DD91DB350762}", # (Wireless Network Connection) from `wireshark.exe -D` | |
"-Y", wireshark_filter # Default Filter | |
] | |
print " ".join(wireshark_cmd) | |
p = subprocess.Popen(wireshark_cmd) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment