mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-04-25 19:33:48 +03:00
added few comments
This commit is contained in:
parent
a5b69eaea4
commit
098c7c06dd
|
@ -39,6 +39,10 @@ class DNSQuery:
|
||||||
j = ord(raw[i])
|
j = ord(raw[i])
|
||||||
|
|
||||||
def response(self, resolution):
|
def response(self, resolution):
|
||||||
|
"""
|
||||||
|
Crafts raw DNS resolution response packet
|
||||||
|
"""
|
||||||
|
|
||||||
retVal = ""
|
retVal = ""
|
||||||
|
|
||||||
if self._query:
|
if self._query:
|
||||||
|
@ -60,6 +64,11 @@ class DNSServer:
|
||||||
self._running = False
|
self._running = False
|
||||||
|
|
||||||
def pop(self, prefix=None, suffix=None):
|
def pop(self, prefix=None, suffix=None):
|
||||||
|
"""
|
||||||
|
Returns received DNS resolution request (if any) that has given
|
||||||
|
prefix/suffix combination (e.g. prefix.<query result>.suffix.domain)
|
||||||
|
"""
|
||||||
|
|
||||||
retVal = None
|
retVal = None
|
||||||
|
|
||||||
with self._lock:
|
with self._lock:
|
||||||
|
@ -72,6 +81,10 @@ class DNSServer:
|
||||||
return retVal
|
return retVal
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
|
"""
|
||||||
|
Runs a DNSServer instance as a daemon thread (killed by program exit)
|
||||||
|
"""
|
||||||
|
|
||||||
def _():
|
def _():
|
||||||
try:
|
try:
|
||||||
self._running = True
|
self._running = True
|
||||||
|
|
Loading…
Reference in New Issue
Block a user