扫二维码与项目经理沟通
我们在微信上24小时期待你的声音
解答本文疑问/技术咨询/运营咨询/技术建议/互联网交流
以下代码只需要输入名字和编号就可以了,然后直接运行
成都创新互联是一家以重庆网站建设公司、网页设计、品牌设计、软件运维、营销推广、小程序App开发等移动开发为一体互联网公司。已累计为成都公路钻孔机等众行业中小客户提供优质的互联网建站和软件开发服务。#输入姓名
Name=`echo '姓名' | tr -d '\n' | xxd -plain | sed 's/\(..\)/%\1/g'`
#输入编号
Id=编号
#保存detail
detail=userName=$Name&userId=$Id
curl -X POST -H "Content-Type: application/x-www-form-urlencoded; charset=UTF-8" -d 'userName='"${Name}"'&userId='"${Id}"'' -i "http://qndxx.bestcood.com/mp/WeixinAuth/LoginByUser2.html">/root/QNdaxuexi/respondheader.txt
#假如登录成功
grep Set-Cookie:.* /root/QNdaxuexi/respondheader.txt >/root/QNdaxuexi/setcookie.txt
sed 's/ /\n/g' /root/QNdaxuexi/respondheader.txt >/root/QNdaxuexi/sed0.txt
sed 's/;/\n/g' /root/QNdaxuexi/sed0.txt >/root/QNdaxuexi/sed.txt
grep SSUUID /root/QNdaxuexi/sed.txt >/root/QNdaxuexi/cookie.txt
ck=`cat /root/QNdaxuexi/cookie.txt`
#ck=/root/QNdaxuexi/cookie.txt
curl -X GET -H "Cookie: $ck " 'http://qndxx.bestcood.com/nanning/daxuexi/' >/root/QNdaxuexi/html.txt
grep \{\"isLe.*\} /root/QNdaxuexi/html.txt >/root/QNdaxuexi/learndata.txt
sed 's/ var learnData = /\n/g' /root/QNdaxuexi/learndata.txt >/root/QNdaxuexi/sed1.txt
sed 's/;/\n/g' /root/QNdaxuexi/sed1.txt >/root/QNdaxuexi/sed2.txt
grep . /root/QNdaxuexi/sed2.txt >/root/QNdaxuexi/cidian.json
#获取季次
sed 's/"title":"/\n/g' /root/QNdaxuexi/cidian.json >/root/QNdaxuexi/sed3.txt
sed 's/"/\n/g' /root/QNdaxuexi/sed3.txt >/root/QNdaxuexi/sed4.txt
grep 第.*季 /root/QNdaxuexi/sed4.txt >/root/QNdaxuexi/ji.txt
grep 第.*期 /root/QNdaxuexi/sed4.txt >/root/QNdaxuexi/qi.txt
grep :[0-9]*, /root/QNdaxuexi/sed4.txt >/root/QNdaxuexi/grep.txt
sed 's/:/\n/g' /root/QNdaxuexi/grep.txt >/root/QNdaxuexi/sed5.txt
sed 's/,/\n/g' /root/QNdaxuexi/sed5.txt >/root/QNdaxuexi/sed6.txt
grep [0-9] /root/QNdaxuexi/sed6.txt | head -n 1 >/root/QNdaxuexi/id.txt
ji=`cat /root/QNdaxuexi/ji.txt`
qi=`cat /root/QNdaxuexi/qi.txt`
id=`cat /root/QNdaxuexi/id.txt`
#echo $ji
#echo $qi
#echo $id
############
curl -X POST -H "Content-Type: application/x-www-form-urlencoded; charset=UTF-8" -H "Cookie: $ck " -d 'id='"${id}"'' -i "http://qndxx.bestcood.com/mp/gx/DaXueXi/LearnHit.html">/root/QNdaxuexi/respondbody.txt
curl -i "http://dxxoss.wwwtop.top/dxx_data.js">/root/QNdaxuexi/respondbody2.txt
grep \{.*\} /root/QNdaxuexi/respondbody2.txt >/root/QNdaxuexi/grep2.txt
sed 's/,/\n/g' /root/QNdaxuexi/grep2.txt >/root/QNdaxuexi/sed7.txt
grep "ji" /root/QNdaxuexi/sed7.txt >/root/QNdaxuexi/grep3.txt
grep "qi" /root/QNdaxuexi/sed7.txt >/root/QNdaxuexi/grep4.txt
sed 's/:/\n/g' /root/QNdaxuexi/grep3.txt >/root/QNdaxuexi/sed8.txt
sed 's/:/\n/g' /root/QNdaxuexi/grep4.txt >/root/QNdaxuexi/sed9.txt
grep [0-9] /root/QNdaxuexi/sed8.txt >/root/QNdaxuexi/ji1.txt
grep [0-9] /root/QNdaxuexi/sed9.txt >/root/QNdaxuexi/qi1.txt
ji1=`cat /root/QNdaxuexi/ji1.txt`
qi1=`cat /root/QNdaxuexi/qi1.txt`
curl -i 'https://dxx.wwwtop.top/dxx_finish?a=${ji1}&b=${qi1}' >/root/QNdaxuexi/finish.txt
你是否还在寻找稳定的海外服务器提供商?创新互联www.cdcxhl.cn海外机房具备T级流量清洗系统配攻击溯源,准确流量调度确保服务器高可用性,企业级服务器适合批量采购,新人活动首月15元起,快前往官网查看详情吧
我们在微信上24小时期待你的声音
解答本文疑问/技术咨询/运营咨询/技术建议/互联网交流