Skip to content

Commit

Permalink
debug condition while getting fqdn from an ip
Browse files Browse the repository at this point in the history
  • Loading branch information
ugomeguerditchian committed Jun 2, 2023
1 parent cb6e333 commit 6a4369b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion lib/generics.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,13 @@ def ip_scanner(ip: str, config: configuration, res: result, recursive: int = 0):
if fqdn:
fqdn = fqdn[0]

if fqdn and config.is_there_scope() and config.is_in_scope(fqdn, mode="FQDNs"):
if (
fqdn
and config.is_there_scope()
and config.is_in_scope(fqdn, mode="FQDNs")
or fqdn
and not config.is_there_scope()
):
res.add_fqdn(ip_obj, fqdn)
if config.find_subs:
logger.info("[*] Finding subdomains")
Expand Down
2 changes: 1 addition & 1 deletion manifest
Original file line number Diff line number Diff line change
@@ -1 +1 @@
V3.0.1
V3.0.2

0 comments on commit 6a4369b

Please sign in to comment.