15 lines
452 B
Bash
15 lines
452 B
Bash
|
|
#!/bin/bash
|
||
|
|
if [ $1 = '-h' ]
|
||
|
|
then
|
||
|
|
echo "Utility per tunnel SOCKS5 su Chromium"
|
||
|
|
exit 12
|
||
|
|
fi
|
||
|
|
|
||
|
|
if [ $# -ne 1 ]
|
||
|
|
then
|
||
|
|
echo "utilizzo: chtunn <SOCKS5 PORT[1234-65535]>"
|
||
|
|
echo "esempio: ssh user@server.mio -D 1234; /usr/bin/chtunn 1234"
|
||
|
|
exit 1
|
||
|
|
fi
|
||
|
|
`/usr/bin/chromium --proxy-server="socks5://127.0.0.1:$1" --host-resolver-rules="MAP * ~NOTFOUND, EXCLUDE 127.0.0.1" --user-data-dir=google-chrome-$1 %U > /dev/null 1> /dev/null 2> /dev/null &`
|