Coder Social home page Coder Social logo

openwrt-netkeeper's Introduction

Openwrt-NetKeeper

Search for Ubuntu Version? click here

netkeeper4.x pppoe服务器拦截账号方法

中文说明

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.

Click here to see BBS topic.

How does it work

Features

  1. Efficiency algorithm, specially optimized for embedded system.
  2. Portable, you can swift this script to other devices.
  3. Auto-fit all kinds of username input.
  4. Support both OpenWRT and PandoraBox(not recommend).

Supported Province

See all suppported provinces at supported radius

For Changes in Latest Version of Netkeeper (创翼/翼讯/Netkeeper/极速卡/山东移动高校宽带/河北联通)

See Wiki

Usage

1. Download the Latest release

  1. sxplugin.so
  2. confnetwork.sh

after downloaded, please edit pppd_options username password in confnetwork.sh ,

2. Upload

use scp(you can try WinScp on windows ) to upload

yourprovince_sxplugin.so -> /usr/lib/pppd/2.4.7/
confnetwork.sh -> /tmp/

3. Config

ssh into the router and run the script

chmod a+x /tmp/confnetwork.sh
sh /tmp/confnetwork.sh 

finially sync your router's time and reconnect your NetKeeper interface in browser

Development

This is for advanced development only.

1. Compile from source code

As a prerequisite you should setup a 64-bit Ubuntu(recommend 14.04) with its dependencies. Or you can use Coding.net's WorkSpace to compile the binary

1.1. Get the source code on your machine

git clone --depth=1 https://github.com/miao1007/Openwrt-NetKeeper.git

1.2. Get Toolchain

download latest Toolchain

or use script

#this is a sample for mipsel(Little Endian) device
wget https://downloads.openwrt.org/barrier_breaker/14.07/ramips/mt7620a/OpenWrt-Toolchain-ramips-for-mipsel_24kec%2bdsp-gcc-4.8-linaro_uClibc-0.9.33.2.tar.bz2 -O - | tar xj
#or chinese mirror
#wget http://mirrors.ustc.edu.cn/openwrt/barrier_breaker/14.07/ramips/mt7620a/OpenWrt-Toolchain-ramips-for-mipsel_24kec%2bdsp-gcc-4.8-linaro_uClibc-0.9.33.2.tar.bz2 -O - | tar xj

1.3. Config

Read and edit makefile and confnetwork.sh TODOS carefully

1.4. Compile

cd Openwrt-NetKeeper/src/
make all

1.5. (Optinal)Download from Cloud

if using cloud IDE, try

tar zcf sxplugin_mipsel.tar *_sxplugin.so

and download.

2. Config router

You can use my script to upload

make upload

Troubleshooting

  1. Search wiki before ask question
  2. Submit new issue with your log in OpenWRT.

Acknowledgements

Developed By

Leon - [email protected]

License

  1. GPL
  2. No TAOBAO use

Bitdeli Badge

openwrt-netkeeper's People

Contributors

23171580 avatar bitdeli-chef avatar cuyl avatar danerlt avatar doodlehuang avatar elimsc avatar gmfghp avatar huipengly avatar kuretru avatar logic-accepted avatar luoxufeiyan avatar miao1007 avatar mumuhhh avatar realityone avatar sg4dylan avatar stawidy avatar sunflyer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

openwrt-netkeeper's Issues

编译make的时候出错求协助

admini@admini-virtual-machine:$ cd Openwrt-NetKeeper/src/
admini@admini-virtual-machine:
/Openwrt-NetKeeper/src$ make all
make: *** 没有规则可以创建目标“all”。 停止。
admini@admini-virtual-machine:~/Openwrt-NetKeeper/src$

//附上makefile
//是MT7620N

download latest GCC in https://github.com/miao1007/Openwrt-NetKeeper/wiki#2-%E5%A6%82%E4%BD%95%E4%B8%8B%E8%BD%BDgcc

This is a demo for MTK7620A

TODO:填写gcc中bin与include所在的目录(根目录)

LOCATION=/home/admini/OpenWrt-Toolchain-ramips-for-mipsel_24kec+dsp-gcc-4.8-linaro_uClibc-0.9.33.2/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2

TODO:请注意不同型号(mips/mipsel)路由器此处gcc文件名可能略有不同

CC=$(LOCATION)/bin/mipsel-openwrt-linux-gcc

TODO:可能需要修改pppd的版本,取决于路由器的/usr/lib/pppd/,目前主流的14.09是2.4.7

PPPD_VER=2.4.5
CFLAGS=-Os -Werror -I$(LOCATION)/include -fPIC -DPPPOE_VER='"${PPPD_VER}"'

TODO: change RADIUS

ChongQing Netkeeper: cqxinliradius002

ChongQing Netkeeper(0094): xianxinli1radius

WuHan E xin: hubtxinli01

Hangzhou(Tested on HDU): singlenet01

NanChangV18: nanchang3.0

NanChangV12~V17: radius

NanChangV29: nanchang3.0

NanChangV32: jiangxi4.0

QingHai: qhtel@xiaoyuanyi

hebei: hebeicncxinli002

ShanDong Mobile : shandongmobile13

TODO: Change PREFIX1

NanChangV32: '1'

Others: '\n'

all:chongqing_sxplugin wuhan_sxplugin hangzhou_sxplugin nanchang_sxplugin qinghai_sxplugin shandongmobile_sxplugin hebei_sxplugin shandongmobile_sxplugin hainan_sxplugin wo_sxplugin
@find *.so
@echo "拨号组件编译成功,注意修改confnetwork.sh的sxplugin名称为本省的名称,以及拨号帐号与密码!,然后运行make upload"

you can also upload only your province's so file

upload:
@echo "正在上传拨号组件,请输入路由器ssh密码"
scp *.so [email protected]:/usr/lib/pppd/${PPPD_VER}/
@echo "正在上传网络配置脚本,请输入路由器ssh密码"
scp confnetwork.sh [email protected]:/tmp/
@echo "正在登录路由器,请在输入路由器ssh密码后,运行sh /tmp/confnetwork.sh"
ssh [email protected]

chongqing_sxplugin:
@$(CC) $(CFLAGS) sxplugin.c -DRADIUS='"xianxinli1radius"' -DPREFIX1="'\n'" -shared -o $@.so

wuhan_sxplugin:
@$(CC) $(CFLAGS) sxplugin.c -DRADIUS='"hubtxinli01"' -DPREFIX1="'\n'" -shared -o $@.so

hangzhou_sxplugin:
@$(CC) $(CFLAGS) sxplugin.c -DRADIUS='"singlenet01"' -DPREFIX1="'\n'" -shared -o $@.so

nanchang_sxplugin:
@$(CC) $(CFLAGS) sxplugin.c -DRADIUS='"jiangxi4.0"' -DPREFIX1="'1'" -shared -o $@.so

qinghai_sxplugin:
@$(CC) $(CFLAGS) sxplugin.c -DRADIUS='"qhtel@xiaoyuanyi"' -DPREFIX1="'\n'" -shared -o $@.so

shandongmobile_sxplugin:
@$(CC) $(CFLAGS) sxplugin.c -DRADIUS='"shandongmobile13"' -DPREFIX1="'\n'" -shared -o $@.so

hebei_sxplugin:
@$(CC) $(CFLAGS) sxplugin.c -DRADIUS='"hebeicncxinli002"' -DPREFIX1="'\n'" -shared -o $@.so

hainan_sxplugin:
@$(CC) $(CFLAGS) hainan_sxplugin.c -shared -o $@.so

wo_sxolugin:
@$(CC) $(CFLAGS) wo_sxplugin.c -shared -o $@.so

clean *.so

clean:
rm *.so

你好

请问一下在路由器中能不能实现多播,重邮的

求助啊!拨号不成功怎么帮

