daily pastebin goal
16%
SHARE
TWEET

Untitled

a guest Feb 13th, 2018 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. echo "var system = require('system'); var page = require('webpage').create(); page.open(system.args[1], function() { console.log(page.content); phantom.exit(); });" > /tmp/read_page.js
  3. choiceserverurl=$(QT_QPA_PLATFORM=offscreen phantomjs /tmp/read_page.js https://nordvpn.com/servers/ | grep -oe 'https://downloads.nordcdn.com/configs/files/ovpn_udp/servers/[^/]*nordvpn.com.udp.ovpn')
  4. wget -O /tmp/choice_server.ovpn $choiceserverurl
  5. sudo openvpn --config /tmp/choice_server.ovpn --auth-user-pass /etc/openvpn/auth_user_pass
  6. rm /tmp/read_page.js
  7. rm /tmp/choice_server.ovpn
RAW Paste Data
Top