# Getting Passed SSL Warnings on ExploitDB Scripts for OSCP **Published by:** [int0x33](https://paragraph.com/@int0x33/) **Published on:** 2021-11-15 **URL:** https://paragraph.com/@int0x33/getting-passed-ssl-warnings-on-exploitdb-scripts-for-oscp ## Content Here is code that allows you to bypass SSL warnings for OSCPimport 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. ## Publication Information - [int0x33](https://paragraph.com/@int0x33/): Publication homepage - [All Posts](https://paragraph.com/@int0x33/): More posts from this publication - [RSS Feed](https://api.paragraph.com/blogs/rss/@int0x33): Subscribe to updates