Skip to content

Commit

Permalink
Add parsing multiple subdomains on qute-pass
Browse files Browse the repository at this point in the history
  • Loading branch information
Ricky Anderson committed Dec 12, 2023
1 parent fbb3e10 commit 231bdcb
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion misc/userscripts/qute-pass
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,17 @@ def main(arguments):

netloc = urlparse(arguments.url).netloc

for target in filter(None, [extract_result.fqdn, extract_result.registered_domain, extract_result.ipv4, private_domain, netloc]):
subdomains = extract_result.subdomain.split(".")
del subdomains[0] # all subdomains appended is equal to FQDN, so removing top one.

extra_domains = []
subdomain = extract_result.registered_domain

for sd in reversed(subdomains):
subdomain = '.'.join((sd, subdomain))
extra_domains.append(subdomain)

for target in filter(None, [*extra_domains, extract_result.fqdn, extract_result.registered_domain, extract_result.ipv4, private_domain, netloc]):
attempted_targets.append(target)
target_candidates = find_pass_candidates(target, unfiltered=arguments.unfiltered)
if not target_candidates:
Expand Down

0 comments on commit 231bdcb

Please sign in to comment.