#Openwrt-NetKeeper
###Overview
This is an algorithm(C/Linux) to generate the real username during PPPoE. I disassembled the code from the Android version , modified it to run the algorithm on OpenWRT.
这是一个基于OpenWRT的闪讯拨号算法的实现。通过对Android版的反编译,获得到了拨号流程,并把它移植到OpenWRT上运行,实现打破毒瘤电信垄断的效果。
论坛见这里
心跳已经通过Android版反编译出来了,不过应该是烂尾了,找工作没时间移植了(用脚本语言发套接字就可以).... https://github.com/miao1007/android-netkeeper
###Supported Province
- 武汉E信
- 重庆
- 杭州
- 南昌(V18~V32)
- 海南
- 青海/新疆
- 河北
- 山东移动
See more at supported radius
###Features
- 算法非常有效率,基于位运行优化,嵌入式设备也能轻松运行;
- 可移植强,仅有的几个库文件在任何设备均可使用;
- 自适应帐号长度,支持带后缀与不带后缀的运算;
- 支持原厂OpenWrt、PandoraBox(但并不推荐)。
###Before Start
- Install a 64-bit Ubuntu on your PC or Virtual-Machine
- Download the Lastest GCC
###Getting Start
- Git clone and read the code. Remember to modify TODO code in source code.
Version: Here Radius: Here Prefix: Here
-
Unzip the GCC to anywhere
-
edit /src/makefile, change the defalut
CC
and-I
to your GCC‘s location
##Sample code
#Get Lastest GCC in http://downloads.openwrt.org/snapshots/trunk/
#This is a demo for Netgear WNDR3800(AR71XX)
#TODO : Change the location for your GCC’s location
CC=/home/leon/netkeeper/OpenWrt-Toolchain-ar71xx-for-mips_34kc-gcc-4.8-linaro_uClibc-0.9.33.2/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/bin/mips-openwrt-linux-gcc
CFLAGS=-Os -Wall
all:sxplugin.so
sxplugin.so:
$(CC) $(CFLAGS) sxplugin.c -fPIC -I/home/leon/netkeeper/OpenWrt-Toolchain-ar71xx-for-mips_34kc-gcc-4.8-linaro_uClibc-0.9.33.2/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/include -shared -o sxplugin.so
-
run
make
in terminal -
Upload your "sxplugin.so"
scp {drag your `.so` file here} [email protected]:/usr/lib/pppd/2.4.7/
-
Configure your router
ssh [email protected] vi /etc/config/network
To configure your wan interface
config interface 'NetKeeper' option proto 'pppoe' option ifname 'eth0.2' option pppd_options 'plugin sxplugin.so' option username 'phone number' option password 'xxxxx' option metric '0'
-
sync your router's time.
-
reconnect your NetKeeper interface in Luci
##Troubleshooting
- Search wiki before ask question https://github.com/miao1007/Openwrt-NetKeeper/wiki
- Submit new issue with your log in OpenWRT.
##Acknowledgements
##Developed By Leon - [email protected]
##License
- GPL
- No TAOBAO use