Mon May 4 00:56:52 2015 daemon.warn pppd[3628]: Timeout waiting for PADS packets
Mon May 4 00:56:52 2015 daemon.err pppd[3628]: Unable to complete PPPoE Discovery
Mon May 4 00:56:52 2015 daemon.info pppd[3628]: Exit.
Mon May 4 00:56:52 2015 daemon.notice netifd: Interface 'wan' is now down
Mon May 4 00:56:52 2015 daemon.info avahi-daemon[2197]: Withdrawing address record for fe80::2276:93ff:fe25:d894 on eth0.2.
Mon May 4 00:56:52 2015 daemon.notice netifd: Interface 'wan' is disabled
Mon May 4 00:56:52 2015 daemon.notice netifd: Interface 'wan' is enabled
Mon May 4 00:56:52 2015 daemon.notice netifd: Interface 'wan' is setting up now
Mon May 4 00:56:52 2015 daemon.notice netifd: wan (8591): uci: Entry not found
Mon May 4 00:56:52 2015 daemon.notice netifd: wan (8591): uci: Entry not found
Mon May 4 00:56:53 2015 daemon.info pppd[8611]: Plugin rp-pppoe.so loaded.
Mon May 4 00:56:53 2015 daemon.info pppd[8611]: RP-PPPoE plugin version 3.8p compiled against pppd 2.4.7
Mon May 4 00:56:53 2015 daemon.info pppd[8611]: Plugin sxplugin.so loaded.
Mon May 4 00:56:53 2015 daemon.info pppd[8611]: sxplugin : init
Mon May 4 00:56:53 2015 daemon.info pppd[8611]: -------------------------------------
Mon May 4 00:56:53 2015 daemon.info pppd[8611]: timenow(Hex)=55465355
Mon May 4 00:56:53 2015 daemon.info pppd[8611]: Begin : beforeMD5
Mon May 4 00:56:53 2015 daemon.info pppd[8611]: 1.<?>
Mon May 4 00:56:53 2015 daemon.info pppd[8611]: 2.<?18084092094>
Mon May 4 00:56:53 2015 daemon.info pppd[8611]: 3.<?18084092094cqxinliradius002?PwH??T?w>
Mon May 4 00:56:53 2015 daemon.info pppd[8611]: 4.length=<47>
Mon May 4 00:56:53 2015 daemon.info pppd[8611]: End : beforeMD5
Mon May 4 00:56:53 2015 daemon.info pppd[8611]: Begin : afterMD5
Mon May 4 00:56:53 2015 daemon.info pppd[8611]: 1.MD5use_1=< b>
Mon May 4 00:56:53 2015 daemon.info pppd[8611]: 2.MD5use_2=< 0>
Mon May 4 00:56:53 2015 daemon.info pppd[8611]: End : afterMD5
Mon May 4 00:56:53 2015 daemon.info pppd[8611]: -------------------------------------
Mon May 4 00:56:53 2015 daemon.info pppd[8611]: sxplugin : user is <
$]A(S b018084092094@bsjdxy>
Mon May 4 00:56:53 2015 daemon.info pppd[8611]: sxplugin : passwd loaded
Mon May 4 00:56:53 2015 daemon.notice pppd[8611]: pppd 2.4.7 started by root, uid 0
Mon May 4 00:56:54 2015 daemon.info avahi-daemon[2197]: Registering new address record for fe80::2276:93ff:fe25:d894 on eth0.2.*.

sxplugin .so应该编译成功啊! 本人使用的是Newifi mini

WNDR4300能用这个吗?

WNDR4300 CPU不是AR71XX 但OPENWRT官网固件把他分到AR71XX里面,那能不能用这个呢?如果不能的话,哪里能找到WNDR4300 GCC啊?

无法加载sxplugin.so?

首先非常感谢你的劳动成果,让我们有了拜托校园网客户端限制的曙光。
我安装你的教程编译了sxplugin.so,也给自己的小米路由器Mini刷上了最新的PandoraBox。
sxplugin.so也已经放在了指定位置。
不过我貌似还是不能使用路由器拨号。
请问这是为什么呢?
最后几行日志如下:

Tue Jul 14 22:35:44 2015 daemon.notice netifd: Interface 'NetKeeper' is setting up now
Tue Jul 14 22:35:44 2015 daemon.info pppd[3045]: Plugin rp-pppoe.so loaded.
Tue Jul 14 22:35:44 2015 daemon.info pppd[3045]: RP-PPPoE plugin version 3.8p compiled against pppd 2.4.7
Tue Jul 14 22:35:44 2015 daemon.notice netifd: NetKeeper (3045): /usr/sbin/pppd: File not found
Tue Jul 14 22:35:44 2015 daemon.err pppd[3045]: File not found
Tue Jul 14 22:35:44 2015 daemon.notice netifd: NetKeeper (3045): /usr/sbin/pppd: Couldn't load plugin sxplugin.so
Tue Jul 14 22:35:44 2015 daemon.err pppd[3045]: Couldn't load plugin sxplugin.so
Tue Jul 14 22:35:44 2015 daemon.notice netifd: Interface 'NetKeeper' is now down

感激不尽!

路由器时间同步问题

我的路由器没有硬件时钟,无法保存时间,但是netkeeper认证需要时间是正确的 ,请问,怎么才能让时间自动同步呢

make 的时候出错

make之后显示如下:
kelo@kelo-VirtualBox:~/netkeeper/Openwrt-NetKeeper-master/src$ make
/home/kelo/netkeeper/OpenWrt-Toolchain-atheros-for-mips_mips32-gcc-4.8-linaro_uClibc-0.9.33.2/toolchain-mips_mips32_gcc-4.8-linaro_uClibc-0.9.33.2/bin/mips-openwrt-linux-gcc: 行 82: /home/kelo/netkeeper/OpenWrt-Toolchain-atheros-for-mips_mips32-gcc-4.8-linaro_uClibc-0.9.33.2/toolchain-mips_mips32_gcc-4.8-linaro_uClibc-0.9.33.2/bin/mips-openwrt-linux-uclibc-gcc.bin: cannot execute binary file: 可执行文件格式错误
/home/kelo/netkeeper/OpenWrt-Toolchain-atheros-for-mips_mips32-gcc-4.8-linaro_uClibc-0.9.33.2/toolchain-mips_mips32_gcc-4.8-linaro_uClibc-0.9.33.2/bin/mips-openwrt-linux-gcc: 行 82: /home/kelo/netkeeper/OpenWrt-Toolchain-atheros-for-mips_mips32-gcc-4.8-linaro_uClibc-0.9.33.2/toolchain-mips_mips32_gcc-4.8-linaro_uClibc-0.9.33.2/bin/mips-openwrt-linux-uclibc-gcc.bin: 成功

makefile:34: recipe for target 'chongqing_sxplugin' failed

make: *** [chongqing_sxplugin] Error 126

kelo@kelo-VirtualBox:~/netkeeper/Openwrt-NetKeeper-master/src$

请解释,我是新手对编译了解的不多,请见谅

有没有9331编译好的固件

想问下,有没有9331编译好的固件,我是小白,刚开始接触linux和openwrt,感觉自己编译这些东西好复杂,有木有编译好的固件,求作者提供啊,或者有没有什么关于编译这方面的教程。。。

武汉e信路由器是360C301

Thu Oct 8 18:12:09 2015 daemon.info pppd[3739]: sxplugin : passwd loaded
Thu Oct 8 18:12:09 2015 daemon.notice pppd[3739]: pppd 2.4.7 started by root, uid 0
Thu Oct 8 18:12:24 2015 daemon.warn pppd[3739]: Timeout waiting for PADO packets
Thu Oct 8 18:12:24 2015 daemon.err pppd[3739]: Unable to complete PPPoE Discovery
Thu Oct 8 18:12:24 2015 daemon.info pppd[3739]: Exit.
Thu Oct 8 18:12:24 2015 daemon.notice netifd: Interface 'NetKeeper' is now down
Thu Oct 8 18:12:24 2015 daemon.notice netifd: Interface 'NetKeeper' is disabled
Thu Oct 8 18:12:24 2015 daemon.notice netifd: Interface 'NetKeeper' is enabled
Thu Oct 8 18:12:24 2015 daemon.notice netifd: Interface 'NetKeeper' is setting up now
Thu Oct 8 18:12:24 2015 daemon.info pppd[3779]: Plugin rp-pppoe.so loaded.
Thu Oct 8 18:12:24 2015 daemon.info pppd[3779]: RP-PPPoE plugin version 3.8p compiled against pppd 2.4.7
这个怎么解决啊

河北地区拨号问题

编译正常,上传正常
pppd是2.4.5已改
但是无法联网,有什么办法看原因吗?
是否需要把 \n 改成 \r\n?

杭州地区,旧版闪讯无法再使用PPPoE。

杭州地区昨天(2015年3月25日)闪讯升级了服务器,旧版的闪讯无法再使用,新版的闪讯会在电脑上安装“必要”驱动,之后才能正常。另外我这儿的学校网络重组,闪讯换用L2TP拨号,LNS地址为183.157.160.5。

南昌,两三天前开始,每21分钟断一次

星空极速直连拨号就没问题。
之前都正常拨号,但是从两三天前开始,每21分钟断一次。

用的是release里编译好的:
https://github.com/miao1007/Openwrt-NetKeeper/releases/download/1.0/sxplugin_mtk7620a_14.04.zip

路由器固件也重装过,完全按照之前的没问题的方法操作,刷好固件以后没有进行其他操作,直接上传拨号插件然后拨号。

路由器型号 极路由2
固件版本 PandoraBox R2 14.09 / LuCI Trunk (0.12+svn-r1024)
内核版本 3.14.44

系统日志:
Fri Oct 23 15:01:16 2015 daemon.info pppd[3668]: sxplugin : passwd loaded
Fri Oct 23 15:01:16 2015 daemon.notice pppd[3668]: pppd 2.4.7 started by root, uid 0
Fri Oct 23 15:01:16 2015 daemon.info pppd[3668]: PPP session is 18643
Fri Oct 23 15:01:16 2015 daemon.warn pppd[3668]: Connected to e0:24:7f:b7:77:36 via interface eth0.2
Fri Oct 23 15:01:16 2015 daemon.info pppd[3668]: Using interface pppoe-wan
Fri Oct 23 15:01:16 2015 daemon.notice pppd[3668]: Connect: pppoe-wan <--> eth0.2
Fri Oct 23 15:01:19 2015 daemon.info pppd[3668]: syncppp not active
Fri Oct 23 15:01:19 2015 daemon.info pppd[3668]: CHAP authentication succeeded: Authentication success,Welcome!
Fri Oct 23 15:01:19 2015 daemon.notice pppd[3668]: CHAP authentication succeeded
Fri Oct 23 15:01:19 2015 daemon.notice pppd[3668]: peer from calling number E0:24:7F:B7:77:36 authorized
Fri Oct 23 15:01:19 2015 daemon.notice pppd[3668]: local LL address fe80::94ed:44a7:36b1:597c
Fri Oct 23 15:01:19 2015 daemon.notice pppd[3668]: remote LL address fe80::e224:7fff:feb7:7736
Fri Oct 23 15:01:19 2015 daemon.notice pppd[3668]: local IP address 100.74.50.227
Fri Oct 23 15:01:19 2015 daemon.notice pppd[3668]: remote IP address 100.74.32.1
Fri Oct 23 15:01:19 2015 daemon.notice pppd[3668]: primary DNS address 202.101.224.69
Fri Oct 23 15:01:19 2015 daemon.notice pppd[3668]: secondary DNS address 202.101.226.69
Fri Oct 23 15:01:19 2015 daemon.notice netifd: Network device 'pppoe-wan' link is up
Fri Oct 23 15:01:19 2015 daemon.notice netifd: Interface 'wan' is now up
Fri Oct 23 15:01:19 2015 user.notice firewall: Reloading firewall due to ifup of wan (pppoe-wan)
Fri Oct 23 15:01:21 2015 daemon.info dnsmasq[3322]: reading /tmp/resolv.conf.auto
Fri Oct 23 15:01:21 2015 daemon.info dnsmasq[3322]: using local addresses only for domain lan
Fri Oct 23 15:01:21 2015 daemon.info dnsmasq[3322]: using nameserver 202.101.224.69#53
Fri Oct 23 15:01:21 2015 daemon.info dnsmasq[3322]: using nameserver 202.101.226.69#53
Fri Oct 23 15:01:21 2015 daemon.notice miniupnpd[3365]: shutting down MiniUPnPd
Fri Oct 23 15:01:21 2015 daemon.err miniupnpd[3365]: sendto(udp_shutdown=-1): Bad file descriptor
Fri Oct 23 15:01:21 2015 daemon.err miniupnpd[3365]: sendto(udp_shutdown=-1): Bad file descriptor
Fri Oct 23 15:01:21 2015 daemon.err miniupnpd[3365]: sendto(udp_shutdown=-1): Bad file descriptor
Fri Oct 23 15:01:21 2015 daemon.err miniupnpd[3365]: sendto(udp_shutdown=-1): Bad file descriptor
Fri Oct 23 15:01:21 2015 daemon.err miniupnpd[3365]: sendto(udp_shutdown=-1): Bad file descriptor
Fri Oct 23 15:01:21 2015 daemon.err miniupnpd[3365]: sendto(udp_shutdown=-1): Bad file descriptor
Fri Oct 23 15:01:21 2015 daemon.err miniupnpd[3365]: sendto(udp_shutdown=-1): Bad file descriptor
Fri Oct 23 15:01:21 2015 daemon.err miniupnpd[3365]: sendto(udp_shutdown=-1): Bad file descriptor
Fri Oct 23 15:01:21 2015 daemon.err miniupnpd[3365]: sendto(udp_shutdown=-1): Bad file descriptor
Fri Oct 23 15:01:21 2015 daemon.err miniupnpd[3365]: sendto(udp_shutdown=-1): Bad file descriptor
Fri Oct 23 15:01:21 2015 daemon.err miniupnpd[3365]: sendto(udp_shutdown=-1): Bad file descriptor
Fri Oct 23 15:01:21 2015 daemon.err miniupnpd[3365]: Failed to broadcast good-bye notifications
Fri Oct 23 15:01:22 2015 daemon.notice miniupnpd[4023]: HTTP listening on port 5000
Fri Oct 23 15:01:22 2015 daemon.warn miniupnpd[4023]: no HTTP IPv6 address, disabling IPv6
Fri Oct 23 15:01:22 2015 daemon.notice miniupnpd[4023]: Listening for NAT-PMP/PCP traffic on port 5351
Fri Oct 23 15:01:24 2015 daemon.info dnsmasq-dhcp[3322]: DHCPDISCOVER(br-lan) b0:d5:9d:2d:e4:61
Fri Oct 23 15:01:24 2015 daemon.info dnsmasq-dhcp[3322]: DHCPOFFER(br-lan) 192.168.1.189 b0:d5:9d:2d:e4:61
Fri Oct 23 15:01:24 2015 daemon.info dnsmasq-dhcp[3322]: DHCPREQUEST(br-lan) 192.168.1.189 b0:d5:9d:2d:e4:61
Fri Oct 23 15:01:24 2015 daemon.info dnsmasq-dhcp[3322]: DHCPACK(br-lan) 192.168.1.189 b0:d5:9d:2d:e4:61 XL_MINER_9882
Fri Oct 23 15:01:58 2015 authpriv.info dropbear[3504]: Exit (root): Exited normally
Fri Oct 23 15:01:58 2015 authpriv.info dropbear[3375]: Exit (root): Exited normally
Fri Oct 23 15:01:58 2015 cron.err crond[2251]: time disparity of 196834 minutes detected
Fri Oct 23 15:02:26 2015 daemon.warn odhcpd[1671]: DHCPV6 SOLICIT IA_NA from 000100011d7a11a8f0def1bfbe9d on br-lan: no addresses available
Fri Oct 23 15:02:27 2015 daemon.warn odhcpd[1671]: DHCPV6 SOLICIT IA_NA from 000100011d7a11a8f0def1bfbe9d on br-lan: no addresses available
Fri Oct 23 15:02:27 2015 daemon.warn odhcpd[1671]: DHCPV6 SOLICIT IA_NA from 000100011d7a11a8f0def1bfbe9d on br-lan: no addresses available
Fri Oct 23 15:02:27 2015 daemon.warn odhcpd[1671]: DHCPV6 SOLICIT IA_NA from 000100011d7a11a8f0def1bfbe9d on br-lan: no addresses available
Fri Oct 23 15:02:27 2015 daemon.warn odhcpd[1671]: DHCPV6 SOLICIT IA_NA from 000100011d7a11a8f0def1bfbe9d on br-lan: no addresses available
Fri Oct 23 15:02:27 2015 daemon.warn odhcpd[1671]: DHCPV6 SOLICIT IA_NA from 000100011d7a11a8f0def1bfbe9d on br-lan: no addresses available
Fri Oct 23 15:02:27 2015 daemon.warn odhcpd[1671]: DHCPV6 SOLICIT IA_NA from 000100011d7a11a8f0def1bfbe9d on br-lan: no addresses available
Fri Oct 23 15:02:27 2015 daemon.warn odhcpd[1671]: DHCPV6 SOLICIT IA_NA from 000100011d7a11a8f0def1bfbe9d on br-lan: no addresses available
Fri Oct 23 15:03:32 2015 daemon.info dnsmasq-dhcp[3322]: DHCPRELEASE(br-lan) 192.168.1.189 b0:d5:9d:2d:e4:61
Fri Oct 23 15:03:34 2015 kern.info kernel: [ 434.440000] eth0: port 4 link down
Fri Oct 23 15:03:34 2015 user.notice switch: ACTION=DOWN PORT=4 SPEED=0 DUPLEX=0
Fri Oct 23 15:03:36 2015 kern.info kernel: [ 437.180000] eth0: port 4 link up (100Mbps/Full duplex)
Fri Oct 23 15:03:36 2015 user.notice switch: ACTION=UP PORT=4 SPEED=100 DUPLEX=1
Fri Oct 23 15:03:43 2015 kern.info kernel: [ 443.220000] eth0: port 4 link down
Fri Oct 23 15:03:43 2015 user.notice switch: ACTION=DOWN PORT=4 SPEED=0 DUPLEX=0
Fri Oct 23 15:03:44 2015 kern.info kernel: [ 444.780000] eth0: port 4 link up (100Mbps/Full duplex)
Fri Oct 23 15:03:44 2015 user.notice switch: ACTION=UP PORT=4 SPEED=100 DUPLEX=1
Fri Oct 23 15:03:45 2015 kern.info kernel: [ 445.210000] eth0: port 4 link down
Fri Oct 23 15:03:45 2015 user.notice switch: ACTION=DOWN PORT=4 SPEED=0 DUPLEX=0
Fri Oct 23 15:03:46 2015 kern.info kernel: [ 446.810000] eth0: port 4 link up (100Mbps/Full duplex)
Fri Oct 23 15:03:46 2015 user.notice switch: ACTION=UP PORT=4 SPEED=100 DUPLEX=1
Fri Oct 23 15:03:52 2015 daemon.info dnsmasq-dhcp[3322]: DHCPDISCOVER(br-lan) b0:d5:9d:2d:e4:61
Fri Oct 23 15:03:52 2015 daemon.info dnsmasq-dhcp[3322]: DHCPOFFER(br-lan) 192.168.1.189 b0:d5:9d:2d:e4:61
Fri Oct 23 15:03:52 2015 daemon.info dnsmasq-dhcp[3322]: DHCPREQUEST(br-lan) 192.168.1.189 b0:d5:9d:2d:e4:61
Fri Oct 23 15:03:52 2015 daemon.info dnsmasq-dhcp[3322]: DHCPACK(br-lan) 192.168.1.189 b0:d5:9d:2d:e4:61 XL_MINER_9882
Fri Oct 23 15:07:27 2015 daemon.warn odhcpd[1671]: DHCPV6 SOLICIT IA_NA from 000100011d7a11a8f0def1bfbe9d on br-lan: no addresses available
Fri Oct 23 15:07:28 2015 daemon.warn odhcpd[1671]: DHCPV6 SOLICIT IA_NA from 000100011d7a11a8f0def1bfbe9d on br-lan: no addresses available
Fri Oct 23 15:07:28 2015 daemon.warn odhcpd[1671]: DHCPV6 SOLICIT IA_NA from 000100011d7a11a8f0def1bfbe9d on br-lan: no addresses available
Fri Oct 23 15:07:28 2015 daemon.warn odhcpd[1671]: DHCPV6 SOLICIT IA_NA from 000100011d7a11a8f0def1bfbe9d on br-lan: no addresses available
Fri Oct 23 15:07:28 2015 daemon.warn odhcpd[1671]: DHCPV6 SOLICIT IA_NA from 000100011d7a11a8f0def1bfbe9d on br-lan: no addresses available
Fri Oct 23 15:07:28 2015 daemon.warn odhcpd[1671]: DHCPV6 SOLICIT IA_NA from 000100011d7a11a8f0def1bfbe9d on br-lan: no addresses available
Fri Oct 23 15:07:28 2015 daemon.warn odhcpd[1671]: DHCPV6 SOLICIT IA_NA from 000100011d7a11a8f0def1bfbe9d on br-lan: no addresses available
Fri Oct 23 15:12:28 2015 daemon.warn odhcpd[1671]: DHCPV6 SOLICIT IA_NA from 000100011d7a11a8f0def1bfbe9d on br-lan: no addresses available
Fri Oct 23 15:12:29 2015 daemon.warn odhcpd[1671]: DHCPV6 SOLICIT IA_NA from 000100011d7a11a8f0def1bfbe9d on br-lan: no addresses available
Fri Oct 23 15:12:29 2015 daemon.warn odhcpd[1671]: DHCPV6 SOLICIT IA_NA from 000100011d7a11a8f0def1bfbe9d on br-lan: no addresses available
Fri Oct 23 15:12:29 2015 daemon.warn odhcpd[1671]: DHCPV6 SOLICIT IA_NA from 000100011d7a11a8f0def1bfbe9d on br-lan: no addresses available
Fri Oct 23 15:12:29 2015 daemon.warn odhcpd[1671]: DHCPV6 SOLICIT IA_NA from 000100011d7a11a8f0def1bfbe9d on br-lan: no addresses available
Fri Oct 23 15:12:29 2015 daemon.warn odhcpd[1671]: DHCPV6 SOLICIT IA_NA from 000100011d7a11a8f0def1bfbe9d on br-lan: no addresses available
Fri Oct 23 15:12:29 2015 daemon.warn odhcpd[1671]: DHCPV6 SOLICIT IA_NA from 000100011d7a11a8f0def1bfbe9d on br-lan: no addresses available
Fri Oct 23 15:12:29 2015 daemon.warn odhcpd[1671]: DHCPV6 SOLICIT IA_NA from 000100011d7a11a8f0def1bfbe9d on br-lan: no addresses available
Fri Oct 23 15:17:29 2015 daemon.warn odhcpd[1671]: DHCPV6 SOLICIT IA_NA from 000100011d7a11a8f0def1bfbe9d on br-lan: no addresses available
Fri Oct 23 15:17:30 2015 daemon.warn odhcpd[1671]: DHCPV6 SOLICIT IA_NA from 000100011d7a11a8f0def1bfbe9d on br-lan: no addresses available
Fri Oct 23 15:17:30 2015 daemon.warn odhcpd[1671]: DHCPV6 SOLICIT IA_NA from 000100011d7a11a8f0def1bfbe9d on br-lan: no addresses available
Fri Oct 23 15:17:30 2015 daemon.warn odhcpd[1671]: DHCPV6 SOLICIT IA_NA from 000100011d7a11a8f0def1bfbe9d on br-lan: no addresses available
Fri Oct 23 15:17:30 2015 daemon.warn odhcpd[1671]: DHCPV6 SOLICIT IA_NA from 000100011d7a11a8f0def1bfbe9d on br-lan: no addresses available
Fri Oct 23 15:17:30 2015 daemon.warn odhcpd[1671]: DHCPV6 SOLICIT IA_NA from 000100011d7a11a8f0def1bfbe9d on br-lan: no addresses available
Fri Oct 23 15:17:30 2015 daemon.warn odhcpd[1671]: DHCPV6 SOLICIT IA_NA from 000100011d7a11a8f0def1bfbe9d on br-lan: no addresses available
Fri Oct 23 15:17:30 2015 daemon.warn odhcpd[1671]: DHCPV6 SOLICIT IA_NA from 000100011d7a11a8f0def1bfbe9d on br-lan: no addresses available
Fri Oct 23 15:22:03 2015 daemon.info pppd[3668]: LCP terminated by peer
Fri Oct 23 15:22:03 2015 daemon.info pppd[3668]: Connect time 20.8 minutes.
Fri Oct 23 15:22:03 2015 daemon.info pppd[3668]: Sent 315398232 bytes, received 208808135 bytes.
Fri Oct 23 15:22:03 2015 daemon.err miniupnpd[4023]: ioctl(s, SIOCGIFADDR, ...): Cannot assign requested address
Fri Oct 23 15:22:03 2015 daemon.err miniupnpd[4023]: Failed to get IP for interface pppoe-wan
Fri Oct 23 15:22:03 2015 daemon.warn miniupnpd[4023]: SendNATPMPPublicAddressChangeNotification: cannot get public IP address, stopping
Fri Oct 23 15:22:03 2015 daemon.err miniupnpd[4023]: ioctl(s, SIOCGIFADDR, ...): Cannot assign requested address
Fri Oct 23 15:22:03 2015 daemon.err miniupnpd[4023]: ioctl(s, SIOCGIFADDR, ...): Cannot assign requested address
Fri Oct 23 15:22:03 2015 daemon.notice netifd: Network device 'pppoe-wan' link is down
Fri Oct 23 15:22:03 2015 daemon.notice netifd: Interface 'wan' has lost the connection
Fri Oct 23 15:22:07 2015 daemon.notice pppd[3668]: Connection terminated.
Fri Oct 23 15:22:07 2015 daemon.info pppd[3668]: Connect time 20.8 minutes.
Fri Oct 23 15:22:07 2015 daemon.info pppd[3668]: Sent 315398232 bytes, received 208808135 bytes.
Fri Oct 23 15:22:07 2015 daemon.notice pppd[3668]: Modem hangup
Fri Oct 23 15:22:08 2015 daemon.warn dnsmasq[3322]: no servers found in /tmp/resolv.conf.auto, will retry
Fri Oct 23 15:22:30 2015 daemon.warn odhcpd[1671]: DHCPV6 SOLICIT IA_NA from 000100011d7a11a8f0def1bfbe9d on br-lan: no addresses available
Fri Oct 23 15:22:31 2015 daemon.warn odhcpd[1671]: DHCPV6 SOLICIT IA_NA from 000100011d7a11a8f0def1bfbe9d on br-lan: no addresses available
Fri Oct 23 15:22:31 2015 daemon.warn odhcpd[1671]: DHCPV6 SOLICIT IA_NA from 000100011d7a11a8f0def1bfbe9d on br-lan: no addresses available
Fri Oct 23 15:22:31 2015 daemon.warn odhcpd[1671]: DHCPV6 SOLICIT IA_NA from 000100011d7a11a8f0def1bfbe9d on br-lan: no addresses available
Fri Oct 23 15:22:31 2015 daemon.warn odhcpd[1671]: DHCPV6 SOLICIT IA_NA from 000100011d7a11a8f0def1bfbe9d on br-lan: no addresses available
Fri Oct 23 15:22:31 2015 daemon.warn odhcpd[1671]: DHCPV6 SOLICIT IA_NA from 000100011d7a11a8f0def1bfbe9d on br-lan: no addresses available
Fri Oct 23 15:22:31 2015 daemon.warn odhcpd[1671]: DHCPV6 SOLICIT IA_NA from 000100011d7a11a8f0def1bfbe9d on br-lan: no addresses available
Fri Oct 23 15:22:38 2015 daemon.info pppd[3668]: PPP session is 18683
Fri Oct 23 15:22:38 2015 daemon.warn pppd[3668]: Connected to e0:24:7f:b7:77:36 via interface eth0.2
Fri Oct 23 15:22:38 2015 daemon.info pppd[3668]: Using interface pppoe-wan
Fri Oct 23 15:22:38 2015 daemon.notice pppd[3668]: Connect: pppoe-wan <--> eth0.2
Fri Oct 23 15:22:41 2015 daemon.info pppd[3668]: syncppp not active
Fri Oct 23 15:22:41 2015 daemon.info pppd[3668]: CHAP authentication failed: [Code 13|2]: Not special client
Fri Oct 23 15:22:41 2015 daemon.err pppd[3668]: CHAP authentication failed
Fri Oct 23 15:22:47 2015 daemon.notice pppd[3668]: Connection terminated.
Fri Oct 23 15:22:47 2015 daemon.notice pppd[3668]: Modem hangup
Fri Oct 23 15:22:47 2015 daemon.info pppd[3668]: Exit.
Fri Oct 23 15:22:47 2015 daemon.notice netifd: Interface 'wan' is now down
Fri Oct 23 15:22:47 2015 daemon.notice netifd: Interface 'wan' is setting up now
Fri Oct 23 15:22:47 2015 daemon.info pppd[8749]: Plugin rp-pppoe.so loaded.
Fri Oct 23 15:22:47 2015 daemon.info pppd[8749]: RP-PPPoE plugin version 3.8p compiled against pppd 2.4.7
Fri Oct 23 15:22:47 2015 daemon.info pppd[8749]: Plugin sxplugin.so loaded.
Fri Oct 23 15:22:47 2015 daemon.info pppd[8749]: sxplugin : init
Fri Oct 23 15:22:47 2015 daemon.info pppd[8749]: -------------------------------------
Fri Oct 23 15:22:47 2015 daemon.info pppd[8749]: timenow(Hex)=%ßx
Fri Oct 23 15:22:47 2015 daemon.info pppd[8749]: Begin : beforeMD5
Fri Oct 23 15:22:47 2015 daemon.info pppd[8749]: 1.<;?A>
Fri Oct 23 15:22:47 2015 daemon.info pppd[8749]: 2.<;?A【电话号码,打码】>
Fri Oct 23 15:22:47 2015 daemon.info pppd[8749]: 3.<;?A【电话号码,打码】jiangxi4.0>
Fri Oct 23 15:22:47 2015 daemon.info pppd[8749]: 4.length=<25>
Fri Oct 23 15:22:47 2015 daemon.info pppd[8749]: End : beforeMD5
Fri Oct 23 15:22:47 2015 daemon.info pppd[8749]: Begin : afterMD5
Fri Oct 23 15:22:47 2015 daemon.info pppd[8749]: 1.MD5use_1=< 0>
Fri Oct 23 15:22:47 2015 daemon.info pppd[8749]: 2.MD5use_2=< d>
Fri Oct 23 15:22:47 2015 daemon.info pppd[8749]: End : afterMD5
Fri Oct 23 15:22:47 2015 daemon.info pppd[8749]: -------------------------------------
Fri Oct 23 15:22:47 2015 daemon.info pppd[8749]: sxplugin : user is <
1PSR & 0d【电话号码,打码】@jxcard>
Fri Oct 23 15:22:47 2015 daemon.info pppd[8749]: sxplugin : passwd loaded
Fri Oct 23 15:22:47 2015 daemon.notice pppd[8749]: pppd 2.4.7 started by root, uid 0
Fri Oct 23 15:22:47 2015 daemon.info pppd[8749]: PPP session is 18684
Fri Oct 23 15:22:47 2015 daemon.warn pppd[8749]: Connected to e0:24:7f:b7:77:36 via interface eth0.2
Fri Oct 23 15:22:47 2015 daemon.info pppd[8749]: Using interface pppoe-wan
Fri Oct 23 15:22:47 2015 daemon.notice pppd[8749]: Connect: pppoe-wan <--> eth0.2
Fri Oct 23 15:22:50 2015 daemon.info pppd[8749]: syncppp not active
Fri Oct 23 15:22:50 2015 daemon.info pppd[8749]: CHAP authentication succeeded: Authentication success,Welcome!
Fri Oct 23 15:22:50 2015 daemon.notice pppd[8749]: CHAP authentication succeeded
Fri Oct 23 15:22:50 2015 daemon.notice pppd[8749]: peer from calling number E0:24:7F:B7:77:36 authorized
Fri Oct 23 15:22:50 2015 daemon.notice pppd[8749]: local LL address fe80::8952:54d4:adfe:9d4a
Fri Oct 23 15:22:50 2015 daemon.notice pppd[8749]: remote LL address fe80::e224:7fff:feb7:7736
Fri Oct 23 15:22:50 2015 daemon.notice pppd[8749]: local IP address 100.74.13.210
Fri Oct 23 15:22:50 2015 daemon.notice pppd[8749]: remote IP address 100.74.0.1
Fri Oct 23 15:22:50 2015 daemon.notice pppd[8749]: primary DNS address 202.101.224.69
Fri Oct 23 15:22:50 2015 daemon.notice pppd[8749]: secondary DNS address 202.101.226.69
Fri Oct 23 15:22:50 2015 daemon.notice netifd: Network device 'pppoe-wan' link is up
Fri Oct 23 15:22:50 2015 daemon.notice netifd: Interface 'wan' is now up
Fri Oct 23 15:22:51 2015 user.notice firewall: Reloading firewall due to ifup of wan (pppoe-wan)
Fri Oct 23 15:22:52 2015 daemon.info dnsmasq[3322]: reading /tmp/resolv.conf.auto
Fri Oct 23 15:22:52 2015 daemon.info dnsmasq[3322]: using local addresses only for domain lan
Fri Oct 23 15:22:52 2015 daemon.info dnsmasq[3322]: using nameserver 202.101.224.69#53
Fri Oct 23 15:22:52 2015 daemon.info dnsmasq[3322]: using nameserver 202.101.226.69#53
Fri Oct 23 15:22:53 2015 daemon.notice miniupnpd[4023]: shutting down MiniUPnPd
Fri Oct 23 15:22:53 2015 daemon.err miniupnpd[4023]: sendto(udp_shutdown=-1): Bad file descriptor
Fri Oct 23 15:22:53 2015 daemon.err miniupnpd[4023]: sendto(udp_shutdown=-1): Bad file descriptor
Fri Oct 23 15:22:53 2015 daemon.err miniupnpd[4023]: sendto(udp_shutdown=-1): Bad file descriptor
Fri Oct 23 15:22:53 2015 daemon.err miniupnpd[4023]: sendto(udp_shutdown=-1): Bad file descriptor
Fri Oct 23 15:22:53 2015 daemon.err miniupnpd[4023]: sendto(udp_shutdown=-1): Bad file descriptor
Fri Oct 23 15:22:53 2015 daemon.err miniupnpd[4023]: sendto(udp_shutdown=-1): Bad file descriptor
Fri Oct 23 15:22:53 2015 daemon.err miniupnpd[4023]: sendto(udp_shutdown=-1): Bad file descriptor
Fri Oct 23 15:22:53 2015 daemon.err miniupnpd[4023]: sendto(udp_shutdown=-1): Bad file descriptor
Fri Oct 23 15:22:53 2015 daemon.err miniupnpd[4023]: sendto(udp_shutdown=-1): Bad file descriptor
Fri Oct 23 15:22:53 2015 daemon.err miniupnpd[4023]: sendto(udp_shutdown=-1): Bad file descriptor
Fri Oct 23 15:22:54 2015 daemon.notice miniupnpd[9110]: HTTP listening on port 5000
Fri Oct 23 15:22:54 2015 daemon.warn miniupnpd[9110]: no HTTP IPv6 address, disabling IPv6
Fri Oct 23 15:22:54 2015 daemon.notice miniupnpd[9110]: Listening for NAT-PMP/PCP traffic on port 5351
Fri Oct 23 15:22:55 2015 daemon.err miniupnpd[9110]: upnp_event_recv: recv(): Connection reset by peer

palce i don't understand

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

---------i don't know what to do with it, email: [email protected] qq,1078358097 thank you --------

求救啊,ubuntu里编译错误

下载的是OpenWrt-Toolchain-ar71xx-generic_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64.tar
型号ar71xx的tp-link wr841n v3

/桌面/gcc4.8/bin/mips-openwrt-linux-gcc -Os -Wall sxplugin.c -fPIC -I/桌面/gcc4.8/include -shared -o sxplugin.so
/home/miracle/桌面/gcc4.8/bin/mips-openwrt-linux-gcc: 行 82: /home/miracle/桌面/gcc4.8/bin/mips-openwrt-linux-uclibc-gcc.bin: cannot execute binary file: 可执行文件格式错误
/home/miracle/桌面/gcc4.8/bin/mips-openwrt-linux-gcc: 行 82: /home/miracle/桌面/gcc4.8/bin/mips-openwrt-linux-uclibc-gcc.bin: 成功
make: *** [sxplugin.so] 错误 126

我们学校是@CQMU,代码不用改么

about compile for sxplugin

after 'make' ,the terminal print these is ok ??

luoshuai@luoshuai-PC:~/openwrt/gcc/Openwrt-NetKeeper/src$ make
/home/luoshuai/openwrt/gcc/OpenWrt-Toolchain-atheros-for-mips_mips32-gcc-4.8-linaro_uClibc-0.9.33.2/toolchain-mips_mips32_gcc-4.8-linaro_uClibc-0.9.33.2/bin/mips-openwrt-linux-gcc -Os -Wall sxplugin.c -fPIC -I/home/luoshuai/openwrt/gcc/OpenWrt-Toolchain-atheros-for-mips_mips32-gcc-4.8-linaro_uClibc-0.9.33.2/toolchain-mips_mips32_gcc-4.8-linaro_uClibc-0.9.33.2/include -shared -o sxplugin.so
mips-openwrt-linux-uclibc-gcc.bin: warning: environment variable 'STAGING_DIR' not defined
sxplugin.c: In function 'getPIN':
sxplugin.c:47:5: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign]
strcpy(RADIUS, "jiangxi4.0");
^
In file included from sxplugin.c:4:0:
/home/luoshuai/openwrt/gcc/OpenWrt-Toolchain-atheros-for-mips_mips32-gcc-4.8-linaro_uClibc-0.9.33.2/toolchain-mips_mips32_gcc-4.8-linaro_uClibc-0.9.33.2/include/string.h:84:14: note: expected 'char * restrict' but argument is of type 'byte *'
extern char *strcpy (char ***restrict __dest, __const char *__restrict __src)
^
sxplugin.c:63:5: warning: pointer targets in passing argument 1 of 'strcspn' differ in signedness [-Wpointer-sign]
i = strcspn(userName,"@");
^
In file included from sxplugin.c:4:0:
/home/luoshuai/openwrt/gcc/OpenWrt-Toolchain-atheros-for-mips_mips32-gcc-4.8-linaro_uClibc-0.9.33.2/toolchain-mips_mips32_gcc-4.8-linaro_uClibc-0.9.33.2/include/string.h:184:15: note: expected 'const char *' but argument is of type 'byte *'
extern size_t strcspn (__const char *__s, __const char *__reject)
^
sxplugin.c:70:5: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign]
info("4.length=<%d>",strlen(beforeMD5));
^
In file included from sxplugin.c:4:0:
/home/luoshuai/openwrt/gcc/OpenWrt-Toolchain-atheros-for-mips_mips32-gcc-4.8-linaro_uClibc-0.9.33.2/toolchain-mips_mips32_gcc-4.8-linaro_uClibc-0.9.33.2/include/string.h:246:15: note: expected 'const char *' but argument is of type 'byte *'
extern size_t strlen (__const char *__s)
^
sxplugin.c:75:5: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign]
MD5_Update (&md5, beforeMD5, strlen(beforeMD5));
^
In file included from sxplugin.c:4:0:
/home/luoshuai/openwrt/gcc/OpenWrt-Toolchain-atheros-for-mips_mips32-gcc-4.8-linaro_uClibc-0.9.33.2/toolchain-mips_mips32_gcc-4.8-linaro_uClibc-0.9.33.2/include/string.h:246:15: note: expected 'const char *' but argument is of type 'byte '
extern size_t strlen (__const char __s)
^
sxplugin.c:82:5: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign]
sprintf(MD501,"%x%x",MD501H[0],MD501H[1]);
^
In file included from sxplugin.c:1:0:
/home/luoshuai/openwrt/gcc/OpenWrt-Toolchain-atheros-for-mips_mips32-gcc-4.8-linaro_uClibc-0.9.33.2/toolchain-mips_mips32_gcc-4.8-linaro_uClibc-0.9.33.2/include/stdio.h:334:12: note: expected 'char * __restrict
' but argument is of type 'byte *'
extern int sprintf (char *restrict __s,
^
sxplugin.c:122:5: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign]
strcpy(PIN+10, userName);
^
In file included from sxplugin.c:4:0:
/home/luoshuai/openwrt/gcc/OpenWrt-Toolchain-atheros-for-mips_mips32-gcc-4.8-linaro_uClibc-0.9.33.2/toolchain-mips_mips32_gcc-4.8-linaro_uClibc-0.9.33.2/include/string.h:84:14: note: expected 'char * __restrict
' but argument is of type 'byte *'
extern char *strcpy (char **restrict __dest, __const char __restrict __src)
^
sxplugin.c:122:5: warning: pointer targets in passing argument 2 of 'strcpy' differ in signedness [-Wpointer-sign]
strcpy(PIN+10, userName);
^
In file included from sxplugin.c:4:0:
/home/luoshuai/openwrt/gcc/OpenWrt-Toolchain-atheros-for-mips_mips32-gcc-4.8-linaro_uClibc-0.9.33.2/toolchain-mips_mips32_gcc-4.8-linaro_uClibc-0.9.33.2/include/string.h:84:14: note: expected 'const char * __restrict
' but argument is of type 'byte *'
extern char *strcpy (char ***restrict __dest, __const char *__restrict __src)
^
sxplugin.c:18:11: warning: unused variable 'j' [-Wunused-variable]
int i,j;
^
sxplugin.c: In function 'pap_modifyusername':
sxplugin.c:129:5: warning: pointer targets in passing argument 1 of 'getPIN' differ in signedness [-Wpointer-sign]
getPIN(saveuser, PIN);
^
sxplugin.c:16:13: note: expected 'byte *' but argument is of type 'char *'
static void getPIN(byte userName, byte PIN)
^
sxplugin.c:130:5: warning: pointer targets in passing argument 2 of 'strcpy' differ in signedness [-Wpointer-sign]
strcpy(user, PIN);
^
In file included from sxplugin.c:4:0:
/home/luoshuai/openwrt/gcc/OpenWrt-Toolchain-atheros-for-mips_mips32-gcc-4.8-linaro_uClibc-0.9.33.2/toolchain-mips_mips32_gcc-4.8-linaro_uClibc-0.9.33.2/include/string.h:84:14: note: expected 'const char * __restrict
' but argument is of type 'byte *'
extern char *strcpy (char ***restrict __dest, __const char *__restrict __src)
^
sxplugin.c:132:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
mips-openwrt-linux-uclibc-gcc.bin: warning: environment variable 'STAGING_DIR' not defined
mips-openwrt-linux-uclibc-gcc.bin: warning: environment variable 'STAGING_DIR' not defined
/home/luoshuai/openwrt/gcc/OpenWrt-Toolchain-atheros-for-mips_mips32-gcc-4.8-linaro_uClibc-0.9.33.2/toolchain-mips_mips32_gcc-4.8-linaro_uClibc-0.9.33.2/bin/mips-openwrt-linux-gcc -Os -Wall nc_sxplugin.c -fPIC -I/home/luoshuai/openwrt/gcc/OpenWrt-Toolchain-atheros-for-mips_mips32-gcc-4.8-linaro_uClibc-0.9.33.2/toolchain-mips_mips32_gcc-4.8-linaro_uClibc-0.9.33.2/include -shared -o nc_sxplugin.so
mips-openwrt-linux-uclibc-gcc.bin: warning: environment variable 'STAGING_DIR' not defined
nc_sxplugin.c: In function 'pap_modifyusername':
nc_sxplugin.c:118:3: warning: pointer targets in passing argument 2 of 'new_calc_pin' differ in signedness [-Wpointer-sign]
new_calc_pin(saveuser, PIN);
^
nc_sxplugin.c:40:5: note: expected 'char *' but argument is of type 'byte *'
int new_calc_pin(char username, char buffer) {
^
nc_sxplugin.c:119:3: warning: pointer targets in passing argument 2 of 'strcpy' differ in signedness [-Wpointer-sign]
strcpy(user, PIN);
^
In file included from nc_sxplugin.c:5:0:
/home/luoshuai/openwrt/gcc/OpenWrt-Toolchain-atheros-for-mips_mips32-gcc-4.8-linaro_uClibc-0.9.33.2/toolchain-mips_mips32_gcc-4.8-linaro_uClibc-0.9.33.2/include/string.h:84:14: note: expected 'const char * __restrict
' but argument is of type 'byte *'
extern char *strcpy (char *__restrict __dest, __const char *__restrict __src)
^
nc_sxplugin.c:121:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
mips-openwrt-linux-uclibc-gcc.bin: warning: environment variable 'STAGING_DIR' not defined
mips-openwrt-linux-uclibc-gcc.bin: warning: environment variable 'STAGING_DIR' not defined

你好

这个算法支持企业闪讯嘛?

重庆Netkeeper 0094版本

Radius似乎更新了,xianxinli1radius,但是我没有看算法是否做出了修改。心跳服务器貌似转移到了 gxyw.online.cq.cn,报文内容结构没太多变化,加密的KEY没变。现在看样子应该是两个都在使用还是怎么。而且不知道重庆电信计费系统是怎么设置的,我们学校新校区的号在老校区不断网,但是新校区会准时断。

首先谢谢你所做的一切,出现了一些问题麻烦帮我看一看

我的路由是miwifimini,编译的so可以正常使用,也能正常转换出系统日志中类似的账号。但是在passwd loaded之后,会出现 Connection terminated -> Modem hangup -> exit ,后续还有CHAP authentication failed:[code 13]:Not special client的提示。

我是南昌电信的校园网,用的是v32的星空极速,编译前确认修改了TODO CODE

具体如图所示,希望能帮我看看,非常感谢!

qq 20150909200138

请问一下Openwrt-NetKeeper校园网上网问题

江西电信V32,小米路由器mini的潘多拉和WR840NV2的openwrt,瞎弄了好几天,始终上不了网,能拨号成功,路由器能ping通外网,但连接的电脑手机全上不了网,这里带上日志,希望能看下
qq 20150907151418

Timeout waiting for PADS packets

大神好;我是用编译好的插件,按照教程进行设置,但是报错,无法连接网络,用的是openwrt,试了几个版本还是这个错误;radius使用的是ChongQing Netkeeper(0094): xianxinli1radius,经过验证这个radius是能够进行拨号的,我在电脑是能够使用这个进行拨号。

看错误提示应该是无法连接到pppoe,检查网线/内网设置;但是我的重邮内网是正常的;
类型: dhcp
地址: 172.18.134.63
子网掩码: 255.255.252.0
网关: 172.18.132.1
DNS 1: 61.128.128.68
DNS 2: 202.202.32.33
DNS 3: 202.202.32.34

下面是日志:
Sat Sep 5 10:21:15 2015 daemon.notice netifd: Interface 'NetKeeper' is setting up now
Sat Sep 5 10:21:15 2015 daemon.notice netifd: NetKeeper (8365): uci: Entry not found
Sat Sep 5 10:21:15 2015 daemon.notice netifd: NetKeeper (8365): uci: Entry not found
Sat Sep 5 10:21:15 2015 daemon.info pppd[8377]: Plugin rp-pppoe.so loaded.
Sat Sep 5 10:21:15 2015 daemon.info pppd[8377]: RP-PPPoE plugin version 3.8p compiled against pppd 2.4.7
Sat Sep 5 10:21:15 2015 daemon.info pppd[8377]: Plugin sxplugin.so loaded.
Sat Sep 5 10:21:15 2015 daemon.info pppd[8377]: sxplugin : init
Sat Sep 5 10:21:15 2015 daemon.info pppd[8377]: -------------------------------------
Sat Sep 5 10:21:15 2015 daemon.info pppd[8377]: timenow(Hex)=%ßx
Sat Sep 5 10:21:15 2015 daemon.info pppd[8377]: Begin : beforeMD5
Sat Sep 5 10:21:15 2015 daemon.info pppd[8377]: 1.<.? ?w>
Sat Sep 5 10:21:15 2015 daemon.info pppd[8377]: 2.<.?0614827>
Sat Sep 5 10:21:15 2015 daemon.info pppd[8377]: 3.<.?0614827xianxinli1radius>
Sat Sep 5 10:21:15 2015 daemon.info pppd[8377]: 4.length=<27>
Sat Sep 5 10:21:15 2015 daemon.info pppd[8377]: End : beforeMD5
Sat Sep 5 10:21:15 2015 daemon.info pppd[8377]: Begin : afterMD5
Sat Sep 5 10:21:15 2015 daemon.info pppd[8377]: 1.MD5use_1=< d>
Sat Sep 5 10:21:15 2015 daemon.info pppd[8377]: 2.MD5use_2=< 4>
Sat Sep 5 10:21:15 2015 daemon.info pppd[8377]: End : afterMD5
Sat Sep 5 10:21:15 2015 daemon.info pppd[8377]: -------------------------------------
Sat Sep 5 10:21:15 2015 daemon.info pppd[8377]: sxplugin : user is <
1]YSYO d40614827@cqupt>
Sat Sep 5 10:21:15 2015 daemon.info pppd[8377]: sxplugin : passwd loaded
Sat Sep 5 10:21:15 2015 daemon.notice pppd[8377]: pppd 2.4.7 started by root, uid 0
Sat Sep 5 10:21:31 2015 daemon.warn pppd[8377]: Timeout waiting for PADS packets
Sat Sep 5 10:21:31 2015 daemon.err pppd[8377]: Unable to complete PPPoE Discovery
Sat Sep 5 10:21:31 2015 daemon.info pppd[8377]: Exit.
Sat Sep 5 10:21:31 2015 daemon.notice netifd: Interface 'NetKeeper' is now down

希望大神看到能帮帮忙,不尽感激

编译心跳插件出错了

编译daonet里面打插件失败,错误信息是:
/home/cheukfung/openwrt/trunk/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.11/bin/mips-openwrt-linux-gcc -o DaoNet main.o frame.o netutils.o netkeeper.o /home/cheukfung/openwrt/trunk/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.11/lib/libmbedcrypto.a -g -Wall -Wimplicit-function-declaration -I /home/cheukfung/openwrt/trunk/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.11/include/
mips-openwrt-linux-gcc: error: /home/cheukfung/openwrt/trunk/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.11/lib/libmbedcrypto.a: No such file or directory
make: *** [DaoNet] 错误 1
我是菜鸟。。在lib目录下面只找到libcrypto.a,是库的原因吗,希望能解决,谢谢。

关于只能适用于rampis CPU

你好,我是小白...
我的路由器是网件的wndr4300 使用的是AR 9344芯片组,以mips为内核。不知道这个mips是不是就你所指的rampis CPU,可不可以使用这个插件?

Not special client是什么错误

Sun Nov 1 20:17:15 2015 daemon.info pppd[7360]: Remote message: [Code 13|2]: Not special client
Sun Nov 1 20:17:15 2015 daemon.err pppd[7360]: PAP authentication failed
Sun Nov 1 20:17:15 2015 daemon.notice pppd[7360]: Modem hangup
Sun Nov 1 20:17:15 2015 daemon.notice pppd[7360]: Connection terminated.
Sun Nov 1 20:17:15 2015 daemon.info pppd[7360]: Sent PADT
Sun Nov 1 20:17:15 2015 daemon.info pppd[7360]: Exit.
请问这是什么错误?断开连接之后再连偶尔会出现的错误

