mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-22 22:27:17 +00:00
Add proper publisher for classified domains/hostnames
This commit is contained in:
parent
de6e21d5a7
commit
27b134ec03
1 changed files with 4 additions and 2 deletions
|
@ -76,10 +76,12 @@ def main():
|
||||||
c.validdomain(rtype=['A'],extended=True)
|
c.validdomain(rtype=['A'],extended=True)
|
||||||
localizeddomains = c.include(expression=cc_tld)
|
localizeddomains = c.include(expression=cc_tld)
|
||||||
if localizeddomains:
|
if localizeddomains:
|
||||||
print (localizeddomains)
|
print(localizeddomains)
|
||||||
|
publisher.warning('DomainC;{};{};{};Checked {} located in {}'.format( PST.p_source, PST.p_date, PST.p_name, localizeddomains, cc_tld))
|
||||||
localizeddomains = c.localizedomain(cc=cc)
|
localizeddomains = c.localizedomain(cc=cc)
|
||||||
if localizeddomains:
|
if localizeddomains:
|
||||||
print (localizeddomains)
|
print(localizeddomains)
|
||||||
|
publisher.warning('DomainC;{};{};{};Checked {} located in {}'.format( PST.p_source, PST.p_date, PST.p_name, localizeddomains, cc))
|
||||||
except IOError:
|
except IOError:
|
||||||
print "CRC Checksum Failed on :", PST.p_path
|
print "CRC Checksum Failed on :", PST.p_path
|
||||||
publisher.error('Duplicate;{};{};{};CRC Checksum Failed'.format(PST.p_source, PST.p_date, PST.p_name))
|
publisher.error('Duplicate;{};{};{};CRC Checksum Failed'.format(PST.p_source, PST.p_date, PST.p_name))
|
||||||
|
|
Loading…
Reference in a new issue