GerbenJavado / LinkFinder

A python script that finds endpoints in JavaScript files
https://gerbenjavado.com/discovering-hidden-content-using-linkfinder
MIT License
3.7k stars 595 forks source link

Update linkfinder.py #32

Closed dostoevskylabs closed 6 years ago

dostoevskylabs commented 6 years ago

changed line

sslcontext = ssl.SSLContext(ssl.PROTOCOL_TLSv1)

with

sslcontext = ssl.SSLContext(ssl.PROTOCOL_TLSv1_2)

to support tlsv1.2 which some websites force and would result in the error

Error: invalid input defined or SSL error: <urlopen error [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:645)>