cescobarresi / ciscoreputation

Get the Cisco's talosintelligence.com reputation for an ip address
MIT License
28 stars 13 forks source link

Error in cert verify and user-agent #7

Open paagalladka opened 5 years ago

paagalladka commented 5 years ago

Hello @cescobarresi , There is an SSL ERROR in certificate verification part of requests.get () call. Also i think user-agent is not working again.

requests.exceptions.SSLError: HTTPSConnectionPool(host='talosintelligence.com', port=443): Max retries exceeded with url: /sb_api/query_lookup?query=%2Fapi%2Fv2%2Fdetails%2Fip%2F&query_entry=85.8.27.117 (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:777)'),))

I have found the fix for user-agent string i.e.

userAgent = 'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.119 Safari/537.36'

if I use verify=False code is working but requests should have been able to read 'subjectaltname ' instead seems its only reading CN, can you check it ?

cescobarresi commented 5 years ago

Hi @paagalladka , I'm getting Cloudflare's anti-bot page (also known as "I'm Under Attack Mode", or IUAM) on every try.

This is becoming an ever-harder catch up game. Since I'm not actively using this software I'll quit the game for now.

Maybe in the future I'll try to catch up again and make this work. If any one wants to implement a bypass, please do so.