Skip to content

Instantly share code, notes, and snippets.

@Zren
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Zren/9283647 to your computer and use it in GitHub Desktop.
Save Zren/9283647 to your computer and use it in GitHub Desktop.
Wireshark: Log HTTP
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