Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- display dialog "AIRPORT SHH TUNNEL" buttons {"Tunnel", "Cancel"} default button "Disconnect"
- if button returned of the result is "Cancel" then
- set loop to false
- if button returned of the result is "Tunnel" then
- set loop to true
- tell application "Terminal"
- do shell script "
- sudo networksetup -setsocksfirewallproxy Airport
- ssh -D 8080 -f -C -q -N guest@67.186.178.159" with administrator privileges
- end tell
- display dialog "Connected..." buttons {"Disconnect"} default button "Disconnect"
- repeat while loop is true
- if button returned of the result is "Disconnect" then
- do shell script "sudo networksetup -setsocksfirewallproxystate Airport off" with administrator privileges
- set loop to false
- end if
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement