Sg4Dylan / Openwrt-NetKeeper

An algorithm for NetKeeper PPPOE

Home Page:http://www.right.com.cn/forum/thread-141979-1-1.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

#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.

  2. Unzip the GCC to anywhere

  3. Git clone and read /src/makefile, change the defalut CC and -I to your GCC‘s location,and modify TODO code in makefile.

  4. run make in terminal

  5. Upload your "sxplugin.so"

     scp  {drag your `.so` file here}   root@192.168.1.1:/usr/lib/pppd/2.4.7/
    
  6. Configure your router

     ssh root@192.168.1.1
     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'
    
  7. sync your router's time.

  8. 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 - miao1007@gmail.com

##License

  1. GPL
  2. No TAOBAO use

About

An algorithm for NetKeeper PPPOE

http://www.right.com.cn/forum/thread-141979-1-1.html


Languages

Language:C 96.0%Language:Makefile 4.0%