mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-24 22:36:09 +03:00
23 lines
361 B
Bash
Executable File
23 lines
361 B
Bash
Executable File
#!/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 &
|