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

<urlopen error [SSL] internal error (_ssl.c:1123)> #93

Open sA74n opened 3 years ago

sA74n commented 3 years ago

python3 linkfinder.py -i https://www.domain.com/javascript.js?2355451 -o cli Usage: python linkfinder.py [Options] use -h for help Error: invalid input defined or SSL error: <urlopen error [SSL] internal error (_ssl.c:1123)>

BeingN00b commented 3 years ago

Im facing the same issue.. please do let me know if its resolved

byt3hx commented 3 years ago

Hey man, it was happened to me too

I fixed it by adding the following lines of code into linkfinder.py

import ssl
ssl._create_default_https_context = ssl._create_unverified_context
byt3hx commented 3 years ago

If it is still happening , just remove those two lines from linkfinder.py

print("Usage: python %s [Options] use -h for help" % sys.argv[0])
print("Error: %s" % errmsg)
E-Jarvis commented 3 months ago

in linkfinder.py: try: sslcontext = ssl._create_unverified_context()
response = urlopen(q, timeout=args.timeout, context=sslcontext) except: sslcontext = ssl._create_unverified_context()
response = urlopen(q, timeout=args.timeout, context=sslcontext)


you maybe need to check you ssl.py , find a function like "_create_unverified_context()" instead of "create_default_context()" Here is my ssl.py:

微信截图_20240506151400