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

Method pop

lib/request/dns.py:104–125  ·  view source on GitHub ↗

Returns received DNS resolution request (if any) that has given prefix/suffix combination (e.g. prefix. .suffix.domain)

(self, prefix=None, suffix=None)

Source from the content-addressed store, hash-verified

102 raise socket.error("another DNS service already running on '0.0.0.0:53'")
103
104 def pop(self, prefix=None, suffix=None):
105 """
106 Returns received DNS resolution request (if any) that has given
107 prefix/suffix combination (e.g. prefix.<query result>.suffix.domain)
108 """
109
110 retVal = None
111
112 if prefix and hasattr(prefix, "encode"):
113 prefix = prefix.encode()
114
115 if suffix and hasattr(suffix, "encode"):
116 suffix = suffix.encode()
117
118 with self._lock:
119 for _ in self._requests:
120 if prefix is None and suffix is None or re.search(b"%s\\..+\\.%s" % (prefix, suffix), _, re.I):
121 self._requests.remove(_)
122 retVal = _.decode()
123 break
124
125 return retVal
126
127 def run(self):
128 """

Callers 15

__delitem__Method · 0.45
popitemMethod · 0.45
output_colorizedMethod · 0.45
buildMethod · 0.45
resetMethod · 0.45
__exit__Method · 0.45
__setitem__Method · 0.45
__iter__Method · 0.45
runMethod · 0.45
runMethod · 0.45
executeMethod · 0.45
templateFunction · 0.45

Calls 3

removeMethod · 0.80
decodeMethod · 0.80
searchMethod · 0.45

Tested by 1

_findUnionCharCountFunction · 0.36