Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- while :
- do
- date -u --rfc-3339=seconds >> ~/test-nordvpn.log
- nordvpn connect US
- sleep 2
- nordvpn status | grep -e "Current server" | awk -F ': ' '{ print $2 }' >> ~/test-nordvpn.log
- nordvpn status | grep -e "Your new IP" | awk -F ': ' '{ print $2 }' >> ~/test-nordvpn.log
- traceroute -m 3 1.1.1.1 >> ~/test-nordvpn.log
- sleep 2
- echo "www.disney.com" >> ~/test-nordvpn.log
- curl -LIX GET https://www.disney.com -H 'Pragma: akamai-x-get-client-ip' | grep -e "x-akamai-pragma-client-ip" | awk -F ': ' '{ print $2 }' >> ~/test-nordvpn.log
- sleep 2
- echo "paypal.com" >> ~/test-nordvpn.log
- curl -LIX GET https://paypal.com -H 'Pragma: akamai-x-get-client-ip' | grep -e "x-akamai-pragma-client-ip" | awk -F ': ' '{ print $2 }' >> ~/test-nordvpn.log
- sleep 2
- nordvpn disconnect
- sleep 100
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement