This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ubnt@edgerouter:/home/ubnt$ HOSTNAME_LIST=$(curl "https://nordvpn.com/wp-admin/admin-ajax.php?action=servers_recommendations&filters=\{%22country_id%22:228,%22servers_groups%22:\[11\],%22servers_technologies%22:\[3\]\}" \ | |
| -H 'accept-language: en-US,en;q=0.9' \ | |
| -H 'user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.119 Safari/537.36' \ | |
| -H 'authority: nordvpn.com' \ | |
| -H 'x-requested-with: XMLHttpRequest' \ | |
| -H 'referer: https://nordvpn.com/servers/tools/' | \ | |
| jq -r '.[].hostname' | tr '\n' ' ' | tee /tmp/nord) | |
| % Total % Received % Xferd Average Speed Time Time Time Current | |
| Dload Upload Total Spent Left Speed | |
| 100 13685 0 13685 0 0 35725 0 --:--:-- --:--:-- --:--:-- 35731 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| Generate wireguard config from cloudflare zero trust | |
| Credit to https://gitlab.com/Misaka-blog/warp-script | |
| """ | |
| import datetime | |
| import http.cookiejar | |
| import json | |
| import random | |
| import re |