Module Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Import alias ImportFrom alias Import alias Global identifier Assign NameStore NameLoad TryExcept body Import alias Assign NameStore NameLoad handlers ExceptHandler body Pass FunctionDef arguments args defaults body Return Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Print Str Print BinOpMod Str SubscriptLoad NameLoad Index Num Print Str Print Str Print Str Print Str Print Str Print Str Print Str Print Str Print Str Print Str Print Str If UnaryOpNot NameLoad body Print Str Print Str Print Str Print Str Print Str Return decorator_list FunctionDef arguments args defaults body Print Str Return decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr TryExcept body Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Return NameLoad handlers ExceptHandler body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Num Return BinOpAdd BinOpAdd BinOpAdd BinOpMult Call NameLoad SubscriptLoad NameLoad Index Num BinOpPow Num Num BinOpMult Call NameLoad SubscriptLoad NameLoad Index Num BinOpPow Num Num BinOpMult Call NameLoad SubscriptLoad NameLoad Index Num BinOpPow Num Num Call NameLoad SubscriptLoad NameLoad Index Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad For NameStore Call NameLoad Num body AugAssignAdd NameStore ListLoad Call NameLoad BinOpMod NameLoad BinOpPow Num Num Assign NameStore BinOpRShift NameLoad Num Return Call AttributeLoad Str attr SubscriptLoad NameLoad Slice Num decorator_list FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Num Assign NameStore BinOpSub Num Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore BinOpLShift BinOpRShift NameLoad NameLoad NameLoad For NameStore Call NameLoad BinOpPow Num NameLoad body Expr Yield Call NameLoad BinOpBitOr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad TryExcept body Assign NameStore Call NameLoad NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr For NameStore NameLoad body If BoolOpAnd UnaryOpNot Call AttributeLoad NameLoad attr Str CompareNotEq Call AttributeLoad NameLoad attr Str Str Str body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str Str attr Str Str If UnaryOpNot CompareIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler body Print BinOpMod Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore NameLoad Print Str Print Str If CompareGt Call NameLoad NameLoad Num body Print BinOpMod Str Call NameLoad NameLoad Print BinOpMod Str NameLoad Assign NameStore NameLoad orelse Print Str Print Str Print Str Assign NameStore ListLoad Assign NameStore Call NameLoad NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore Num For NameStore NameLoad body Assign NameStore Str Assign NameStore ListLoad TryExcept body If NameLoad body Assign NameStore ListLoad Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body Assign NameStore AttributeLoad NameLoad attr If UnaryOpNot CompareIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpMod Str NameLoad handlers ExceptHandler body Assign NameStore ListLoad Str Assign NameStore Str Assign NameStore NameLoad For NameStore NameLoad body If UnaryOpNot CompareIn NameLoad SubscriptLoad NameLoad Index NameLoad body Assign NameStore NameLoad Assign NameStore BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad Call NameLoad NameLoad NameLoad SubscriptLoad NameLoad Index NameLoad Print BinOpMod Str TupleLoad NameLoad NameLoad Call AttributeLoad Call NameLoad NameLoad attr NameLoad AugAssignAdd NameStore Num Print Str Print BinOpMod Str TupleLoad Call NameLoad NameLoad Call NameLoad NameLoad If CompareGt Call NameLoad NameLoad Num body Print Str Print BinOpMult Str Num Print BinOpMod Str Call NameLoad NameLoad Assign NameStore ListLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr BinOpMod Str Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Print NameLoad Print BinOpMult Str Num Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return decorator_list ClassDef bases body Expr Str Assign NameStore Dict FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Dict Assign NameStore Str For NameStore NameLoad body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str Str attr Str Str If BoolOpAnd Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str body If BoolOpAnd CompareNotEq NameLoad Str CompareGt Call NameLoad NameLoad Num UnaryOpNot CompareIn NameLoad AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Slice Num Num Assign NameStore Dict If BoolOpAnd UnaryOpNot Call AttributeLoad NameLoad attr Str CompareGt Call NameLoad NameLoad Num CompareIn Str NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore SubscriptLoad NameLoad Index Num If BoolOpAnd CompareGt Call NameLoad NameLoad Num CompareGt Call NameLoad NameLoad Num CompareGt Call NameLoad NameLoad Call NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Slice BinOpAdd Call NameLoad NameLoad Num Assign SubscriptStore NameLoad Index NameLoad NameLoad If BoolOpAnd CompareNotEq NameLoad Str CompareGt Call NameLoad NameLoad Num UnaryOpNot CompareIn NameLoad AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Return decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad For NameStore AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str Call NameLoad NameLoad AugAssignAdd NameStore NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr Str For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Print Str Return decorator_list FunctionDef arguments args NameParam defaults body Print Str Assign NameStore Str Assign NameStore Num Assign NameStore Num Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str While NameLoad body Assign NameStore Call NameLoad Str If UnaryOpNot CompareEq NameLoad Str body Break While NameLoad body Assign NameStore Call NameLoad Str If UnaryOpNot CompareEq Call NameLoad NameLoad Str body TryExcept body Assign NameStore Call NameLoad NameLoad Break handlers ExceptHandler body Continue orelse Assign NameStore Num Break While NameLoad body Assign NameStore Call NameLoad Str If UnaryOpNot CompareEq NameLoad Str body Break While NameLoad body Assign NameStore Call NameLoad Str If UnaryOpNot CompareEq NameLoad Str body Break While NameLoad body Assign NameStore Call NameLoad Str If UnaryOpNot CompareEq Call NameLoad NameLoad Str body TryExcept body Assign NameStore Call NameLoad NameLoad Break handlers ExceptHandler body Continue orelse Assign NameStore Num Break While NameLoad body Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr If CompareEq NameLoad Str body Assign NameStore Str If CompareIn NameLoad ListLoad Str Str body Break If CompareEq NameLoad Str body While NameLoad body Assign NameStore Call NameLoad Str If UnaryOpNot CompareEq NameLoad Str body Break While NameLoad body Assign NameStore Call NameLoad Str If UnaryOpNot CompareEq NameLoad Str body Break While NameLoad body Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr If CompareEq NameLoad Str body Assign NameStore Str If CompareIn NameLoad ListLoad Str Str body Break Assign NameStore ListLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign AttributeStore NameLoad attr Dict Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Return decorator_list decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Return decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Assign NameStore Dict Assign NameStore Call NameLoad AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Expr AttributeLoad NameLoad attr For NameStore NameLoad body If BoolOpAnd UnaryOpNot CompareEq Call AttributeLoad NameLoad attr Str Str Str UnaryOpNot Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr Str If CompareEq Call NameLoad NameLoad Num body Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str Str Assign NameStore Call AttributeLoad Call AttributeLoad Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str Str attr Str Str attr Str Str If BoolOpAnd CompareGt Call NameLoad NameLoad Num CompareGt Call NameLoad NameLoad Num body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore ListLoad For NameStore NameLoad body If UnaryOpNot Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr Str Str If CompareIn Str NameLoad body Assign NameStore Call NameLoad NameLoad For NameStore NameLoad body If UnaryOpNot CompareIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse If UnaryOpNot CompareIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot CompareIn NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad ListLoad NameLoad orelse Expr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr NameLoad For NameStore NameLoad body If Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str Str attr Str Str If CompareIn Str NameLoad body Assign NameStore Call NameLoad NameLoad For NameStore NameLoad body If CompareIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse If CompareIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body If UnaryOpNot CompareIn NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad ListLoad NameLoad orelse Expr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr NameLoad Return TupleLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Print BinOpMod Str Call NameLoad NameLoad For NameStore NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad If CompareIn Str NameLoad body Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str If CompareIn Str NameLoad body Assign AttributeStore NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Str Print BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr If Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Print Str If CompareIn Str NameLoad body Assign AttributeStore NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Str If CompareIn Str NameLoad body If CompareEq SubscriptLoad NameLoad Index Str Str body Assign AttributeStore NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr NameLoad If CompareIn Str NameLoad body Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str If CompareIn Str NameLoad body Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str If CompareIn Str NameLoad body If CompareEq SubscriptLoad NameLoad Index Str Str body Assign AttributeStore NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr NameLoad If CompareIn Str NameLoad body Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str If CompareIn Str NameLoad body Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str Break orelse Print Str Return decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults ListLoad Str body Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad Str attr GeneratorExp NameLoad comprehension NameStore NameLoad Assign NameStore Call AttributeLoad Str attr GeneratorExp NameLoad comprehension NameStore NameLoad Assign NameStore Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Str BinOpMod Str TupleLoad Call NameLoad NameLoad Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Str If CompareGt Call NameLoad NameLoad Num body Assign NameStore Call NameLoad Str Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad Assign NameStore Num While UnaryOpNot NameLoad body TryExcept body Print BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Print Str If AttributeLoad NameLoad attr body Print Str Expr Call AttributeLoad NameLoad attr Print Str If AttributeLoad NameLoad attr body Print Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Print Str Print Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Print Str Expr Call AttributeLoad NameLoad attr Assign NameStore NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Print Str Print Str Assign NameStore NameLoad ExceptHandler type AttributeLoad NameLoad attr name NameStore body Print BinOpMod Str TupleLoad Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr ExceptHandler type AttributeLoad NameLoad attr name NameStore body Print BinOpMod Str TupleLoad Call NameLoad AttributeLoad NameLoad attr NameLoad ExceptHandler type AttributeLoad NameLoad attr name NameStore body Print Str ExceptHandler type AttributeLoad NameLoad attr name NameStore body Print Str ExceptHandler type AttributeLoad NameLoad attr name NameStore body Print Str ExceptHandler type AttributeLoad NameLoad attr name NameStore body Print Str ExceptHandler type AttributeLoad NameLoad attr name NameStore body Print Str ExceptHandler body Print Str If UnaryOpNot NameLoad body Print BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad If CompareLt NameLoad Num body AugAssignAdd NameStore Num Return decorator_list decorator_list If CompareEq NameLoad Str body Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Str Assign NameStore ListLoad Expr Call NameLoad Assign NameStore ListLoad If CompareGtE Call NameLoad AttributeLoad NameLoad attr Num body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Slice Num Assign NameStore Dict Assign NameStore Str For NameStore NameLoad body If CompareEq SubscriptLoad NameLoad Index Num Str body Assign NameStore Call AttributeLoad NameLoad attr Str Assign SubscriptStore NameLoad Index NameLoad NameLoad Assign NameStore NameLoad orelse If CompareNotEq NameLoad Str body If CompareEq Call NameLoad SubscriptLoad NameLoad Index NameLoad Str body Assign SubscriptStore NameLoad Index NameLoad NameLoad orelse Assign SubscriptStore NameLoad Index NameLoad BinOpAdd BinOpAdd SubscriptLoad NameLoad Index NameLoad Str NameLoad If CompareIn Str NameLoad body Expr Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num If CompareIn Str NameLoad body If CompareNotEq Call AttributeLoad AttributeLoad Call NameLoad SubscriptLoad NameLoad Index Str attr attr Str body Assign NameStore SubscriptLoad NameLoad Index Str If CompareIn Str NameLoad body If CompareNotEq Call AttributeLoad AttributeLoad Call NameLoad SubscriptLoad NameLoad Index Str attr attr Str body Assign NameStore SubscriptLoad NameLoad Index Str If BoolOpAnd CompareIn Str NameLoad NameLoad body If CompareNotEq Call AttributeLoad AttributeLoad Call NameLoad SubscriptLoad NameLoad Index Str attr attr Str body Assign NameStore SubscriptLoad NameLoad Index Str If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Print BinOpMod Str NameLoad Assign NameStore Str orelse Assign NameStore Call NameLoad NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Print BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Num orelse Print BinOpMod Str NameLoad Assign NameStore Call NameLoad NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr body Print BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr orelse Print BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr If CompareIn Str NameLoad body Assign NameStore ListLoad Assign NameStore Call NameLoad NameLoad Assign NameStore ListLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr Num Expr Call NameLoad NameLoad NameLoad NameLoad
N/A N/A os N/A sys N/A smtplib email.mime.text MIMEText email.mime.multipart MIMEMultipart email Encoders email.MIMEBase MIMEBase N/A socket socket gethostname N/A datetime N/A g_allowExternalResolver N/A g_allowExternalResolver False N/A N/A N/A dns.resolver N/A g_allowExternalResolver True N/A N/A N/A N/A getNow N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A datetime datetime now strftime %Y%m%d-%H:%M:%S N/A showsyntax N/A N/A args N/A N/A N/A N/A N/A  Usage: %s [arguments] N/A args N/A 0 N/A N/A  Optional arguments: N/A      -h                   : show help
 N/A      -d <dns configfile>  : full path to dns config file. N/A                             Defaults to dnshjmon_dns.conf in current folder
 N/A      -s <smtp configfile  : full path to smtp config file. N/A                             Defaults to dnshjmon_smtp.conf in current folder
 N/A      -n <dns server file> : full path to file that contains  N/A                             DNS server IP addresses N/A                             Use this setting to overrule the default behaviour N/A                             of using the OS DNS server configuration N/A N/A g_allowExternalResolver N/A N/A      ** Note: option -n requires the python-dnspython library **  N/A               (http://www.dnspython.org/) N/A N/A      -mail                : Test e-mail configuration N/A N/A N/A showbanner N/A N/A N/A N/A N/A 
     _                __     __
 .--|  |.-----..-----.|  |--.|__|.--------..-----..-----.
 |  _  ||     ||__ --||     ||  ||        ||  _  ||     |
 |_____||__|__||_____||__|__||  ||__|__|__||_____||__|__|
                            |___|
                        [ corelanc0d3r - www.corelan.be ]
  N/A N/A check_port N/A N/A host port N/A N/A N/A s N/A N/A socket socket N/A socket AF_INET N/A socket SOCK_STREAM N/A N/A N/A N/A N/A s connect N/A host port N/A True N/A N/A N/A N/A False N/A to_long N/A N/A ip N/A N/A N/A ip N/A N/A ip split . 4 N/A N/A N/A N/A N/A N/A int N/A ip N/A 0 N/A 2 24 N/A N/A int N/A ip N/A 1 N/A 2 16 N/A N/A int N/A ip N/A 2 N/A 2 8 N/A int N/A ip N/A 3 N/A to_dotted_decimal N/A N/A long_form N/A N/A N/A octets N/A N/A i N/A range 4 N/A N/A octets N/A N/A str N/A long_form N/A 2 8 N/A long_form N/A long_form 8 N/A N/A N/A . join N/A octets N/A -1 N/A cidr_to_ipv4 N/A N/A cidr N/A N/A N/A N/A ip network_bits N/A N/A cidr split / 1 N/A host_bits N/A 32 N/A int network_bits N/A long_form N/A to_long ip N/A start N/A N/A long_form host_bits host_bits N/A i N/A xrange N/A 2 host_bits N/A N/A N/A N/A to_dotted_decimal N/A start i N/A readDNSServerFile N/A N/A dnsserverfile N/A N/A N/A dnsservers N/A N/A N/A N/A f N/A open dnsserverfile rb N/A content N/A N/A f readlines N/A N/A N/A f close N/A dnsline content N/A N/A N/A N/A N/A N/A dnsline startswith # N/A N/A N/A dnsline replace N/A N/A dnsserver N/A N/A N/A N/A dnsline replace replace N/A N/A N/A dnsserver dnsservers N/A N/A N/A N/A dnsservers append dnsserver N/A N/A N/A N/A N/A [-] Unable to read DNS server file %s dnsserverfile N/A dnsservers N/A checkdns N/A N/A dnsconfigfile mailconfigfile dnsservers N/A N/A N/A useOSDNS True N/A N/A [+] Running DNS check N/A N/A N/A len dnsservers 0 N/A N/A N/A [+] Using %d DNS server(s) for queries: N/A len dnsservers N/A N/A     %s dnsservers N/A useOSDNS False N/A N/A [+] Using OS DNS configuration for queries N/A 
Results: N/A -------- N/A toreport N/A N/A cDNS N/A DNSConfig dnsconfigfile N/A N/A dnsscope dnsscope_short N/A N/A cDNS getConfig N/A dnscnt 1 N/A dnscheck dnsscope N/A N/A extramsg N/A allresults N/A N/A N/A N/A useOSDNS N/A N/A allresults N/A N/A N/A socket gethostbyname dnscheck N/A N/A r N/A N/A N/A dns resolver Resolver N/A N/A r nameservers dnsservers N/A dnsdata N/A N/A r query dnscheck N/A rdata dnsdata N/A N/A thisresult N/A rdata address N/A N/A N/A thisresult allresults N/A N/A N/A N/A allresults append thisresult N/A extramsg N/A (%s)  allresults N/A N/A N/A N/A allresults N/A ?.?.?.? (unable to resolve) N/A extramsg (Error looking up IP) N/A siteok True N/A thisresult allresults N/A N/A N/A N/A thisresult N/A dnsscope N/A dnscheck N/A N/A siteok False N/A extramsg N/A (%s : Record manipulated?) allresults N/A N/A N/A toreport append N/A %s: %s resolves to %s, but it should be %s N/A N/A getNow dnscheck thisresult N/A dnsscope_short N/A dnscheck N/A N/A %d. %s - check OK? : %s %s N/A dnscnt dnscheck N/A N/A N/A str siteok lower extramsg N/A dnscnt 1 N/A N/A N/A [+] Done checking, tested %d sites, reported %d IP mismatches N/A N/A len dnsscope N/A len toreport N/A N/A N/A len toreport 0 N/A N/A N/A N/A * 50 N/A N/A %d DNS record(s) may have been manipulated: N/A len toreport N/A mailbody N/A N/A N/A N/A mailbody append Hi, N/A N/A N/A mailbody append N/A N/A N/A mailbody append N/A dnshjmon.py has detected %d DNS resolution issues: N/A len toreport N/A N/A N/A mailbody append N/A tr toreport N/A N/A N/A N/A mailbody append tr N/A tr N/A N/A * 50 N/A N/A N/A mailbody append N/A N/A N/A mailbody append Report generated with dnshjmon.py - https://github.com/corelan/dnshjmon N/A mailhandler N/A Mailer mailconfigfile N/A N/A N/A mailhandler sendmail mailbody N/A N/A MailConfig N/A N/A N/A 
    Class to manage SMTP email config
     N/A serverinfo N/A __init__ N/A N/A self filename N/A N/A N/A N/A self filename filename N/A N/A self fullpath N/A N/A N/A os path join N/A N/A N/A os path dirname N/A N/A N/A os path realpath __file__ filename N/A configFileExists N/A N/A self N/A N/A N/A N/A N/A N/A os path isfile N/A self fullpath N/A readConfigFile N/A N/A self N/A N/A N/A f N/A open N/A self fullpath r N/A content N/A N/A f readlines N/A N/A N/A f close N/A serverdata N/A N/A thisid N/A l content N/A N/A line N/A N/A N/A N/A l replace replace N/A N/A N/A N/A line startswith [ N/A N/A line endswith ] N/A N/A N/A N/A thisid N/A N/A len serverdata 0 N/A N/A thisid N/A self serverinfo N/A N/A N/A N/A self serverinfo N/A thisid serverdata N/A thisid N/A line N/A 1 -1 N/A serverdata N/A N/A N/A N/A N/A N/A line startswith # N/A N/A len line 0 N/A = line N/A N/A lineparts N/A N/A line split = N/A configparam N/A lineparts N/A 0 N/A N/A N/A N/A len lineparts 1 N/A N/A len configparam 0 N/A N/A len line N/A len configparam N/A N/A configval N/A line N/A N/A N/A len configparam 1 N/A N/A serverdata N/A configparam configval N/A N/A N/A thisid N/A N/A len serverdata 0 N/A N/A thisid N/A self serverinfo N/A N/A N/A N/A self serverinfo N/A thisid serverdata N/A N/A writeConfigFile N/A N/A self N/A N/A N/A filecontent N/A N/A configid N/A self serverinfo N/A N/A thisdata N/A N/A self serverinfo N/A configid N/A N/A N/A filecontent append N/A [%s] N/A str configid N/A filecontent thisdata N/A f N/A open N/A self fullpath wb N/A l filecontent N/A N/A N/A N/A f write N/A %s
 l N/A N/A N/A f close N/A [+] Saved new config file N/A N/A initConfigFile N/A N/A self N/A N/A N/A [+] Creating a new config file. N/A i_server N/A i_port 25 N/A i_timeout 300 N/A i_auth no N/A i_user N/A i_pass N/A i_from N/A i_to N/A i_tls no N/A True N/A N/A i_server N/A raw_input     > Enter smtp mail server IP or hostname:  N/A N/A N/A i_server N/A N/A N/A True N/A N/A i_port N/A raw_input     > Enter mail server port (default: 25):  N/A N/A N/A N/A str i_port N/A N/A N/A N/A i_port N/A int i_port N/A N/A N/A N/A N/A N/A N/A i_port 25 N/A N/A True N/A N/A i_from N/A raw_input     > Enter 'From' email address:  N/A N/A N/A i_from N/A N/A N/A True N/A N/A i_to N/A raw_input     > Enter 'To' email address:  N/A N/A N/A i_to N/A N/A N/A True N/A N/A i_timeout N/A raw_input     > Enter mail server timeout (in seconds, default: 300):  N/A N/A N/A N/A str i_timeout N/A N/A N/A N/A i_timeout N/A int i_timeout N/A N/A N/A N/A N/A N/A N/A i_timeout 300 N/A N/A True N/A N/A i_auth N/A raw_input     > Does server require authentication? (yes/no, default: no):  N/A i_auth N/A N/A i_auth lower N/A N/A i_auth N/A N/A i_auth no N/A N/A i_auth N/A yes no N/A N/A N/A N/A i_auth yes N/A N/A True N/A N/A i_user N/A raw_input     > Username:  N/A N/A N/A i_user N/A N/A N/A True N/A N/A i_pass N/A raw_input     > Password:  N/A N/A N/A i_pass N/A N/A N/A True N/A N/A i_tls N/A raw_input     > Does server require/support STARTTLS ? (yes/no, default: no):  N/A i_tls N/A N/A i_tls lower N/A N/A i_tls N/A N/A i_tls no N/A N/A i_tls N/A yes no N/A N/A N/A initserverdata N/A N/A N/A N/A initserverdata append N/A server=%s i_server N/A N/A N/A initserverdata append N/A port=%d i_port N/A N/A N/A initserverdata append N/A from=%s i_from N/A N/A N/A initserverdata append N/A to=%s i_to N/A N/A N/A initserverdata append N/A timeout=%d i_timeout N/A N/A N/A initserverdata append N/A auth=%s i_auth N/A N/A N/A initserverdata append N/A user=%s i_user N/A N/A N/A initserverdata append N/A pass=%s i_pass N/A N/A N/A initserverdata append N/A tls=%s i_tls N/A N/A self serverinfo N/A N/A N/A N/A self serverinfo N/A i_server initserverdata N/A N/A N/A self writeConfigFile N/A N/A N/A DNSConfig N/A N/A N/A 
    Class to manage DNS email config
     __init__ N/A N/A self configfile N/A N/A N/A N/A self configfile configfile N/A N/A getConfig N/A N/A self N/A N/A N/A configrecords N/A N/A configrecords_short N/A N/A f N/A open N/A self configfile rb N/A contents N/A N/A f readlines N/A N/A f close N/A thisline contents N/A N/A N/A N/A N/A N/A N/A thisline replace N/A N/A N/A thisline startswith # N/A N/A thislineparts N/A N/A thisline split = N/A N/A N/A len thislineparts 2 N/A N/A sitename N/A N/A N/A thislineparts N/A 0 replace N/A siteiplist N/A N/A N/A N/A N/A N/A N/A thislineparts N/A 1 replace replace replace N/A N/A N/A N/A len sitename 0 N/A N/A len siteiplist 0 N/A N/A siteips N/A N/A siteiplist split , N/A iplist N/A N/A thisip siteips N/A N/A N/A N/A N/A thisip startswith - N/A N/A tip N/A N/A thisip replace \ / N/A N/A / tip N/A N/A cidrlist N/A cidr_to_ipv4 tip N/A ip cidrlist N/A N/A N/A N/A ip iplist N/A N/A N/A N/A iplist append ip N/A N/A N/A N/A tip iplist N/A N/A N/A N/A iplist append thisip N/A N/A N/A sitename configrecords_short N/A N/A N/A configrecords_short N/A sitename N/A thisip N/A N/A N/A N/A N/A configrecords_short N/A sitename append thisip N/A thisip siteips N/A N/A N/A N/A thisip startswith - N/A N/A tip N/A N/A N/A N/A thisip replace \ / replace - N/A N/A / tip N/A N/A cidrlist N/A cidr_to_ipv4 tip N/A ip cidrlist N/A N/A N/A ip iplist N/A N/A N/A N/A iplist remove ip N/A N/A N/A tip iplist N/A N/A N/A N/A iplist remove tip N/A thisip iplist N/A N/A N/A N/A sitename configrecords N/A N/A N/A configrecords N/A sitename N/A thisip N/A N/A N/A N/A N/A configrecords N/A sitename append thisip N/A N/A configrecords configrecords_short N/A N/A Mailer N/A N/A N/A 
    Class to handle email notifications
     __init__ N/A N/A self smtpconfigfile N/A N/A N/A N/A self server 127.0.0.1 N/A N/A self timeout 300 N/A N/A self port 25 N/A N/A self to root@127.0.0.1 N/A N/A self fromaddress root@127.0.0.1 N/A N/A self login N/A N/A self password N/A N/A self requirelogin False N/A N/A self usetls False N/A cEmailConfig N/A MailConfig smtpconfigfile N/A N/A N/A cEmailConfig readConfigFile N/A serverconfigs N/A cEmailConfig serverinfo N/A N/A [+] Config file appears to contain %d mail server definitions N/A len serverconfigs N/A mailid serverconfigs N/A N/A thisconfig N/A serverconfigs N/A mailid N/A N/A server thisconfig N/A N/A N/A self server N/A thisconfig N/A server N/A N/A port thisconfig N/A N/A N/A self port N/A int N/A thisconfig N/A port N/A N/A [+] Checking if %s:%d is reachable N/A N/A self server N/A self port N/A N/A check_port N/A self server N/A self port N/A N/A     Yup, port is open N/A N/A timeout thisconfig N/A N/A N/A self timeout N/A int N/A thisconfig N/A timeout N/A N/A auth thisconfig N/A N/A N/A N/A thisconfig N/A auth yes N/A N/A N/A self requirelogin True N/A N/A N/A self requirelogin False N/A N/A user thisconfig N/A N/A N/A self login N/A thisconfig N/A user N/A N/A pass thisconfig N/A N/A N/A self password N/A thisconfig N/A pass N/A N/A tls thisconfig N/A N/A N/A N/A thisconfig N/A tls yes N/A N/A N/A self usetls True N/A N/A N/A self usetls False N/A N/A to thisconfig N/A N/A N/A self to N/A thisconfig N/A to N/A N/A from thisconfig N/A N/A N/A self fromaddress N/A thisconfig N/A from N/A N/A N/A     Nope N/A N/A sendmail N/A N/A self info logfile mailsubject N/A N/A DNS Hijack Monitor Alert N/A N/A msg N/A MIMEMultipart N/A bodytext N/A N/A join N/A x N/A x info N/A logtext N/A N/A join N/A x N/A x logfile N/A mailbody N/A MIMEText bodytext plain N/A N/A N/A msg attach mailbody N/A N/A msg N/A Subject N/A %s - %s N/A N/A gethostname mailsubject N/A N/A msg N/A From N/A self fromaddress N/A N/A msg N/A Disposition-Notification-To N/A self fromaddress N/A N/A msg N/A To N/A self to N/A N/A msg N/A X-Priority 2 N/A N/A N/A len logfile 0 N/A N/A part N/A MIMEBase application octet-stream N/A N/A N/A part set_payload logtext N/A N/A N/A Encoders encode_base64 part N/A N/A N/A part add_header Content-Disposition attachment; filename="dnshjmon.txt" N/A N/A N/A msg attach part N/A noerror False N/A thistimeout 5 N/A N/A noerror N/A N/A N/A N/A N/A [+] Connecting to %s on port %d N/A N/A self server N/A self port N/A s N/A N/A smtplib SMTP N/A self server N/A self port minicase N/A self timeout N/A [+] Connected N/A N/A self usetls N/A N/A [+] Issuing STARTTLS N/A N/A N/A s starttls N/A [+] STARTTLS established N/A N/A self requirelogin N/A N/A [+] Authenticating N/A N/A N/A s login N/A self login N/A self password N/A [+] Authenticated N/A [+] Sending email N/A N/A N/A s sendmail N/A self to N/A N/A self to N/A N/A msg as_string N/A [+] Mail sent, disconnecting N/A N/A N/A s quit N/A noerror True N/A N/A N/A N/A smtplib SMTPServerDisconnected N/A e N/A N/A      ** ERROR, Server disconnected unexpectedly N/A         This is probably okay N/A noerror True N/A N/A N/A smtplib SMTPResponseException N/A e N/A N/A N/A      ** ERROR Server returned %s : %s N/A N/A str N/A e smtp_code N/A e smtp_error N/A N/A N/A smtplib SMTPSenderRefused N/A e N/A N/A N/A      ** ERROR Sender refused %s : %s N/A N/A str N/A e smtp_code smtp_error N/A N/A N/A smtplib SMTPRecipientsRefused N/A e N/A N/A      ** ERROR Recipients refused N/A N/A N/A smtplib SMTPDataError N/A e N/A N/A      ** ERROR Server refused to accept the data N/A N/A N/A smtplib SMTPConnectError N/A e N/A N/A      ** ERROR establishing connection to server N/A N/A N/A smtplib SMTPHeloError N/A e N/A N/A      ** ERROR HELO Error N/A N/A N/A smtplib SMTPException N/A e N/A N/A      ** ERROR Sending email N/A N/A N/A      ** ERROR Unable to send email ! N/A N/A noerror N/A N/A N/A      I'll try again in %d seconds thistimeout N/A N/A N/A time sleep thistimeout N/A N/A thistimeout 1200 N/A N/A thistimeout 5 N/A N/A N/A N/A N/A __name__ __main__ N/A N/A mailconfigerror True N/A dnsconfigerror True N/A workingfolder N/A N/A os getcwd N/A dnsconfigfile N/A N/A N/A os path join workingfolder dnshjmon_dns.conf N/A mailconfigfile N/A N/A N/A os path join workingfolder dnshjmon_smtp.conf N/A dnsserverfile N/A dnsservers N/A N/A N/A showbanner N/A arguments N/A N/A N/A N/A len N/A sys argv 2 N/A N/A arguments N/A N/A sys argv N/A 1 N/A args N/A N/A last N/A word arguments N/A N/A N/A N/A word N/A 0 - N/A N/A word N/A N/A word lstrip - N/A N/A args N/A word True N/A last word N/A N/A N/A last N/A N/A N/A N/A str N/A args N/A last True N/A N/A N/A args N/A last word N/A N/A N/A args N/A last N/A N/A N/A args N/A last word N/A N/A h args N/A N/A N/A showsyntax N/A sys argv N/A N/A N/A sys exit 0 N/A N/A d args N/A N/A N/A N/A N/A N/A N/A type N/A args N/A d __name__ lower bool N/A N/A dnsconfigfile N/A args N/A d N/A N/A s args N/A N/A N/A N/A N/A N/A N/A type N/A args N/A s __name__ lower bool N/A N/A mailconfigfile N/A args N/A s N/A N/A N/A n args g_allowExternalResolver N/A N/A N/A N/A N/A N/A N/A type N/A args N/A n __name__ lower bool N/A N/A dnsserverfile N/A args N/A n N/A N/A N/A N/A N/A os path isfile dnsserverfile N/A N/A N/A [-] DNS server file %s not found, will use OS DNS configuration dnsserverfile N/A dnsserverfile N/A N/A dnsservers N/A readDNSServerFile dnsserverfile N/A N/A N/A N/A N/A os path isfile dnsconfigfile N/A N/A N/A [-] Configuration file %s not found, aborting... dnsconfigfile N/A N/A N/A sys exit 1 N/A N/A N/A [+] Using dns config file %s dnsconfigfile N/A cEmailConfig N/A MailConfig mailconfigfile N/A N/A N/A N/A cEmailConfig configFileExists N/A N/A N/A [-] Oops, email config file %s doesn't exist yet mailconfigfile N/A N/A N/A cEmailConfig initConfigFile N/A N/A N/A [+] Using mail config file %s mailconfigfile N/A N/A N/A cEmailConfig readConfigFile N/A N/A mail args N/A N/A content N/A N/A mailhandler N/A Mailer mailconfigfile N/A info N/A dnshjmon.py email test N/A N/A N/A mailhandler sendmail info content Email test N/A N/A N/A sys exit 0 N/A N/A checkdns dnsconfigfile mailconfigfile dnsservers