Skip to content

Instantly share code, notes, and snippets.

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 cfstras/28c2057b71e6fb91f694272bba88b805 to your computer and use it in GitHub Desktop.
Save cfstras/28c2057b71e6fb91f694272bba88b805 to your computer and use it in GitHub Desktop.
Installing tcpdump on an arm device without package manager
DEVICE=1.2.3.4
MIRROR=http://archives.fedoraproject.org/pub/archive/fedora/linux/releases
FEDORA=29
FILE=tcpdump-4.9.2-6.fc29.armv7hl.rpm  
PACKAGE=Everything/armhfp/os/Packages/t/$FILE

wget $MIRROR/$FEDORA/$PACKAGE

# see https://gist.github.com/cfstras/4856e48fd4d68eb7debaa20d5e63c6de
x $FILE

scp usr/sbin/tcpdump $DEVICE:/tmp/
ssh $DEVICE

On device:

FILTER="(host 1.2.3.5) or (host 1.2.3.6)"

/tmp/tcpdump -Z root "$FILTER" -w /tmp/dump.pcap
# now, run your test
# press Ctrl+C

On your box:

scp $DEVICE:/tmp/dump.pcap .
wireshark dump.pcap
This file has been truncated, but you can view the full file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment