humiaozuzu / yah3c Goto Github PK
View Code? Open in Web Editor NEW中山大学东校区校园网认证的客户端(非官方)
License: MIT License
中山大学东校区校园网认证的客户端(非官方)
License: MIT License
安装过程没有问题,但是最后认真的时候出错了
Traceback (most recent call last):
File "/usr/local/bin/yah3c", line 5, in
yah3c.yah3c.main()
File "/Library/Python/2.7/site-packages/yah3c/yah3c.py", line 126, in main
start_yah3c(login_info)
File "/Library/Python/2.7/site-packages/yah3c/yah3c.py", line 102, in start_yah3c
yah3c = eapauth.EAPAuth(login_info)
File "/Library/Python/2.7/site-packages/yah3c/eapauth.py", line 33, in init
self.client = socket.socket(socket.AF_PACKET, socket.SOCK_RAW, socket.htons(ETHERTYPE_PAE))
AttributeError: 'module' object has no attribute 'AF_PACKET'
RT
明文密码不会有问题吗?
顺便问一下能否加个断线重连功能,放宿舍偶尔断线就不能ssh了
我写了个脚本放在了daemon里面,开机自动联网,但是,如果网线没插或者不是校园网则认证不成功,这时程序会停在那里不动。希望这个问题可以解决,当连接不成功时跳出,应该可以做到。
如果重用,就会出现E63100的错误,不知道这个version_info是怎么来的?
第二点是因为我的Arch每次升级内核都要重新编译Broadcom的驱动,但是平时有线网卡是eth1,无线网卡是eth0,在升级内核后由于没有无线网卡,所以有线网卡是eth0。于是就想建两个profile,一个是eht1的,一个是eth0的
ipv6无法使用啊,测试过各多个ipv6网站都是超时,校园网的ipv6没了还怎么用啊,蜗速啊
本人来自SCUT五山校区,最近用YAH3C出现问题,我们学校用的是linux下是inode PC 5.0 (E0103),windows下是inode PC 5.0 (E0101),我想将yah3c交叉编译到openwrt中,就像oh3c一样,但是oh3c运行在RG100a路由上出现Segmentation fault 问题 ,希望得到项目组的解答,附上抓包地址http://code.google.com/p/oh3c/issues/detail?id=1
Hi Maple,
~ sudo yah3c
[sudo] password for madper:
0. add a new user
1 ('xiechj', 'eth0')
Your choice: 1
==> Sending EAPOL start
==> Got EAP Request for identity
==> Sending EAP response with identity = [xiechj]
==> Got EAP Failure
E63018: 用户不存在或者用户没有申请该服务。kG8
~ sudo yah3c
0. add a new user
1 ('xiechj', 'eth0')
Your choice: 1
==> Sending EAPOL start
==> Got EAP Request for identity
==> Sending EAP response with identity = [xiechj]
==> Got EAP Failure
E63018: 用户不存在或者用户没有申请该服务。kG8
~ sudo yah3c
0. add a new user
1 ('xiechj', 'eth0')
Your choice: 1
==> Sending EAPOL start
==> Got EAP Request for identity
==> Sending EAP response with identity = [xiechj]
==> Got EAP Failure
E63018: 用户不存在或者用户没有申请该服务。kG8
~ sudo yah3c
0. add a new user
1 ('xiechj', 'eth0')
Your choice: 1
==> Sending EAPOL start
==> Got EAP Request for identity
==> Sending EAP response with identity = [xiechj]
==> Got EAP Success
~
Luckly, it pass in 5 times. I'm sure that I have charged. And I can't reproduce it 100%.
Just paste the log here. For someone checking.
Thanks,
Madper Xie.
2016-07-04 几乎是没10分钟就会断一次,求开发迅速解决!
环境:ubuntu mate16.04(u盘系统)
browser: chrome Version 51.0.2704.106 (64-bit)
Ubuntu-12.10-i386-desktop
中大东校
Y480
之前socket.error然后根据网上的资料装了一遍网卡驱动可以正常打开了
si@si-Lenovo:$ sudo yah3c$
[sudo] password for si:
0 - add a new user
1 - wangsch3(eth0)
Your choice: 1
==> Sending EAPOL start
==> Got EAP Request for identity
==> Sending EAP response with identity = [wangsch3]
==> Got EAP Request for MD5-Challenge
==> Sending EAP response with password
==> Got unknown EAP code (10)
==> Got EAP Success
si@si-Lenovo:
打不开任何网页啊亲o(>﹏<)o
The practical advantage of C/C++ version should be portability. Python is good, but how do you handle these situations?
The python in system is obsolete, say 2.4.
The python in system is 3.
There is no python in system, say OpenWRT or minimal installation environment for some Linux distributions.
(These is python packages for OpenWRT, but they consume much space.)
Traceback (most recent call last):
File "/usr/local/bin/yah3c", line 5, in
yah3c.yah3c.main()
File "/usr/local/lib/python2.7/dist-packages/yah3c/yah3c.py", line 126, in main
start_yah3c(login_info)
File "/usr/local/lib/python2.7/dist-packages/yah3c/yah3c.py", line 102, in start_yah3c
yah3c = eapauth.EAPAuth(login_info)
File "/usr/local/lib/python2.7/dist-packages/yah3c/eapauth.py", line 34, in init
self.client.bind((login_info['ethernet_interface'], ETHERTYPE_PAE))
File "/usr/lib/python2.7/socket.py", line 228, in meth
return getattr(self._sock,name)(*args)
socket.error: [Errno 19] No such device
师兄/师姐好,最近中东校园网更新之后无法认证了,提示
==> Sending EAPOL start
==> Got EAP Request for identity
==> Sending EAP response with identity = [yuxk3]
==> Got EAP Request for MD5-Challenge
==> Sending EAP response with password
==> Got EAP Failure
我看了H3C 802.11x的认证流程,猜测是校园网把校验算法改了,现在的认证端取得MD5-Challenge后加密所得的密文不符合现在校园网的规范,就是eapauth.py的140-144行(包括其调用的send_response_md5方法)的加密算法不符合现在校园网所用的算法,所以认证失败。其他地方没有看到有影响的部分。
所以想请教一下师兄/师姐,您当年是根据什么写出这个算法的,我想试一下能不能把算法改成现在校园网使用的算法(如果真是这个原因的话)
不过有个特别的情况:极路由2自带的华三认证是可以成功认证现在的校园网的,但是我不知道它的实现,它也没开源,从它的设置里也看不出什么可以学习的地方。。
非常感谢!
ubuntu16.04的网卡不再是eth0,变成了enp1s0 (默认),否则找不到设备
Sending EAPOL start
怎么办 ?
中大软工学生一枚,想问一下h3c的算法是如何获取,需要去抓包什么的嘛?想去研究一下相关的。
接入时长(秒) 服务名
215 学生上网服务
2630 学生上网服务
45 学生上网服务
下线原因: NAS Error
环境: Arch
[-] ERROR: could not bind BPF device to interface. eth0-eth4都试过了。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.