MCPcopy Create free account
hub / github.com/fortra/impacket / monkeypatch_ssl_create_default_context

Function monkeypatch_ssl_create_default_context

impacket/examples/__init__.py:21–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19 return context
20
21def monkeypatch_ssl_create_default_context():
22 if ssl.create_default_context != _insecure_create_default_context:
23 ssl._create_default_context = ssl.create_default_context
24 ssl.create_default_context = _insecure_create_default_context
25
26 from impacket import LOG
27 LOG.debug('Monkeypatch [ssl.create_default_context] to allow connections to insecurely configured servers')
28 LOG.debug(' minimum_version = ssl.TLSVersion.MINIMUM_SUPPORTED')
29 LOG.debug(' set_ciphers("ALL:@SECLEVEL=0")')
30 LOG.debug(' verify_mode = ssl.CERT_NONE')
31
32# -----
33

Callers 1

__init__.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…