MCPcopy Create free account
hub / github.com/TheRook/subbrute / __init__

Method __init__

dnslib/shellresolver.py:30–40  ·  view source on GitHub ↗
(self,routes,origin,ttl)

Source from the content-addressed store, hash-verified

28
29 """
30 def __init__(self,routes,origin,ttl):
31 self.origin = DNSLabel(origin)
32 self.ttl = parse_time(ttl)
33 self.routes = {}
34 for r in routes:
35 route,_,cmd = r.partition(":")
36 if route.endswith('.'):
37 route = DNSLabel(route)
38 else:
39 route = self.origin.add(route)
40 self.routes[route] = cmd
41
42 def resolve(self,request,handler):
43 reply = request.reply()

Callers

nothing calls this directly

Calls 3

DNSLabelClass · 0.90
parse_timeFunction · 0.90
addMethod · 0.80

Tested by

no test coverage detected