We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
碰到个路由器发送的 Request Package 字段并没有出现大于3的情况,为什么要这么判断?
pppoe-intercept/pppoe_intercept.py
Lines 107 to 115 in a9cd43a
另外,代码中指定 iface 只针对了 sniff,sendp 并没有指定网卡。
The text was updated successfully, but these errors were encountered:
判断是因为rfc规范是这么写的,当出现服务器不接受的字段,就得返回rej,然后一直得需要客户端发送的字段服务器都能接受才通过。具体可以看我博客上的文章。 sendp会默认从你监听的网卡上发包,所以并不需要特殊指定。
Sorry, something went wrong.
当然,我博客也只是我写最初版的时候的产物,那个时候到后来其实还是发现了不少问题,可以看看我的git commit log,再对着那文章里面截的几张ppt图,大致上就明白了
我昨天使用时把上面这段代码改回了你博客说的第一次收到 Request 就返回 Reject 才好用。 sendp 在我这里确实是需要指定网口。
那可能是你的请求里面字段比较少,我这里也只是一个粗略的判断,其实还是有点问题,应该把MRU 和魔术数以及 AuthProto的字段标识都判断一遍
No branches or pull requests
碰到个路由器发送的 Request Package 字段并没有出现大于3的情况,为什么要这么判断?
pppoe-intercept/pppoe_intercept.py
Lines 107 to 115 in a9cd43a
另外,代码中指定 iface 只针对了 sniff,sendp 并没有指定网卡。
The text was updated successfully, but these errors were encountered: