
Subscribe to int0x33

Subscribe to int0x33
Share Dialog
Share Dialog
<100 subscribers
<100 subscribers
Here is code that allows you to bypass SSL warnings for OSCP
import urllib2
import ssl
ctx = ssl.create_default_context()
ctx.check_hostname = False
ctx.verify_mode = ssl.CERT_NONE
urllib2.urlopen("https://your-test-server.local", context=ctx)
The key lines are as follows:
ctx = ssl.create_default_context()
ctx.check_hostname = False
ctx.verify_mode = ssl.CERT_NONE
This is the same as -k with curl and –no-check-certificate for wget.
Here is code that allows you to bypass SSL warnings for OSCP
import urllib2
import ssl
ctx = ssl.create_default_context()
ctx.check_hostname = False
ctx.verify_mode = ssl.CERT_NONE
urllib2.urlopen("https://your-test-server.local", context=ctx)
The key lines are as follows:
ctx = ssl.create_default_context()
ctx.check_hostname = False
ctx.verify_mode = ssl.CERT_NONE
This is the same as -k with curl and –no-check-certificate for wget.
No activity yet