使用burp插件captcha-killer識別圖片驗證碼(跳坑記)
VSole2021-12-29 07:05:40
一、0x01插件簡介
burp2020前使用:
https://github.com/c0ny1/captcha-killer/tree/0.1.2
burp2020后的版本使用:
https://github.com/Ta0ing/captcha-killer-java8
captcha-killer要解決的問題是讓burp能用上各種驗證碼識別技術!插件當前針對的圖片類型驗證碼,其他類型當前不支持。captcha-killer本身無法識別驗證碼,它專注于對各種驗證碼識別接口的調用。

二、插件使用介紹
2.1 百度識別驗證碼接口:
- 調用百度ocr識別驗證碼
https://cloud.baidu.com/product/ocr_general

創建一個應用然后記錄API Key Secret Key用來獲取Access Token具體可以看
https://ai.baidu.com/ai-doc/REFERENCE/Ck3dwjhhu
獲取access_token方法:
curl -i -k 'https://aip.baidubce.com/oauth/2.0/token?grant_type=client_credentials&client_id=【百度云應用的AK】&client_secret=【百度云應用的SK】'

2.使用插件captcha-killer自帶的baiduocr模板

更改這兩個地方為你的應用的接口地址和access_token


2.2 圖鑒識別驗證碼接口:http://www.ttshitu.com/
接口URL:http://api.ttshitu.com:80
POST /predict HTTP/1.1Host: api.ttshitu.comUpgrade-Insecure-Requests: 1User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36Accept: application/json;Accept-Encoding: gzip, deflateAccept-Language: zh-CN,zh;q=0.9Cookie: Hm_lvt_d92eb5418ecf5150abbfe0e505020254=1585994993,1586144399; SESSION=5ebf9c31-a424-44f8-8188-62ca56de7bdf; Hm_lpvt_d92eb5418ecf5150abbfe0e505020254=1586****Connection: closeContent-Type: application/json;charset=UTF-8Content-Length: 109
{"username":"***","password":"******","typeid":"3","image":"<@BASE64><@IMG_RAW></@IMG_RAW></@BASE64>"}

VSole
網絡安全專家