GerbenJavado / LinkFinder

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

LinkFinder/linkfinder.py:133: DeprecationWarning: ssl.PROTOCOL_TLSv1_2 is deprecated sslcontext = ssl.SSLContext(ssl.PROTOCOL_TLSv1_2) #152

Open ethicalanuj opened 2 months ago

ethicalanuj commented 2 months ago

LinkFinder/linkfinder.py:133: DeprecationWarning: ssl.PROTOCOL_TLSv1_2 is deprecated

sslcontext = ssl.SSLContext(ssl.PROTOCOL_TLSv1_2)
lifeishelld commented 1 month ago

ssl:PROTOCOL_TLSv1_2 works no more replace with code below

try: sslcontext = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT) response = urlopen(q, timeout=args.timeout, context=sslcontext) except Exception as e: sslcontext = ssl.SSLContext(ssl.PROTOCOL_TLSv1) response = urlopen(q, timeout=args.timeout, context=sslcontext)