• Stars
    star
    217
  • Rank 181,734 (Top 4 %)
  • Language
    Rust
  • License
    GNU General Publi...
  • Created almost 3 years ago
  • Updated about 1 month ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

srun 深澜认证登录,超轻量、多平台,支持多拨、自动探测IP、指定网卡

srun

GitHub stars GitHub forks GitHub issues Release Build GitHub license

Srun authentication system login tools. compatible versions

Features

  • Support both command line and config file
  • Multiple IP acquisition methods
    • User Specified
    • Auto detect
    • User select
    • Query by NIC name
  • Support strict bind
  • Support multiple users login, suitable for multi-dial
  • Support multi CPU architecture
  • Support multi system

Usage

Pre-built binaries

CMD mode

./srun login -u USERNAME -p PASSWORD -i IP [-s AUTH_SERVER]

AUTH_SERVER should contain protocols, e.g. http://10.0.0.1.

Which IP to be authorized?

srun support three methods of specifying IP:

  • use -i IP to specify ip
  • use -d to auto detect ip
  • use --select-ip to select ip
specify IP

You need to check the IP address of each network interfaces in advance and choose the correct IP to be authorized.

detect IP

srun support automatic IP detection, it determines the IP address from the information returned by the authentication server.

This is useful in cases where you only have one IP address to authorize.

If you are multidialing and have multiple legitimate IPs at the same time, you need to authorize multiple IPs at the same time, this method will not authorize all IPs properly.

select IP

This method is similar to the first method, except that it saves you the trouble of manually querying all the IPs.

srun will query all the legitimate IPs in advance and then print a list of IPs for you to choose from.

$ ./srun login -u USERNAME -p PASSWORD --select-ip
Please select your IP:
    1. 192.168.226.5
    2. 10.27.196.218
    3. 172.16.150.1
    4. 192.168.128.1
    5. 198.10.0.1
2
you choose 10.27.196.218
...

Please note that when your computer has only one IP that can be authorized, we will simply omit the selection process and use this IP.

Using a Config

Usually, it is sufficient to specify the information directly using command line parameters.

In order to meet the needs of multi-dial users, srun support reading multiple user information from a config file.

./srun login -c config.json

config file template

{
    "server": "http://10.0.0.1",
    "strict_bind": false,
    "double_stack": false,
    "retry_delay": 300,
    "retry_times": 10,
    "n": 200,
    "type": 1,
    "acid": 12,
    "os": "Windows",
    "name": "Windows 98",
    "users": [
        {
            "username": "username1",
            "password": "password1",
            "ip": "10.1.2.3"
        },
        {
            "username": "username2@cmcc",
            "password": "password2",
            "if_name": "macvlan1"
        }
    ]
}

As you can see, we support ip or if_name.

If your IP will not change, you can use ip to specify directly.

But for multi-dial, IP may be automatically assigned by DHCP and may change, at this time we suggest to use if_name to specify the corresponding NIC name, we will automatically query the IP under that NIC as the IP to be authorized.

On windows, the NIC name should be like {93123211-9629-4E04-82F0-EA2E4F221468}, use --select-ip to see.

Operator selection

Some colleges support network operator selection, which implemented by append the operator code to the username.

Operator code:

  • 中国电信: [chinanet, ctcc]
  • 中国移动: [cmcc]
  • 中国联通: [unicom, cucc]
  • 校园网: [xn]

For example, if you choose cmcc, just append @cmcc to your username, like 202112345@cmcc.

This code needs to be confirmed by capturing packets.

TLS support

To keep the binary as small as possible, the pre-compiled binary remove the non-essential tls support

If your authentication system uses https, You need to compile it yourself with feature tls enabled.

cargo build --features "tls" --release

License

srun © zu1k, Released under the GPL-3.0 License.

More Repositories

1

bs-core

Easy and blazing-fast book searcher, create and search your private library.
TypeScript
6,325
star
2

proxypool

Automatically crawls proxy nodes on the public internet, de-duplicates and tests for usability and then provides a list of nodes
Go
3,818
star
3

nali

An offline tool for querying IP geographic information and CDN provider. 一个查询IP地理信息和CDN服务提供商的离线终端工具.
Go
3,754
star
4

translator

简单、轻量、好用的划词翻译软件
Rust
1,246
star
5

Good-MITM

Rule-based MITM engine. Rewriting, redirecting and rejecting on HTTP(S) requests and responses, supports JavaScript.
Rust
787
star
6

tg-keyword-reply-bot

Telegram关键词自动回复机器人: 根据群组管理员设定的关键词或者正则规则,自动回复文字、图片、文件或者进行永久禁言、临时禁言、踢出等群管操作
Go
528
star
7

http-proxy-ipv6-pool

Make every request from a separate IPv6 address.
Rust
507
star
8

xray-crack

xray社区高级版证书生成,仅供学习研究,正常使用请支持正版。removed due to Chaitin requirements & support to version 1.4.4 & learning purpose
445
star
9

deepl-translate-api

Reverse engineered DeepL translate api
98
star
10

some-mitm-proxy

开始封号了,停止公开服务观察一段时期
71
star
11

hosts-rs

hosts file parsing, modification library, and some derivatives.
Rust
35
star
12

ldap-log

一个LDAP请求监听器,摆脱dnslog平台和java
Rust
34
star
13

globalssh4github

利用UCloud的免费GlobalSSH服务加速github的ssh协议
Go
33
star
14

github-hosts

Modify hosts to speed up GitHub access.
Rust
30
star
15

beacon_hook_bypass_memscan

works but not work, cao!
Rust
24
star
16

blog

个人博客,记录和分享我的一些经验、想法和作品
HTML
24
star
17

zu1k

My GitHub profile page
22
star
18

b_search

Rust
20
star
19

my_followers

Automatically generate an avatar wall of followers for your GitHub account
Python
20
star
20

uniclip

Unified Clipboard, just a demo, DO NOT USE!
Rust
18
star
21

LibAFL-Book-zh

LibAFL 文档书 简体中文版
16
star
22

she

课程作业,半成品,数据根据法律不公开
Go
16
star
23

pl0compiler

编译原理实验 PL0简化版程序的词法、语法分析和解释执行
Go
15
star
24

coolq-rsspushbot

RSS订阅的QQ机器人
Go
8
star
25

install-cert

Rust
6
star
26

hexoblog

新仓库: https://github.com/zu1k/blog
HTML
4
star
27

evernote_noad

For Chinese version only
Go
3
star
28

pdf_add_toc

Python
3
star
29

rand_derive-rs

Rust
2
star
30

shorturl

最简单的短链接口,没有过期功能,没有管理功能,不记录任何信息,一句话,就是low,不会有人用作生产环境的
Go
1
star
31

opencv-rs-learn

Rust
1
star