Skip to content

Warm-rain/Openwrt-NetKeeper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 

Repository files navigation

#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

###How Does It Work How does it work

###Supported Province

  1. 武汉E信
  2. 重庆
  3. 杭州
  4. 南昌(V18~V32)
  5. 海南
  6. 青海/新疆
  7. 河北
  8. 山东移动

See more at supported radius

###Features

  1. 算法非常有效率,基于位运行优化,嵌入式设备也能轻松运行;
  2. 可移植强,仅有的几个库文件在任何设备均可使用;
  3. 自适应帐号长度,支持带后缀与不带后缀的运算;
  4. 支持原厂OpenWrt、PandoraBox(但并不推荐)。

###Before Start

  • Install a 64-bit Ubuntu on your PC or Virtual-Machine
  • Download the Lastest GCC

###Getting Start

  1. Git clone and read the code. Remember to modify TODO code in source code.

Version: Here Radius: Here Prefix: Here

  1. Unzip the GCC to anywhere

  2. 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
  1. run make in terminal

  2. Upload your "sxplugin.so"

     scp  {drag your `.so` file here}   [email protected]:/usr/lib/pppd/2.4.7/
    
  3. 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'
    
  4. sync your router's time.

  5. reconnect your NetKeeper interface in Luci

##Troubleshooting

  1. Search wiki before ask question https://github.com/miao1007/Openwrt-NetKeeper/wiki
  2. Submit new issue with your log in OpenWRT.

##Acknowledgements

##Developed By Leon - [email protected]

##License

  1. GPL
  2. No TAOBAO use

About

[C/C++] Run Netkeeper on OpenWrt Device

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 75.3%
  • C# 15.2%
  • Makefile 5.0%
  • Shell 4.5%