Skip to content

Instantly share code, notes, and snippets.

@mihaisoloi
Created October 23, 2019 09:56
Show Gist options
  • Save mihaisoloi/c143cb59a89cbdce50243672ede7f147 to your computer and use it in GitHub Desktop.
Save mihaisoloi/c143cb59a89cbdce50243672ede7f147 to your computer and use it in GitHub Desktop.
enters a network container, specified by the PID, captures everything on the interface eth0 on the container and exports it as a file
nsenter -n -t 2132 tcpdump -i eth0 -s 0 -A port 8000 -w capture.tcpdump
@mihaisoloi
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment