File | Date | Author | Commit |
---|---|---|---|
.github | 2024-03-23 | David | [24b1b9] Update issue templates |
Submissions | 2024-03-23 | David | [09574d] Create submission_UUID.json |
.gitignore | 2024-03-23 | David | [8a64cd] Initial commit |
CODE_OF_CONDUCT.md | 2024-04-06 | David | [fc87a1] Add files via upload |
LICENSE | 2024-03-23 | David | [8a64cd] Initial commit |
README.md | 2024-04-06 | David | [e1579f] Updated README.md |
main.py | 2024-03-23 | David | [7a9ca2] Created main.py |
requirements.txt | 2024-04-03 | David | [fd1cb6] Created requirements.txt |
submission_UUID.json | 2024-03-23 | David | [baae94] Create submission_UUID.json |
requests
library (install using pip install requests
)python main.py
.Example usage:
Then, follow the menu options and provide the required inputs.
report_single_url(email, message, url)
Reports a single URL to the Netcraft API.
email
: The email address of the submitter.message
: An optional message to include with the report.url
: The URL to be reported.report_urls_from_file(email, message, file_path)
Reports multiple URLs from a file to the Netcraft API.
email
: The email address of the submitter.message
: An optional message to include with the report.file_path
: The path to the file containing the URLs (one URL per line).report_malicious_mail(email, message, mail_content, password=None)
Reports a malicious email to the Netcraft API.
email
: The email address of the submitter.message
: An optional message to include with the report.mail_content
: The content of the malicious email in MIME format.password
: An optional password for decrypting the email (if applicable).report_incorrectly_blocked_url(email, url, reason)
Reports an incorrectly blocked URL to the Netcraft API.
email
: The email address of the submitter.url
: The URL that was incorrectly blocked.reason
: The reason for reporting the incorrectly blocked URL.get_submission_details(uuid)
Retrieves the details of a submitted report and saves them to a JSON file.
uuid
: The UUID of the submitted report.get_submission_files(uuid)
Downloads the files associated with a submitted report.
uuid
: The UUID of the submitted report.get_submission_urls(uuid)
Retrieves the URLs associated with a submitted report and saves them to a JSON file.
uuid
: The UUID of the submitted report.report_submission_issue(uuid, file_misclassifications, url_misclassifications, additional_info)
Reports an issue with a submitted report, such as file or URL misclassifications.
uuid
: The UUID of the submitted report.file_misclassifications
: A list of misclassified file names.url_misclassifications
: A list of misclassified URLs.additional_info
: Additional information about the issue.get_available_tags(tag_type)
Retrieves the available tags for file, mail, or URL reports.
tag_type
: The type of tags to retrieve ('file', 'mail', or 'url').unsubscribe_from_notifications(email, csrf_token)
Unsubscribes the provided email address from notification emails.
email
: The email address to unsubscribe.csrf_token
: The CSRF token required for unsubscribing.Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.
This project is licensed under the MIT License.