Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lookup of abuse-c #904

Merged
merged 2 commits into from
Apr 8, 2024
Merged

Lookup of abuse-c #904

merged 2 commits into from
Apr 8, 2024

Conversation

AntoniaBK
Copy link
Contributor

@AntoniaBK AntoniaBK commented Apr 4, 2024

Pull requests should be opened against the main branch. For more information on contributing to Lookyloo documentation, see the Contributor Guidelines.

Type of change

Description:

Select the type of change(s) made in this pull request:

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Documentation (change or fix to documentation)

Fixes #900

Proposed changes

  • searches for an abuse-c in the whois entry
  • if an abuse-c is found it's lookup it will take precedence on the previous lookup
  • if contact_email_only is False both requests will be concatenated

Comment on lines 93 to 96
#if an abuse-c-Object is found in the whois entry, the result of its lookup will be returned
abuse_c = re.search(rb'abuse-c:\s+(.*)\s', bytes_whois)
if abuse_c is not None:
return self.whois(abuse_c.group(1).decode(), contact_email_only)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We probably want to concatenate both requests an return them together, unless contact_email_only is True in which case the emails from the abuse_c response take priority (if they exist).

…abuse-c-lookup is added to the initial lookup
@AntoniaBK AntoniaBK marked this pull request as ready for review April 8, 2024 09:49
@Rafiot Rafiot merged commit e8492cc into Lookyloo:main Apr 8, 2024
9 of 12 checks passed
@AntoniaBK AntoniaBK deleted the abuse-c branch April 9, 2024 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature] Improve gathering contact details for takedown requests
2 participants