Giter Site home page Giter Site logo

yah3c's Issues

MAC下认证出错,AttributeError: 'module' object has no attribute 'AF_PACKET'

安装过程没有问题,但是最后认真的时候出错了
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'

为什么要叫Ya呀

顺便问一下能否加个断线重连功能,放宿舍偶尔断线就不能ssh了

如果认证不成功,死循环

我写了个脚本放在了daemon里面,开机自动联网,但是,如果网线没插或者不是校园网则认证不成功,这时程序会停在那里不动。希望这个问题可以解决,当连接不成功时跳出,应该可以做到。

profile问题

  1. 创建profile时要是目录不存在会失败
  2. profile只与用户名作为标识,没有网卡号

第二点是因为我的Arch每次升级内核都要重新编译Broadcom的驱动,但是平时有线网卡是eth1,无线网卡是eth0,在升级内核后由于没有无线网卡,所以有线网卡是eth0。于是就想建两个profile,一个是eht1的,一个是eth0的

ipv6貌似无法使用

ipv6无法使用啊,测试过各多个ipv6网站都是超时,校园网的ipv6没了还怎么用啊,蜗速啊

Got EAP Failed.

Hi Maple,

I got following repsonds when I try to pass the authentication.

~ 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)

Got EAP Success 连不上网

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

Are you going to write a C/C++ version

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

认证失败(猜测是MD5算法更改了)

师兄/师姐好,最近中东校园网更新之后无法认证了,提示
==> 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的网卡

ubuntu16.04的网卡不再是eth0,变成了enp1s0 (默认),否则找不到设备

学习研究

中大软工学生一枚,想问一下h3c的算法是如何获取,需要去抓包什么的嘛?想去研究一下相关的。

短时间之内掉线

接入时长(秒)   服务名   
215                学生上网服务   
2630          学生上网服务    
45                学生上网服务    

下线原因: NAS Error
环境: Arch

OS X下报错

[-] ERROR: could not bind BPF device to interface. eth0-eth4都试过了。

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.