Unix Like

一行命令完成验证码版天翼认证

今天起天翼认证,验证码不能为空了。

用到了tesseract-ocr:

apt-get install tesseract-ocr

认证:

curl "http://enet.10000.gd.cn:10001/login.do" -d "userName1=网页认证用户名&password1=网页认证密码&eduuser=DHCP分配到的IP&edubas=113.98.10.136&rand=$(curl -c /tmp/webauth_cookie http://enet.10000.gd.cn:10001/common/image.jsp | tesseract - -)" -b /tmp/webauth_cookie
9 Comments

101 Posts

自信、努力、活出精彩;以前未所见的颜色,绘大千世界!
View all posts

9 thoughts on “一行命令完成验证码版天翼认证”

              1. 用的是openwrt中文网的PandoraBox稳定版,http://downloads.openwrt.org.cn/PandoraBox/Lenovo-Y1_RY-1S/firmware/stable/

Leave a reply

Your email address will not be published. Required fields are marked *