kunlunh / mentohust-wrt

Automatically exported from code.google.com/p/mentohust-wrt
0 stars 0 forks source link

能认证,但是获取不到IP。(TP-Link 841N V7,factory-to-ddwrt.mentohust.udhcpc) #46

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
校园家属区锐捷2.50或3.22(两个都能登录),DHCP,使用MentoHUS
TTool在XP下抓包,DD-WRT下MentoHUST拨号显示抓包损坏,改用默认�
��么什么。是因为XP抓包的MentoHUST版本和DD-WRT下的MentoHUST版本�
��同导致IP获取失败么?

!! The selected file /tmp/ruijie250.mpf invalid, convert built-in data authentic
ation.

另外,刷完固件后LAN/WAN/Wireless的MAC都是5C:63:BF:FE:8F:20,后来��
�MAC克隆里的选项将末尾改成21和22,这样对么?

相关信息:
----------------------------------------
DD-WRT v24-sp2 std (c) 2011 NewMedia-NET GmbH
Release: 06/14/11 (SVN revision: 17201)

DD-WRT login: root
Password:
==========================================================

 ____  ___    __        ______ _____         ____  _  _
 | _ \| _ \   \ \      / /  _ \_   _| __   _|___ \| || |
 || | || ||____\ \ /\ / /| |_) || |   \ \ / / __) | || |_
 ||_| ||_||_____\ V  V / |  _ < | |    \ V / / __/|__   _|
 |___/|___/      \_/\_/  |_| \_\|_|     \_/ |_____|  |_|

                       DD-WRT v24-sp2
                   http://www.dd-wrt.com

==========================================================

