MCPcopy Create free account

hub / github.com/avicoder/spoodle / types & classes

Types & classes49 in github.com/avicoder/spoodle

↓ 26 callersClassDNSLabel
Container for DNS label Supports IDNA encoding for unicode domain names >>> l1 = DNSLabel("aaa.bbb.ccc.") >>> l2 = DNSLabel([b"aaa"
dnslib/label.py:17
↓ 18 callersClassDNSError
dnslib/dns.py:28
↓ 10 callersClassDNSServer
Convenience wrapper for socketserver instance allowing either UDP/TCP server to be started in blocking more or as a backgroun
dnslib/server.py:295
↓ 7 callersClassDNSRecord
Main DNS class - corresponds to DNS packet & comprises DNSHeader, DNSQuestion and RR sections (answer,ns,ar) >>> d = DNSRec
dnslib/dns.py:64
↓ 6 callersClassDNSHeader
DNSHeader section
dnslib/dns.py:462
↓ 6 callersClassDNSLogger
The class provides a default set of logging functions for the various stages of the request handled by a DNSServer instance which are
dnslib/server.py:172
↓ 5 callersClassBimap
Bi-directional mapping between code/text. Initialised using: name: Used for exceptions dict: Dict mapp
dnslib/bimap.py:10
↓ 5 callersClassBufferError
dnslib/buffer.py:9
↓ 5 callersClassDNSQuestion
DNSQuestion section
dnslib/dns.py:631
↓ 4 callersClassDNSLabelError
dnslib/label.py:14
↓ 4 callersClassDigParser
Parse Dig output
dnslib/digparser.py:97
↓ 4 callersClassRR
DNS Resource Record Contains RR header and RD (resource data) instance
dnslib/dns.py:744
↓ 4 callersClassResolver
spoodle.py:43
↓ 3 callersClassWordLexer
Example lexer which will split input stream into words (respecting quotes) To emit SPACE tokens: self.spacetok = ('SPACE',No
dnslib/lex.py:140
↓ 2 callersClassDNSBuffer
Extends Buffer to provide DNS name encoding/decoding (with caching) # Needed for Python 2/3 doctest compatibility >>> def p(s): ...
dnslib/label.py:141
↓ 1 callersClassBuffer
A simple data buffer - supports packing/unpacking in struct format # Needed for Python 2/3 doctest compatibility >>> def p(s): ...
dnslib/buffer.py:12
↓ 1 callersClassEDNSOption
EDNSOption pseudo-section Very rudimentary support for EDNS0 options however this has not been tested due to a lack of data
dnslib/dns.py:689
↓ 1 callersClassFixedResolver
Respond with fixed response to all requests
dnslib/fixedresolver.py:15
↓ 1 callersClassInterceptResolver
Intercepting resolver Proxy requests to upstream server optionally intercepting requests matching local records
dnslib/intercept.py:16
↓ 1 callersClassProxyResolver
Proxy resolver - passes all requests to upstream DNS server and returns response Note that the request/response will be each
dnslib/proxy.py:10
↓ 1 callersClassShellResolver
Example dynamic resolver. Maps DNS labels to shell commands and returns result as TXT record (Note: No context is passed to
dnslib/shellresolver.py:14
↓ 1 callersClassTXT
DNS TXT record. Pass in either a single string, or a tuple/list of strings. >>> TXT('txtvers=1') "txtvers=1" >>> TXT
dnslib/dns.py:1008
↓ 1 callersClassZoneParser
Zone file parser >>> z = ZoneParser("www.example.com. 60 IN A 1.2.3.4") >>> list(z.parse()) [<DNS RR: 'www.example.c
dnslib/dns.py:1576
↓ 1 callersClassZoneResolver
Simple fixed zone file resolver.
dnslib/zoneresolver.py:10
↓ 1 callersClassloader
spoodle.py:415
↓ 1 callersClasslookup
spoodle.py:269
↓ 1 callersClassverify_nameservers
spoodle.py:142
ClassA
dnslib/dns.py:1076
ClassAAAA
Basic support for AAAA record - accepts IPv6 address data as either a tuple of 16 bytes or in text format
dnslib/dns.py:1160
ClassBaseResolver
Base resolver implementation. Provides 'resolve' method which is called by DNSHandler with the decode request (DNSRecord instance)
dnslib/server.py:95
ClassBimapError
dnslib/bimap.py:7
ClassCNAME
dnslib/dns.py:1236
ClassDNSHandler
Handler for socketserver. Transparently handles both TCP/UDP requests (TCP requests have length prepended) and hands off lookup to re
dnslib/server.py:117
ClassDNSKEY
dnslib/dns.py:1448
ClassEDNS0
ENDS0 pseudo-record Wrapper around the ENDS0 support in RR to make it more convenient to create EDNS0 pseudo-record - this
dnslib/dns.py:871
ClassLexer
Simple Lexer base class. Provides basic lexer framework and helper functionality (read/peek/pushback etc) Each state is imp
dnslib/lex.py:12
ClassMX
dnslib/dns.py:1194
ClassNAPTR
dnslib/dns.py:1381
ClassNS
dnslib/dns.py:1276
ClassPTR
dnslib/dns.py:1273
ClassPassthroughDNSHandler
Modify DNSHandler logic (get_reply method) to send directly to upstream DNS server rather then decoding/encoding packet and
dnslib/proxy.py:44
ClassRD
Base RD object - also used as placeholder for unknown RD types To create a new RD type subclass this and add to RDMAP (below)
dnslib/dns.py:925
ClassRRSIG
dnslib/dns.py:1485
ClassRandomLexer
Test lexing from infinite stream. Extract strings of letters/numbers from /dev/urandom >>> import itertools,sys >>
dnslib/lex.py:247
ClassSOA
dnslib/dns.py:1279
ClassSRV
dnslib/dns.py:1335
ClassTCPServer
dnslib/server.py:292
ClassTestContainer
dnslib/test_decode.py:66
ClassUDPServer
dnslib/server.py:289