无法进行拨号

重邮的。。。用的是realise里面的sxplugin.so。。。路由器是gl-inet的。。。麻烦大神看看

Tue Oct 27 22:50:04 2015 daemon.notice netifd: Interface 'NetKeeper' is enabled
Tue Oct 27 22:50:04 2015 daemon.notice netifd: Interface 'NetKeeper' is setting up now
Tue Oct 27 22:50:04 2015 daemon.notice netifd: VLAN 'eth0.2' link is down
Tue Oct 27 22:50:04 2015 daemon.notice netifd: Interface 'NetKeeper' has link connectivity loss
Tue Oct 27 22:50:04 2015 daemon.notice netifd: VLAN 'eth0.2' link is up
Tue Oct 27 22:50:04 2015 daemon.notice netifd: Interface 'NetKeeper' has link connectivity
Tue Oct 27 22:50:05 2015 daemon.info pppd[2211]: Plugin rp-pppoe.so loaded.
Tue Oct 27 22:50:05 2015 daemon.info pppd[2211]: RP-PPPoE plugin version 3.8p compiled against pppd 2.4.7
Tue Oct 27 22:50:05 2015 daemon.info pppd[2211]: Plugin sxplugin.so loaded.
Tue Oct 27 22:50:05 2015 daemon.info pppd[2211]: sxplugin : init
Tue Oct 27 22:50:05 2015 daemon.info pppd[2211]: -------------------------------------
Tue Oct 27 22:50:05 2015 daemon.info pppd[2211]: timenow(Hex)=%ßx
Tue Oct 27 22:50:05 2015 daemon.info pppd[2211]: Begin : beforeMD5
Tue Oct 27 22:50:05 2015 daemon.info pppd[2211]: 1.<<?9>
Tue Oct 27 22:50:05 2015 daemon.info pppd[2211]: 2.<<?9帐号>
Tue Oct 27 22:50:05 2015 daemon.info pppd[2211]: 3.<<?9帐号xianxinli1radius>
Tue Oct 27 22:50:05 2015 daemon.info pppd[2211]: 4.length=<31>
Tue Oct 27 22:50:05 2015 daemon.info pppd[2211]: End : beforeMD5
Tue Oct 27 22:50:05 2015 daemon.info pppd[2211]: Begin : afterMD5
Tue Oct 27 22:50:05 2015 daemon.info pppd[2211]: 1.MD5use_1=< 0>
Tue Oct 27 22:50:05 2015 daemon.info pppd[2211]: 2.MD5use_2=< 9>
Tue Oct 27 22:50:05 2015 daemon.info pppd[2211]: End : afterMD5
Tue Oct 27 22:50:05 2015 daemon.info pppd[2211]: -------------------------------------
Tue Oct 27 22:50:05 2015 daemon.info pppd[2211]: sxplugin : user is <
VX0IG 09帐号@cqupt>
Tue Oct 27 22:50:05 2015 daemon.info pppd[2211]: sxplugin : passwd loaded
Tue Oct 27 22:50:05 2015 daemon.notice pppd[2211]: pppd 2.4.7 started by root, uid 0
Tue Oct 27 22:50:20 2015 daemon.warn pppd[2211]: Timeout waiting for PADO packets
Tue Oct 27 22:50:20 2015 daemon.err pppd[2211]: Unable to complete PPPoE Discovery
Tue Oct 27 22:50:20 2015 daemon.info pppd[2211]: Exit.
Tue Oct 27 22:50:20 2015 daemon.notice netifd: Interface 'NetKeeper' is now down
Tue Oct 27 22:50:20 2015 daemon.notice netifd: Interface 'NetKeeper' is disabled
Tue Oct 27 22:50:20 2015 daemon.notice netifd: Interface 'NetKeeper' is enabled
Tue Oct 27 22:50:20 2015 daemon.notice netifd: Interface 'NetKeeper' is setting up now
Tue Oct 27 22:50:20 2015 daemon.notice netifd: VLAN 'eth0.2' link is down
Tue Oct 27 22:50:20 2015 daemon.notice netifd: Interface 'NetKeeper' has link connectivity loss
Tue Oct 27 22:50:20 2015 daemon.notice netifd: VLAN 'eth0.2' link is up
Tue Oct 27 22:50:20 2015 daemon.notice netifd: Interface 'NetKeeper' has link connectivity
Tue Oct 27 22:50:20 2015 daemon.info pppd[2256]: Plugin rp-pppoe.so loaded.
Tue Oct 27 22:50:20 2015 daemon.info pppd[2256]: RP-PPPoE plugin version 3.8p compiled against pppd 2.4.7
Tue Oct 27 22:50:20 2015 daemon.info pppd[2256]: Plugin sxplugin.so loaded.
Tue Oct 27 22:50:20 2015 daemon.info pppd[2256]: sxplugin : init
Tue Oct 27 22:50:20 2015 daemon.info pppd[2256]: -------------------------------------
Tue Oct 27 22:50:20 2015 daemon.info pppd[2256]: timenow(Hex)=%ßx
Tue Oct 27 22:50:20 2015 daemon.info pppd[2256]: Begin : beforeMD5
Tue Oct 27 22:50:20 2015 daemon.info pppd[2256]: 1.<<?<>
Tue Oct 27 22:50:20 2015 daemon.info pppd[2256]: 2.<<?<帐号>
Tue Oct 27 22:50:20 2015 daemon.info pppd[2256]: 3.<<?<帐号xianxinli1radius>
Tue Oct 27 22:50:20 2015 daemon.info pppd[2256]: 4.length=<31>
Tue Oct 27 22:50:20 2015 daemon.info pppd[2256]: End : beforeMD5
Tue Oct 27 22:50:35 2015 daemon.warn pppd[2256]: Timeout waiting for PADO packets
Tue Oct 27 22:50:35 2015 daemon.err pppd[2256]: Unable to complete PPPoE Discovery
Tue Oct 27 22:50:35 2015 daemon.info pppd[2256]: Exit.
Tue Oct 27 22:50:35 2015 daemon.notice netifd: Interface 'NetKeeper' is now down
Tue Oct 27 22:50:35 2015 daemon.notice netifd: Interface 'NetKeeper' is disabled
Tue Oct 27 22:50:35 2015 daemon.notice netifd: Interface 'NetKeeper' is enabled
Tue Oct 27 22:50:35 2015 daemon.notice netifd: Interface 'NetKeeper' is setting up now
Tue Oct 27 22:50:35 2015 daemon.notice netifd: VLAN 'eth0.2' link is down
Tue Oct 27 22:50:35 2015 daemon.notice netifd: Interface 'NetKeeper' has link connectivity loss
Tue Oct 27 22:50:35 2015 daemon.notice netifd: VLAN 'eth0.2' link is up
Tue Oct 27 22:50:35 2015 daemon.notice netifd: Interface 'NetKeeper' has link connectivity
Tue Oct 27 22:50:36 2015 daemon.info pppd[2297]: Plugin rp-pppoe.so loaded.
Tue Oct 27 22:50:36 2015 daemon.info pppd[2297]: RP-PPPoE plugin version 3.8p compiled against pppd 2.4.7
Tue Oct 27 22:50:36 2015 daemon.info pppd[2297]: Plugin sxplugin.so loaded.
Tue Oct 27 22:50:36 2015 daemon.info pppd[2297]: sxplugin : init
Tue Oct 27 22:50:36 2015 daemon.info pppd[2297]: -------------------------------------
Tue Oct 27 22:50:36 2015 daemon.info pppd[2297]: timenow(Hex)=%ßx
Tue Oct 27 22:50:36 2015 daemon.info pppd[2297]: Begin : beforeMD5
Tue Oct 27 22:50:36 2015 daemon.info pppd[2297]: 1.<<??>
Tue Oct 27 22:50:36 2015 daemon.info pppd[2297]: 2.<<??帐号>
Tue Oct 27 22:50:36 2015 daemon.info pppd[2297]: 3.<<??帐号xianxinli1radius>
Tue Oct 27 22:50:36 2015 daemon.info pppd[2297]: 4.length=<31>
Tue Oct 27 22:50:36 2015 daemon.info pppd[2297]: End : beforeMD5
Tue Oct 27 22:50:36 2015 daemon.info pppd[2297]: Begin : afterMD5
Tue Oct 27 22:50:36 2015 daemon.info pppd[2297]: 1.MD5use_1=< d>
Tue Oct 27 22:50:36 2015 daemon.info pppd[2297]: 2.MD5use_2=< f>
Tue Oct 27 22:50:36 2015 daemon.info pppd[2297]: End : afterMD5
Tue Oct 27 22:50:36 2015 daemon.info pppd[2297]: -------------------------------------
Tue Oct 27 22:50:36 2015 daemon.info pppd[2297]: sxplugin : user is <
V`2IG df帐号@cqupt>
Tue Oct 27 22:50:36 2015 daemon.info pppd[2297]: sxplugin : passwd loaded
Tue Oct 27 22:50:36 2015 daemon.notice pppd[2297]: pppd 2.4.7 started by root, uid 0
Tue Oct 27 22:50:51 2015 daemon.warn pppd[2297]: Timeout waiting for PADO packets
Tue Oct 27 22:50:51 2015 daemon.err pppd[2297]: Unable to complete PPPoE Discovery
Tue Oct 27 22:50:51 2015 daemon.info pppd[2297]: Exit.
Tue Oct 27 22:50:51 2015 daemon.notice netifd: Interface 'NetKeeper' is now down
Tue Oct 27 22:50:51 2015 daemon.notice netifd: Interface 'NetKeeper' is disabled
Tue Oct 27 22:50:51 2015 daemon.notice netifd: Interface 'NetKeeper' is enabled
Tue Oct 27 22:50:51 2015 daemon.notice netifd: Interface 'NetKeeper' is setting up now
Tue Oct 27 22:50:51 2015 daemon.notice netifd: VLAN 'eth0.2' link is down
Tue Oct 27 22:50:51 2015 daemon.notice netifd: Interface 'NetKeeper' has link connectivity loss
Tue Oct 27 22:50:51 2015 daemon.notice netifd: VLAN 'eth0.2' link is up
Tue Oct 27 22:50:51 2015 daemon.notice netifd: Interface 'NetKeeper' has link connectivity
Tue Oct 27 22:50:51 2015 daemon.info pppd[2336]: Plugin rp-pppoe.so loaded.
Tue Oct 27 22:50:51 2015 daemon.info pppd[2336]: RP-PPPoE plugin version 3.8p compiled against pppd 2.4.7
Tue Oct 27 22:50:51 2015 daemon.info pppd[2336]: Plugin sxplugin.so loaded.
Tue Oct 27 22:50:51 2015 daemon.info pppd[2336]: sxplugin : init
Tue Oct 27 22:50:51 2015 daemon.info pppd[2336]: -------------------------------------
Tue Oct 27 22:50:51 2015 daemon.info pppd[2336]: timenow(Hex)=%ßx
Tue Oct 27 22:50:51 2015 daemon.info pppd[2336]: Begin : beforeMD5
Tue Oct 27 22:50:51 2015 daemon.info pppd[2336]: 1.<<?B>
Tue Oct 27 22:50:51 2015 daemon.info pppd[2336]: 2.<<?B帐号>
Tue Oct 27 22:50:51 2015 daemon.info pppd[2336]: 3.<<?B帐号xianxinli1radius>
Tue Oct 27 22:50:51 2015 daemon.info pppd[2336]: 4.length=<31>
Tue Oct 27 22:50:51 2015 daemon.info pppd[2336]: End : beforeMD5
Tue Oct 27 22:50:51 2015 daemon.info pppd[2336]: Begin : afterMD5
Tue Oct 27 22:50:51 2015 daemon.info pppd[2336]: 1.MD5use_1=< 4>
Tue Oct 27 22:50:51 2015 daemon.info pppd[2336]: 2.MD5use_2=< b>
Tue Oct 27 22:50:51 2015 daemon.info pppd[2336]: End : afterMD5
Tue Oct 27 22:50:51 2015 daemon.info pppd[2336]: -------------------------------------
Tue Oct 27 22:50:51 2015 daemon.info pppd[2336]: sxplugin : user is <
%\1I& 4b帐号@cqupt>
Tue Oct 27 22:50:51 2015 daemon.info pppd[2336]: sxplugin : passwd loaded
Tue Oct 27 22:50:51 2015 daemon.notice pppd[2336]: pppd 2.4.7 started by root, uid 0
Tue Oct 27 22:51:06 2015 daemon.warn pppd[2336]: Timeout waiting for PADO packets
Tue Oct 27 22:51:06 2015 daemon.err pppd[2336]: Unable to complete PPPoE Discovery
Tue Oct 27 22:51:06 2015 daemon.info pppd[2336]: Exit.
Tue Oct 27 22:51:06 2015 daemon.notice netifd: Interface 'NetKeeper' is now down
Tue Oct 27 22:51:06 2015 daemon.notice netifd: Interface 'NetKeeper' is disabled
Tue Oct 27 22:51:06 2015 daemon.notice netifd: Interface 'NetKeeper' is enabled
Tue Oct 27 22:51:06 2015 daemon.notice netifd: Interface 'NetKeeper' is setting up now
Tue Oct 27 22:51:06 2015 daemon.notice netifd: VLAN 'eth0.2' link is down
Tue Oct 27 22:51:06 2015 daemon.notice netifd: Interface 'NetKeeper' has link connectivity loss
Tue Oct 27 22:51:06 2015 daemon.notice netifd: VLAN 'eth0.2' link is up
Tue Oct 27 22:51:06 2015 daemon.notice netifd: Interface 'NetKeeper' has link connectivity
Tue Oct 27 22:51:07 2015 daemon.info pppd[2387]: Plugin rp-pppoe.so loaded.
Tue Oct 27 22:51:07 2015 daemon.info pppd[2387]: RP-PPPoE plugin version 3.8p compiled against pppd 2.4.7
Tue Oct 27 22:51:07 2015 daemon.info pppd[2387]: Plugin sxplugin.so loaded.
Tue Oct 27 22:51:07 2015 daemon.info pppd[2387]: sxplugin : init
Tue Oct 27 22:51:07 2015 daemon.info pppd[2387]: -------------------------------------
Tue Oct 27 22:51:07 2015 daemon.info pppd[2387]: timenow(Hex)=%ßx
Tue Oct 27 22:51:07 2015 daemon.info pppd[2387]: Begin : beforeMD5
Tue Oct 27 22:51:07 2015 daemon.info pppd[2387]: 1.<<?E>
Tue Oct 27 22:51:07 2015 daemon.info pppd[2387]: 2.<<?E帐号>
Tue Oct 27 22:51:07 2015 daemon.info pppd[2387]: 3.<<?E帐号xianxinli1radius>
Tue Oct 27 22:51:07 2015 daemon.info pppd[2387]: 4.length=<31>
Tue Oct 27 22:51:07 2015 daemon.info pppd[2387]: End : beforeMD5
Tue Oct 27 22:51:07 2015 daemon.info pppd[2387]: Begin : afterMD5

MT7620N 武汉E信 登陆问题

武汉E信 MT7620N

编译时
Warning: Unable to locate ipset utility, disabling ipset support
Warning: Section @zone1 cannot resolve device of network 'netkeeper'

系统日志
Wed Oct 14 17:33:17 2015 daemon.notice netifd: Interface 'netkeeper' is now down
Wed Oct 14 17:33:17 2015 daemon.notice netifd: Interface 'netkeeper' is setting up now
Wed Oct 14 17:33:17 2015 daemon.info pppd[4059]: Plugin rp-pppoe.so loaded.
Wed Oct 14 17:33:17 2015 daemon.info pppd[4059]: RP-PPPoE plugin version 3.8p compiled against pppd 2.4.7
Wed Oct 14 17:33:17 2015 daemon.info pppd[4059]: Plugin wuhan_sxplugin.so loaded.
Wed Oct 14 17:33:17 2015 daemon.info pppd[4059]: sxplugin : init
Wed Oct 14 17:33:17 2015 daemon.info pppd[4059]: -------------------------------------
Wed Oct 14 17:33:17 2015 daemon.info pppd[4059]: timenow(Hex)=%ßx
Wed Oct 14 17:33:17 2015 daemon.info pppd[4059]: Begin : beforeMD5
Wed Oct 14 17:33:17 2015 daemon.info pppd[4059]: 1.<99?>
Wed Oct 14 17:33:17 2015 daemon.info pppd[4059]: 2.<99?1862674240>
Wed Oct 14 17:33:17 2015 daemon.info pppd[4059]: 3.<99?1862674240hubtxinli01>
Wed Oct 14 17:33:17 2015 daemon.info pppd[4059]: 4.length=<25>
Wed Oct 14 17:33:17 2015 daemon.info pppd[4059]: End : beforeMD5
Wed Oct 14 17:33:17 2015 daemon.info pppd[4059]: Begin : afterMD5
Wed Oct 14 17:33:17 2015 daemon.info pppd[4059]: 1.MD5use_1=< d>
Wed Oct 14 17:33:17 2015 daemon.info pppd[4059]: 2.MD5use_2=< 0>
Wed Oct 14 17:33:17 2015 daemon.info pppd[4059]: End : afterMD5
Wed Oct 14 17:33:17 2015 daemon.info pppd[4059]: -------------------------------------
Wed Oct 14 17:33:17 2015 daemon.info pppd[4059]: sxplugin : user is <
`Z3 [ d01862674240>
Wed Oct 14 17:33:17 2015 daemon.info pppd[4059]: sxplugin : passwd loaded
Wed Oct 14 17:33:17 2015 daemon.notice pppd[4059]: pppd 2.4.7 started by root, uid 0
Wed Oct 14 17:33:17 2015 daemon.info pppd[4059]: PPP session is 19376
Wed Oct 14 17:33:17 2015 daemon.warn pppd[4059]: Connected to 00:46:4b:71:8a:a1 via interface eth0.2
Wed Oct 14 17:33:17 2015 daemon.info pppd[4059]: Using interface pppoe-netkeeper
Wed Oct 14 17:33:17 2015 daemon.notice pppd[4059]: Connect: pppoe-netkeeper <--> eth0.2
Wed Oct 14 17:33:17 2015 daemon.info pppd[4059]: Remote message: 24;User(1862674240) not found(database authen forbiden), Request Deny by hb.cn
Wed Oct 14 17:33:17 2015 daemon.err pppd[4059]: PAP authentication failed
Wed Oct 14 17:33:17 2015 daemon.notice pppd[4059]: Connection terminated.
Wed Oct 14 17:33:17 2015 daemon.info pppd[4059]: Exit.

山东移动Netkeeper

Text strings referenced in Netkeepe:.text, item 1373
Address=0043F5EB
Disassembly=push 0057EECC
Text string=ASCII "f297e4c0b5c0f20c76e45b864597f3b6"

@realityone 的py脚本解出来为 shandongmobile13 , prefix 为 \r\n

等待测试回复。

p.s 对于稍微会一点OD的同学载入Netkeeper后查看模块-》选择 "Netkeeper" .text code 部分,右键载入CPU,然后右键代码区 analyse code , 再搜索参考文本(all referenced string),搜索 "ResetTimeFlag" , 然后下方有一个 PINSection,下面两行第一行是radius,第二行为prefix。加密了用 @realityone 的py脚本解开就好。重庆的是明文。

请问/usr/sbin/pppd: '/usr/lib/pppd/2.4.7/sxplugin.so' is not an ELF executable for MIPS是什么错误?

出现了以下错误。。。路由器是MW305W

Wed Oct 1 14:51:48 2014 daemon.notice netifd: Interface 'NetKeeper' is enabled
Wed Oct 1 14:51:48 2014 daemon.notice netifd: Interface 'NetKeeper' has link connectivity
Wed Oct 1 14:51:48 2014 daemon.notice netifd: Interface 'NetKeeper' is setting up now
Wed Oct 1 14:51:48 2014 daemon.notice netifd: Interface 'NetKeeper' is now down
Wed Oct 1 14:51:48 2014 daemon.notice netifd: Interface 'NetKeeper' is setting up now
Wed Oct 1 14:51:48 2014 daemon.info pppd[1472]: Plugin rp-pppoe.so loaded.
Wed Oct 1 14:51:48 2014 daemon.info pppd[1472]: RP-PPPoE plugin version 3.8p compiled against pppd 2.4.7
Wed Oct 1 14:51:48 2014 daemon.notice netifd: NetKeeper (1472): /usr/sbin/pppd: '/usr/lib/pppd/2.4.7/sxplugin.so' is not an ELF executable for MIPS
Wed Oct 1 14:51:48 2014 daemon.notice netifd: NetKeeper (1472): /usr/sbin/pppd: File not found
Wed Oct 1 14:51:48 2014 daemon.err pppd[1472]: File not found
Wed Oct 1 14:51:48 2014 daemon.notice netifd: NetKeeper (1472): /usr/sbin/pppd: Couldn't load plugin sxplugin.so
Wed Oct 1 14:51:48 2014 daemon.err pppd[1472]: Couldn't load plugin sxplugin.so
Wed Oct 1 14:51:48 2014 daemon.notice netifd: Interface 'NetKeeper' is now down

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.