Repository navigation
New SSH module proposal: tcpdump_capture #1290
XoTourLiff
started this conversation in
Ideas
Replies: 1 comment
|
What would be the benefit over just doing a script to run a capture command backgrounded, then sleep $TIME and then download the pcap? Seems like this could easily be solved in a bash script instead, no? |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi everyone,
I'd like to propose a new SSH module called tcpdump_capture that allows capturing network traffic on a remote target and automatically retrieving the resulting pcap file locally.
Use case:
During pentests or internal audits, it's often useful to capture traffic on a compromised machine without needing a separate SSH session or manual file transfer.
Features:
Detects available capture tool on the target (tcpdump, tshark, dumpcap)
If no tool is found, the module informs the user and optionally accepts a local binary path via UPLOAD to push it to the target.
Automatically retrieves the pcap locally after capture,
AUTOCLEAN option to remove uploaded binary and pcap after capture,
Configurable options: DURATION, IFACE, REMOTE, LOCAL, UPLOAD, AUTOCLEAN
Usage:
Would this be something you'd be interested in merging? Happy to open a PR if so.
Thanks!
XoTourLiff
All reactions