Skip to content

Instantly share code, notes, and snippets.

@geek182
Created February 1, 2018 10:35
Show Gist options
  • Save geek182/4247f5823db21d39ba88f83807b250a6 to your computer and use it in GitHub Desktop.
Save geek182/4247f5823db21d39ba88f83807b250a6 to your computer and use it in GitHub Desktop.

Revisions

  1. geek182 created this gist Feb 1, 2018.
    14 changes: 14 additions & 0 deletions tcpdump-survival-kit
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    #spefic interface and dont resolve name
    tcpdump -n -i eth0

    #only tcp
    tcpdump -i eth0 tcp

    #specific port
    tcpdump -i eth0 port 22

    #specific src
    tcpdump -i eth0 src 192.168.0.2

    #spefic destination
    tcpdump -i eth0 dst 50.116.66.139