MCPcopy Index your code
hub / github.com/sqlmapproject/sqlmap / __init__

Method __init__

lib/request/dns.py:75–88  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

73 """
74
75 def __init__(self):
76 self._check_localhost()
77 self._requests = []
78 self._lock = threading.Lock()
79
80 try:
81 self._socket = socket._orig_socket(socket.AF_INET, socket.SOCK_DGRAM)
82 except AttributeError:
83 self._socket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
84
85 self._socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
86 self._socket.bind(("", 53))
87 self._running = False
88 self._initialized = False
89
90 def _check_localhost(self):
91 response = b""

Callers

nothing calls this directly

Calls 1

_check_localhostMethod · 0.95

Tested by

no test coverage detected