代码更新了,现在需要验证码了,我写了个脚本,目前的问题是,识别验证码用的mjj给的,识别率有点低
https://hostloc.com/thread-1227092-1-1.html
- while true
- do
- json_data=$(curl 'https://danrongh5api.shihuak.com/api/users/userCaptcha/captchaVerify' \
- -H 'authority: danrongh5api.shihuak.com' \
- -H 'accept: application/json, text/javascript, */*; q=0.01' \
- -H 'accept-language: zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6' \
- -H 'channel: null' \
- -H 'contenttype: json' \
- -H 'gdtvid: null' \
- -H 'origin: https://vipshop.quanminyanxuan.com' \
- -H 'referer: https://vipshop.quanminyanxuan.com/' \
- -H 'saascode: W9A8' \
- -H 'sec-ch-ua: "Chromium";v="118", "Microsoft Edge";v="118", "Not=A?Brand";v="99"' \
- -H 'sec-ch-ua-mobile: ?1' \
- -H 'sec-ch-ua-platform: "Android"' \
- -H 'sec-fetch-dest: empty' \
- -H 'sec-fetch-mode: cors' \
- -H 'sec-fetch-site: cross-site' \
- -H 'sign: 567f34a9919ea9cd7bf732c6973e74a4' \
- -H 'source: weapp' \
- -H 'sourceplatform: vipshop' \
- -H 'timestamp: 1700015165139' \
- -H 'token: 2bb0b928-047b-752f-a361-b80e25a4f043' \
- -H 'user-agent: Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Mobile Safari/537.36 Edg/118.0.2088.69' \
- -H 'uuid: 2bb0b928-047b-752f-a361-b80e25a4f043' )
- key=$(echo $json_data | jq -r '.data.key')
- image=$(echo $json_data | jq -r '.data.image' | sed 's/^data:image\/png;base64,//')
- echo "Key: $key"
- echo "Image: $image"
- result_data=$(curl 'https://ocr.zhu.ee/api.Arithmetic_VerificationCode' -X POST -d '{"ImageBase64": "'"$image"'"}' --header "Content-Type: application/json")
- result=$(echo $result_data | jq -r '.result')
- echo $result_data
- echo $result
- num=$(shuf -i 0-9 -n 8 | tr -d '\n')
- curl "https://danrongh5api.shihuak.com/api/users/sms/generateAuthCode?phone=176$num&type=loginPhone&captchaKey=$key&captchaValue=$result" \
- -H 'authority: danrongh5api.shihuak.com' \
- -H 'accept: application/json, text/javascript, */*; q=0.01' \
- -H 'accept-language: zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6' \
- -H 'channel: null' \
- -H 'contenttype: json' \
- -H 'gdtvid: null' \
- -H 'origin: https://vipshop.quanminyanxuan.com' \
- -H 'referer: https://vipshop.quanminyanxuan.com/' \
- -H 'saascode: W9A8' \
- -H 'sec-ch-ua: "Chromium";v="118", "Microsoft Edge";v="118", "Not=A?Brand";v="99"' \
- -H 'sec-ch-ua-mobile: ?1' \
- -H 'sec-ch-ua-platform: "Android"' \
- -H 'sec-fetch-dest: empty' \
- -H 'sec-fetch-mode: cors' \
- -H 'sec-fetch-site: cross-site' \
- -H 'sign: a923dcf0cd9901477bb072aad31193c2' \
- -H 'source: weapp' \
- -H 'sourceplatform: vipshop' \
- -H 'timestamp: 1700015169913' \
- -H 'token: 2bb0b928-047b-752f-a361-b80e25a4f043' \
- -H 'user-agent: Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Mobile Safari/537.36 Edg/118.0.2088.69' \
- -H 'uuid: 2bb0b928-047b-752f-a361-b80e25a4f043' \
- --compressed
- done
复制代码 |