mirror of
https://github.com/carlospolop/hacktricks
synced 2024-11-14 08:57:55 +00:00
Merge pull request #539 from oddrabbit/patch-8
Added in Capture packets remotely with Wireshark and tcpdump over SSH
This commit is contained in:
commit
624fb4073f
1 changed files with 7 additions and 0 deletions
|
@ -240,6 +240,13 @@ tcpdump -i <IFACE> icmp #Listen to icmp packets
|
|||
sudo bash -c "sudo nohup tcpdump -i eth0 -G 300 -w \"/tmp/dump-%m-%d-%H-%M-%S-%s.pcap\" -W 50 'tcp and (port 80 or port 443)' &"
|
||||
```
|
||||
|
||||
One can, also, capture packets from a remote machine over an SSH session with Wireshark as the GUI in realtime.
|
||||
|
||||
```
|
||||
ssh user@<TARGET IP> tcpdump -i ens160 -U -s0 -w - | sudo wireshark -k -i -
|
||||
ssh <USERNAME>@<TARGET IP> tcpdump -i <INTERFACE> -U -s0 -w - 'port not 22' | sudo wireshark -k -i - # Exclude SSH traffic
|
||||
```
|
||||
|
||||
### Bettercap2
|
||||
|
||||
```bash
|
||||
|
|
Loading…
Reference in a new issue