Total Pageviews

Monday, 5 March 2018

ssct自动帮你搜索免费的ss账号并可充当ss客户端程序

ShadowSocks ConnecTion

ssct Documentation Status
A wrapper tool for shadowsocks to consistently bypass firewalls.

Quick start

Automatically connect

The easiest way to run this tool is just type ssct in terminal, and ssct will acquire available shadowsocks server accounts from ishadowsocks and connect to it automatically.

Connect to a specific ss server

First, show all ss servers by --list option.
ssct --list
Then, connect to a specific server by -n option.
ssct -n 5
Alternatively, you can connect a custom ss server.
ssct -s <server_addr> -p <server_port> -l <local_port> -k <password> -m <method>

Usage

Requirements

(需要python3环境。在mac上,可运行brew install python3来安装.python3的默认安装目录为/usr/local/Cellar/python/3.6.4_3,可执行文件在/usr/local/Cellar/python/3.6.4_3/bin/里面,里面有pip3.6和python3.6这2个可执行文件,然后brew link --overwrite python.)

(注:

yudeMacBook-Air:~ brite$ which python
/usr/local/bin/python (这个是运行brew link --overwrite python之后,自动新建的快捷方式。它在环境变量里,override了mac系统原来的python的快捷方式
/usr/bin/python.因为存在/usr/local/bin/python3.6,所以可以删除/usr/local/bin/python文件.)

yudeMacBook-Air:~ brite$ /usr/local/bin/python --version
Python 3.6.4
yudeMacBook-Air:~ brite$ /usr/local/bin/python3.6 --version
Python 3.6.4
yudeMacBook-Air:~ brite$ rm /usr/local/bin/python
yudeMacBook-Air:~ brite$ which python
/usr/bin/python
yudeMacBook-Air:~ brite$ python --version
Python 2.7.10
yudeMacBook-Air:~ brite$ /usr/bin/python --version
Python 2.7.10 (这样就保留了
mac系统原来的2.7.10版的python)

1 Install shadowsocks and requests (Required)
pip3 install shadowsocks
pip3 install requests
2 Install prettytable (Optional)
pip3 install prettytable
Note: The module prettytable is optional, but would be better if installed.
(运行上面的三条命令后,才可以成功运行ssct这个可执行文件的有关命令:
./ssct --list
./ssct -n 5
然后设置浏览器的socks5代理服务器为127.0.0.1:1080 ,浏览器即可翻墙)

Configuration for chrome and firefox

  1. Install extension Proxy SwitchyOmega (Chrome version, Firefox version).
  2. Open the options of SwitchyOmega, and configure as below.
    set switchyomega proxy
  3. List servers and select one to connect, or just type ssct to connect automatically. start ssct
  4. Select proxy option in chrome or firefox and enjoy it. select proxy option

More options

optional arguments:
  -h, --help         show this help message and exit

ssct options:
  -n <num>           connect server number
  --list             list all ss servers
  --version          show program's version number and exit

shadowsocks options:
  -c <config>        path to config file
  -s <addr>          server address, auto crawl online
  -p <port>          server port, auto crawl online
  -b <addr>          local binding address [default: 127.0.0.1]
  -l <port>          local port [default: 1080]
  -k <password>      password, auto crawl online
  -m <method>        encryption method, auto crawl online
  -t <timeout>       timeout in seconds [default: 300]
  --fast-open        use TCP_FASTOPEN, requires Linux 3.7+
  -d <daemon>        daemon mode, one of start, stop and restart
  --pid-file <file>  pid file for daemon mode
  --log-file <file>  log file for daemon mode
  --user <user>      username to run as
  -v, -vv            verbose mode
  -q, -qq            quiet mode, only show warnings/errors
Connect to the available server automatically without any argument.

from https://github.com/wanjunzh/ssct

No comments:

Post a Comment