-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlib.py
95 lines (90 loc) · 2.16 KB
/
lib.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#-*-coding: utf-8-*-
from time import strftime
def banner(p=True):
text = '''
_______
| \\
| _ \\
| | | |
| | | |
| | | |
| |_| | N S E Y E
| |
| /
|_______/ '''
text += "\n\n [+]Github: https://github.com/binarioGH\n\n"
if p:
print(text)
else:
return text
def getText(query, record):
TEXT = "-"*40
TEXT += "\n {}:".format(record, RECORDS[record])
for info in query:
TEXT += "\n {}".format(info)
TEXT += "\n"
return TEXT
RECORDS = {
"A": "IPV4 Adress Record",
"AAAA": "IPV6 Adress Record",
"AFSDB": "AFS Data Base Record",
"APL": "Adress Prefix List",
"CAA": "Certification Authority Authorization",
"CDNSKEY": "Child Copy of DNSKEY Record",
"CDS": "Child DS",
"CERT": "Certificate Record",
"CNAME": "Canonical Name Record",
"DHCID": "DHCP Identifier",
"DLV": "DNSSEC Lookaside Validation Record",
"DNAME": "Alias For A Name And All Its Subnames",
"DNSKEY": "DNS Key Record",
"DS": "Delegation Signer",
"HIP": "Host Identity Protocol",
"IPSECKEY": "IPsec Key",
"KEY": "Key Record",
"KX": "IPsec Key",
"LOC": "Location Record",
"MX": "Mail Exchange Record",
"NAPTR": "Naming Authority Pointer",
"NS": "Name Server Record",
"NSEC": "Next Secure Record",
"NSEC3": "Next Secure Record Version 3",
"NSEC3PARAM": "NSEC3 parameters",
"OPENPGPKEY": "OpenPGP public key record",
"PTR": "PTR Resource Record",
"RRSIG": "DNSSEC signature",
"RP": "Responsible Person",
"SIG": "Signature",
"SMIMEA":"S/MIME cert association",
"SOA": "Start Of [A Zone Of] Authority Record",
"SRV": "Service Locator",
"SSHFP": "SSH Public Key Fingerprint",
"TA": "DNSSEC Trust Authorities",
"TKEY": "Transaction Key Record",
"TLSA": "TLSA certificate association",
"TSIG": "Transaction Signature",
"TXT": "Text Record",
"URI": "Uniform Resource Identifier"
}
WHOISCMD = (
"domain_name",
"registrar",
"whois_server",
"referral_url",
"update_date",
"creation_date",
"expiration_date",
"name_servers",
"status",
"emails",
"dnssec",
"name",
"org",
"address",
"city",
"state",
"zipcode",
"country"
)
getDate = lambda: strftime("%m-%d-%y-%H-%M-%S")
loadRecords = lambda: list(RECORDS)