mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-22 21:36:12 +03:00
23 lines
361 B
Bash
23 lines
361 B
Bash
|
#!/bin/sh
|
||
|
if [ ! "$1" ]; then
|
||
|
echo "Usage: $0 IFACE"
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
iface="$1"
|
||
|
sudo echo
|
||
|
|
||
|
sudo tcpdump -i "$1" -s0 -w microsoft-direct.pcap &
|
||
|
sleep 1
|
||
|
curl https://www.example.com/
|
||
|
|
||
|
sleep 1
|
||
|
sudo pkill tcpdump
|
||
|
|
||
|
sudo tcpdump -i "$1" -s0 -w microsoft-proxy.pcap &
|
||
|
sleep 1
|
||
|
curl --proxy socks5h://127.0.0.1:1080 https://www.example.com/
|
||
|
|
||
|
sleep 1
|
||
|
sudo pkill tcpdump &
|