BusyBox v1.13.4 (2011-06-14 13:08:36 CEST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

root@DD-WRT:~# ifconfig
ath0      Link encap:Ethernet  HWaddr 5C:63:BF:FE:8F:22
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:407 errors:0 dropped:10 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:40974 (40.0 KiB)

br0       Link encap:Ethernet  HWaddr 5C:63:BF:FE:8F:21
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:13889 errors:0 dropped:0 overruns:0 frame:0
          TX packets:13552 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1330721 (1.2 MiB)  TX bytes:2245757 (2.1 MiB)

br0:0     Link encap:Ethernet  HWaddr 5C:63:BF:FE:8F:21
          inet addr:169.254.255.1  Bcast:169.254.255.255  Mask:255.255.0.0
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1

eth0      Link encap:Ethernet  HWaddr 5C:63:BF:FE:8F:20
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1513 errors:1 dropped:0 overruns:0 frame:0
          TX packets:53 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:409205 (399.6 KiB)  TX bytes:10548 (10.3 KiB)

eth1      Link encap:Ethernet  HWaddr 5C:63:BF:FE:8F:21
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:13892 errors:0 dropped:2 overruns:0 frame:0
          TX packets:13552 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1580915 (1.5 MiB)  TX bytes:2312585 (2.2 MiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING MULTICAST  MTU:16436  Metric:1
          RX packets:6 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:348 (348.0 B)  TX bytes:348 (348.0 B)

wifi0     Link encap:Ethernet  HWaddr 5C:63:BF:FE:8F:22
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:68842 errors:0 dropped:0 overruns:0 frame:12810
          TX packets:777 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:499
          RX bytes:13683219 (13.0 MiB)  TX bytes:117742 (114.9 KiB)
          Interrupt:48 Memory:b0000000-b0010000

root@DD-WRT:~# mentohust -u■■■■ -p■■■■ -neth0 -a1 -d1 -v2.50 
-f/tmp/ruij
ie250.mpf

welcome to MentoHUST    ver: 0.3.1
Copyright (C) 2009-2010 HustMoon Studio
Bug report to http://code.google.com/p/mentohust/issues/list

!! The selected file /tmp/ruijie250.mpf invalid, convert built-in data authentic
ation.
** UserName:    ■■■■
** Netcard:     eth0
** Auth timeout(s):     8 s
** Heartbeat interval(s):       30 s
** Failure waittime(s): 15 s
** Allow failures:      8 times
** Multicast addr:      Ruijie
** DHCP Type:   Secondary Certificate
** DHCP script: dhclient
!! Get netcard eth0 IP failure!
!! Get netcard eth0 Netmask failure!
** MAC: 5c:63:bf:fe:8f:20
** IP:  0.0.0.0
** Netmask:     0.0.0.0
>> Looking for server...
** Authentication MAC:  00:d0:f8:8b:ca:23
>> Send user name...
>> Send password...
** Client version:      2.50
** MD5 seeds:   03:8b:a9:e1:85:b9:57:5b:1b:a2:1d:b0:4c:6a:74:44
** V2 value:    34299b82791a0f184f8775fb82e05df7
>> Authentication Success!
$$ Billing hint:        
您当前使用的服务为internet4,账户余额为30.00元;
>> Get IP...
>> Operation ended
!! Get netcard eth0 IP failure!
!! Get netcard eth0 Netmask failure!
** MAC: 5c:63:bf:fe:8f:20
** IP:  0.0.0.0
** Netmask:     0.0.0.0
>> Looking for server...
>> Send user name...
>> Send password...
** Client version:      2.50
** MD5 seeds:   c2:8d:15:4e:54:dd:df:e2:96:13:83:13:12:5b:49:3b
** V2 value:    44e6b54575c74ee5d127b7e319ac1206
>> Authentication Success!
$$ Billing hint:        
您当前使用的服务为internet4,账户余额为30.00元;
>> In order to keep online sending heartbeat package...

Original issue reported on code.google.com by mone...@gmail.com on 15 May 2012 at 2:08

GoogleCodeExporter commented 8 years ago
LZ哪个学校的啊?好像有的学校确实会获取到假的iP地址

Original comment by q741...@gmail.com on 15 May 2012 at 3:53

GoogleCodeExporter commented 8 years ago
河北师大的
不是获取假的IP,是获取不到IP,DHCP不给分配地址,或是没有
接收到分配的IP。

Original comment by mone...@gmail.com on 15 May 2012 at 4:21

GoogleCodeExporter commented 8 years ago
还有请问“*.mpf”文件无效是怎么回事啊?在WinXP上用那个抓�
��是可以正常登陆的啊……

Original comment by mone...@gmail.com on 15 May 2012 at 4:24

GoogleCodeExporter commented 8 years ago
请问,您抓的包确定在PC上可以使用么?
河北师大好像不用mpf包的啊
你可以用PC的地址(就是mentohust设置DHCP为认证后,但是其实��
�网卡一个固定IP)
试试我这个方法吧

Original comment by buzz16 on 15 May 2012 at 2:23

GoogleCodeExporter commented 8 years ago
感谢buzz16,现在能正常使用了!

在WinXP上用MentoHUST需要mpf抓包,因为没有设定静态IP。在DD-WRT�
��开始也没设置静态IP,后来按你的方法,设定成静态IP模式��
�用PC认证后的地址),用MentoHUST认证成功就可以上网了。

用以下参数格式能在DOS下拨号成功,但是关闭后就断了,不��
�打开网页了:
mentohust -u■■■■ -p■■■■ -neth0 -ixxx.xxx.xxx.xxx 
-mxxx.xxx.xxx.xxx -gxxx.xxx.xxx.xxx -sxxx.xxx.xxx.xxx -a1 -d2 -v2.50

所以添加了-oxxx.xxx.xxx.xxx和-b2,在DD-WRT下设为开机指令,就可
以正常上网了:
mentohust -u■■■■ -p■■■■ -neth0 -ixxx.xxx.xxx.xxx 
-mxxx.xxx.xxx.xxx -gxxx.xxx.xxx.xxx -sxxx.xxx.xxx.xxx -oxxx.xxx.xxx.xxx  -a1 
-d2 -b2 -v2.50

同样感谢q741451@gmail.com,谢谢mentohust-wrt!

Original comment by mone...@gmail.com on 16 May 2012 at 1:28

GoogleCodeExporter commented 8 years ago
我也遇到了LZ开始时无法获取IP的问题。
尝试利用buzz16的方法。但是发现还是卡在get 
ip处,无法写入自己定义的IP……如果进路由自己改又会导致�
��由重启丢失连接,囧rz。不知LZ是否碰到过类似问题?
(Dlink DIR-615,ddwrt.mentohust.udhcpc)

Original comment by Thomas.B...@gmail.com on 15 Sep 2012 at 5:22

GoogleCodeExporter commented 8 years ago
你好,我也遇到了Get 
IP...的问题,请问楼主是怎么解决的,能详细点吗?我是新手
,谢谢了~~

Original comment by Hai.zw.H...@gmail.com on 13 Dec 2012 at 3:50