This file contains 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
#!/usr/bin/node --harmony | |
const data = { | |
username: '12X34567', | |
password: 'abcde12345' | |
}; | |
const address = [ | |
'https://', | |
'\x77\x6C\x61\x6E\x61\x75\x74\x68\x2E\x6E\x6F\x63\x2E\x74\x69\x74\x65\x63\x68\x2E\x61\x63\x2E\x6A\x70\x2F\x6C\x6F\x67\x69\x6E', | |
'.html' |
This file contains 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
#!/bin/bash | |
update() { | |
local VPN_TYPE="$1" | |
local PRODUCT_NAME="$2" | |
local FORCE="$3" | |
local INSTALL="$4" | |
local VPN_DIR="/usr/local/${VPN_TYPE}" | |
local VPN_BIN="${VPN_DIR}/${VPN_TYPE}" | |
local VPN_CMD="${VPN_DIR}/vpncmd" |
This file contains 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
#!/bin/bash | |
VPN_DIR="/usr/local/vpnclient" | |
VPN_CLIENT="${VPN_DIR}/vpnclient" | |
VPN_CMD="${VPN_DIR}/vpncmd" | |
SERVER="yourserver.softether.net" | |
timeout 5 getent hosts ${SERVER} > /dev/null | |
if [ "$?" != "0" ] ; then |