Last active
October 3, 2016 13:07
-
-
Save tolnaiz/69381122f459bca25eb36d941e1816a4 to your computer and use it in GitHub Desktop.
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
set -e | |
# legerősebb máv wifi | |
#BEST_SSID=`/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -s | egrep -o 'MAVSTART\-WiFi[0-9]+' | head -n 1` | |
# wifi csatlakozás | |
#networksetup -setairportnetwork en0 $BEST_SSID | |
# bejelentkezés | |
curl http://captive-portal.mav-start.hu/add_host.php?redirect=google.com --data hfelt=1&accept=Csatlakoz%C3%A1s+a+h%C3%A1l%C3%B3zathoz | |
sleep 3 | |
# ssh csatlakozás N - no command, f - fork background | |
ssh root@46.101.175.246 -p 443 -D 1080 -Nf | |
sleep 3 | |
# proxy beállítás | |
networksetup -setsocksfirewallproxy "Wi-Fi" localhost 1080 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment