Advertisement
Guest User

Untitled

a guest
Nov 30th, 2019
16,081
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. while :
  4. do
  5. date -u --rfc-3339=seconds >> ~/test-nordvpn.log
  6. nordvpn connect US
  7. sleep 2
  8. nordvpn status | grep -e "Current server" | awk -F ': ' '{ print $2 }' >> ~/test-nordvpn.log
  9. nordvpn status | grep -e "Your new IP" | awk -F ': ' '{ print $2 }' >> ~/test-nordvpn.log
  10. traceroute -m 3 1.1.1.1 >> ~/test-nordvpn.log
  11. sleep 2
  12. echo "www.disney.com" >> ~/test-nordvpn.log
  13. 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
  14. sleep 2
  15. echo "paypal.com" >> ~/test-nordvpn.log
  16. 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
  17. sleep 2
  18. nordvpn disconnect
  19. sleep 100
  20. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement