分享一下滑動驗證碼的模擬滑動攻克


驗證碼很讓人頭疼----極驗,現在6.0版本來了,用這種方式實現,通過率只有一成!!

極驗的機器學習太強了,可以考慮換IP實現! 還有一點是軌跡!!可以考慮使用已經成功的歷史軌跡來作為當前的軌跡!!

網上有太多的破解方法我就不多說了

源碼分享 guesst/

 

感謝https://github.com/darbra/geetest

 

windows下配的環境(當時這個環境讓人頭疼)

安裝python2.7

添加環境變量===我的電腦--右擊‘屬性’==高級系統設置==環境變量==PATH----‘python_2\Scipts’

解壓phantomjs到python\Scripts下

安裝PIL ====1.1.7

chromedriver.exe放到python\Scripts下

pip install selenium

程序:

chrome

from selenium import webdriver

chromedriver.exe模擬器可以看到chrome現象!

obj = webdriver.Chrome(executable_path=r"E:\python_2\Scripts\chromedriver.exe")

obj.get('https://www.baidu.com/') obj.save_screenshot("1.png") # 截圖保存

phantomjs

from selenium.webdriver.common.desired_capabilities import DesiredCapabilities

dcap = dict(DesiredCapabilities.PHANTOMJS) # 設置userAgent dcap["phantomjs.page.settings.userAgent"] = ( "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:25.0) Gecko/20100101 Firefox/25.0 ")

obj = webdriver.PhantomJS(executable_path='E:\python_2\Scripts\phantomjs.exe', desired_capabilities=dcap) # 加載網址 obj.get('https://www.baidu.com/')

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2026 CODEPRJ.COM