mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-25 19:13: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])
|
||||
|
||||
def response(self, resolution):
|
||||
"""
|
||||
Crafts raw DNS resolution response packet
|
||||
"""
|
||||
|
||||
retVal = ""
|
||||
|
||||
if self._query:
|
||||
|
@ -60,6 +64,11 @@ class DNSServer:
|
|||
self._running = False
|
||||
|
||||
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
|
||||
|
||||
with self._lock:
|
||||
|
@ -72,6 +81,10 @@ class DNSServer:
|
|||
return retVal
|
||||
|
||||
def run(self):
|
||||
"""
|
||||
Runs a DNSServer instance as a daemon thread (killed by program exit)
|
||||
"""
|
||||
|
||||
def _():
|
||||
try:
|
||||
self._running = True
|
||||
|
|
Loading…
Reference in New Issue
Block a user