• Stars
    star
    819
  • Rank 55,239 (Top 2 %)
  • Language
    Python
  • Created over 9 years ago
  • Updated almost 4 years ago

Reviews

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

Repository Details

迅雷快鸟 Xunlei Network Accelerator For Router

迅雷快鸟

一个可以运行在路由器的迅雷快鸟(diǎo)和上行提速客户端

在提交issue前,请先阅读须知

快速入门

  • 下载并解压
  • 同目录下新建 swjsq.account.txt,填入用户名,密码,如ahaha,123456(英文逗号),并保存
  • python ./swjsq.py &

详细使用方法

能安装Python的路由器

以小米路由为例

  1. 开启SSH
  2. 安装Python (OpenWRT用户可以安装完整的python包,或者安装python-light, python-codecspython-openssl三个包
  3. swjsq.py通过WinSCP拷贝到路由/data/usr/bin/swjsq,同目录下新建 swjsq.account.txt,填入用户名,密码,如ahaha,123456(英文逗号),并保存
  4. 使用SSH进入目录/data/usr/bin/swjsq,运行$ python ./swjsq.py
  5. 测试运行一次看能否提速,提示Upgrade done: down xxM, up xxM即表示成功。如果只开启了快鸟会员,则只显示down xxM;如果只开启了上行提速会员,则只显示up xxM
  6. 设置自启动 SSH运行vi /etc/rc.local 或者进入LuCI的本地启动脚本界面: 在exit0语句之前加上: nohup python /data/usr/bin/swjsq/swjsq.py >/dev/null 2>&1 &
  7. 重启,稍等几分钟,ssh到路由,使用ps命令查看swjsq是否正常启动,提速是否成功。
  8. 升级路由器固件后,需要重新设置自启动,swjsq一般不需要重新设置,请注意备份swjsq文件。

无法安装Python的路由器

适用于硬件条件有限无法在路由器上安装Python的用户

  1. 在路由器上安装支持https的wget或curl
  2. 在PC上安装Python,2.x或3.x版本均可
  3. 下载swjsq.py,同目录下新建 swjsq.account.txt,填入用户名,密码,如ahaha,123456(英文逗号),并保存
  4. 在PC的命令提示符中进入刚才下载的目录,然后运行python swjsq.py
  5. 提示Upgrade done: down xxM, up %xxM即表示成功登陆成功。如果只开启了快鸟会员,则只显示down xxM;如果只开启了上行提速会员,则只显示up xxM
  6. 安装生成的swjsq_0.0.1_all.ipk,安装后,路由/bin目录将有 swjsq 文件;进入第8步
  7. 如果对路由器/bin目录的修改重启后会丢失,请使用WinSCP手动将前一步中PC上生成的swjsq_wget.sh拷贝到路由器上不会丢失的目录,如/data/usr/bin,并更名为swjsq;进入第9步
  8. 设置自启动,在路由器的启动项界面将swjsq设置为已启用;进入第10步
  9. 手动修改启动项: SSH运行vi /etc/rc.local或者进入LuCI的本地启动脚本界面: 在exit0语句之前加上: nohup /bin/swjsq >/dev/null 2>&1 & 前一步中如果手动拷贝了swjsq_wget.sh,此处应改为: nohup /data/usr/bin/swjsq >/dev/null 2>&1 & 进入第10步
  10. 重启,稍等几分钟,ssh到路由,使用ps命令查看swjsq是否正常启动,或者在路由器系统进程界面查找是否存在{swjsq} /bin/ash /bin/swjsq进程;检查提速是否成功。
  11. 升级路由器固件后,需要重新设置自启动,swjsq一般不需要重新设置,请注意备份swjsq文件。

Docker

下载最新 docker镜像

$ docker pull fffonion/xunlei-fastdick

群晖用户可以直接从套件->Docker->注册表中搜索xunlei-fastdick并下载;如果拉取失败,可以登录SSH后运行上述命令。

或者使用DaoCloud镜像

$ docker pull daocloud.io/fffonion/xunlei-fastdick

指定环境变量作为启动参数

$ docker run -d --name=xunlei-fastdick --restart=unless-stopped -e XUNLEI_UID=<uid> -e XUNLEI_PASSWD=<uid> fffonion/xunlei-fastdick

如果上一步使用了DaoCloud镜像

$ docker run -d --name=xunlei-fastdick --restart=unless-stopped -e XUNLEI_UID=<uid> -e XUNLEI_PASSWD=<uid> daocloud.io/fffonion/xunlei-fastdick

编译基于arm32v7内核的镜像(例如运行在树莓派上)

编译

$ docker build -f Dockerfile.arm32v7 -t yourname/xunlei-fastdick .

运行

$ docker run -d \
    --name=xunlei-fastdick \
    --restart=unless-stopped \
    -e XUNLEI_UID=<uid> \
    -e XUNLEI_PASSWD=<uid> \ 
    yourname/xunlei-fastdick

说明

  • 生成的swjsq_wget.shswjsq_0.0.1_all.ipk包含了账户信息,请不要共享给他人使用
  • 程序会查询快鸟和上行提速的到期时间,并自动选择是否开启快鸟提速和上行提速功能
  • 第一次登陆成功后,用户名和密码会明文保存在.swjsq.session文件中。如果需要更换账号,只需新建一个 swjsq.account.txt,并重新运行python脚本
  • 如果修改或更新了python脚本,下次运行时将重新生成ipk包和swjsq_wget.sh,请重新安装ipk或拷贝swjsq_wget.sh到路由器
  • 会员权限及月加速流量等详见这里
  • 自带这里抄的纯python实现RSA加密,可选安装pycrypto加快(首次)运算速度

同类产品

More Repositories

1

xeHentai

Doujinshi downloader 绅士漫画下载
Python
724
star
2

lua-resty-acme

Automatic Let's Encrypt certificate serving and Lua implementation of ACMEv2 procotol
Lua
159
star
3

lua-resty-openssl

FFI-based OpenSSL binding for OpenResty
Lua
130
star
4

tplink-plug-exporter

TP-Link Smart Plug Prometheus Exporter
Go
122
star
5

lua-resty-sniproxy

SNI Proxy based on stream-lua-nginx-module
Lua
83
star
6

cloudflare-partner-cli

Set CNAME to use Cloudflare using the partner program
Python
73
star
7

lua-resty-multiplexer

Transparent port service multiplexer for stream subsystem
Lua
60
star
8

JJGet

啊,首先,你得有一个晋江课金账号
C#
48
star
9

xeHentai-webui

The web interface for xeHentai https://github.com/fffonion/xeHentai
Vue
32
star
10

MAClient

拡散性ミリオンアーサー Python Client【作死系列
Python
28
star
11

lua-resty-shdict-server

Use ngx.shared as a Redis server
Lua
15
star
12

lua-resty-danmaku

Live danmaku server in OpenResty (WIP)
Lua
12
star
13

GeoIPASNum-Generator

Generate MaxMind format GeoIPASNum.dat from bgp.he.net
Python
11
star
14

ljpack

[WIP] LuaJIT string.buffer serializer/deserializer in golang
Go
9
star
15

httplib2-exp

Some httplib2 scripts; using modified httplib2->https://github.com/fffonion/httplib2-plus
Python
7
star
16

ESP32-e-Paper-DHT22-Display

读取温湿度,并显示在墨水屏上。 基于 TTGO T5-display 和 DHT22。
C++
5
star
17

RoameBot

路游动漫壁纸下载器
Python
4
star
18

kvm-github-actions-runner

Shell
4
star
19

xeHentaiHelper.user.js

The Userscript for xeHentai RPC
JavaScript
4
star
20

JiDan-GuanBing

华科南三门开源鸡蛋灌饼
3
star
21

wcat-makedie

jp.colopl.wcat/白猫プロジェクト makedie toolkit
C#
3
star
22

httplib2-plus

More reasonable httplib2; add chunk read support and fix proxy bugs; forked from httplib2-0.8
Python
3
star
23

mi-vacuum-exporter

Export Mi Home vacuum robot metrics to grafana dashboard
Go
3
star
24

gnuk-64k

GnuK fork that runs on 64KB flash. https://wiki.debian.org/GNUK
C
3
star
25

meta-hisilicon

Openembedded layer for hisilicon hi3716cv200. (krogoth)
PHP
2
star
26

npa-python

Extraction Utility for Nitroplus N2System-based games (reimplementation of https://github.com/Wilhansen/nipa)
Python
2
star
27

lua-resty-openssl-aux-module

C FFI module to interact with SSL operations in OpenResty
C
2
star
28

SleepEarly

Android应用:我不要熬夜了
Java
2
star
29

WeiboImageBed

微博图床一键上传
Python
1
star
30

docker-compile-system

Simplify the process of building Debian package.
Shell
1
star