Skip to content
This repository has been archived by the owner on Feb 14, 2024. It is now read-only.

Commit

Permalink
Update src/pe_source/dnstwistscript.py
Browse files Browse the repository at this point in the history
Co-authored-by: dav3r <david.redmin@trio.dhs.gov>
  • Loading branch information
edujosemena and dav3r committed Dec 29, 2022
1 parent 9dc3e6b commit 1706415
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pe_source/dnstwistscript.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def checkBlocklist(dom, sub_domain_uid, source_uid, pe_org_uid, perm_list):
# Check IP in DShield API
try:
results = json.loads(
dshield.ip(str(dom["dns_a"][0]), return_format=dshield.JSON)
dshield.ip(domain_a, return_format=dshield.JSON)
)
threats = results["ip"]["threatfeeds"]
dshield_attacks = int(results["ip"].get("attacks", 0))
Expand Down

0 comments on commit 1706415

Please sign in to comment.