Skip to content

Instantly share code, notes, and snippets.

@tolnaiz
Last active October 3, 2016 13:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tolnaiz/69381122f459bca25eb36d941e1816a4 to your computer and use it in GitHub Desktop.
Save tolnaiz/69381122f459bca25eb36d941e1816a4 to your computer and use it in GitHub Desktop.
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