Update phishstats base URL Closes #3152#3247
Merged
mlodic merged 4 commits intointelowlproject:developfrom Jan 30, 2026
Merged
Conversation
Member
|
Idk what happened again but it is impossible to see the changes, the diff shows that all the files are changed completely. Please adjust this otherwise it is impossible to review |
dcbea43 to
f9d1edf
Compare
f9d1edf to
a85297b
Compare
Contributor
Author
|
Hey @mlodic — thanks for the heads-up earlier. I’ve cleaned up the branch now |
mlodic
approved these changes
Jan 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Updated the PhishStats analyzer to use the new API base URL (
https://api.phishstats.info/api/phishing) as the old URL (https://phishstats.info:2096/api) is no longer valid.Changes include:
PhishStatsclass.0171_phishstats_url.py) to add theurlconfiguration parameter and set the new default value for existing configurations.test_phishstats.pyto reflect the new API response structure (checkingcountrycodeinstead ofcountry).Closes #3152
Type of change
Please delete options that are not relevant.
Proof of Work
Sample Analysis Result (JSON)
{ "api_url": "https://api.phishstats.info/api/phishing?_limit=1", "results": [ { "id": 2, "url": "http://00000-00.000webhostapp.com/", "ip": "2a02:4780:dead:6c62::1", "countrycode": "US", "countryname": "United States", "regioncode": "NY", "regionname": "New York", "city": "New York", "zipcode": "10001", "latitude": "40.7128", "longitude": "-74.0060", "asn": "AS13335", "org": "Cloudflare, Inc.", "isp": "Cloudflare, Inc.", "date": "2021-10-01T12:00:00.000Z", "date_update": "2021-10-01T12:00:00.000Z", "score": null, "host": "00000-00.000webhostapp.com", "domain": "000webhostapp.com", "tld": "com", "domain_registered_n_days_ago": null, "screenshot": null, "abuse_contact": "[email protected]", "ssl_issuer": null, "ssl_subject": null, "rank_host": null, "rank_domain": null, "n_times_seen_ip": null, "n_times_seen_host": null, "n_times_seen_domain": null, "http_code": null, "http_server": null, "google_safebrowsing": null, "virus_total": null, "abuse_ch_malware": null, "vulns": null, "ports": null, "os": null, "tags": null, "technology": null, "page_text": " ", "ssl_fingerprint": null } ] }Checklist
developdumpplugincommand and added it in the project as a data migration. ("How to share a plugin with the community")test_files.zipand you added the default tests for that mimetype in test_classes.py.FREE_TO_USE_ANALYZERSplaybook by following this guide.urlthat contains this information. This is required for Health Checks (HEAD HTTP requests).get_mocker_response()method of the unittest class. This serves us to provide a valid sample for testing.DataModelfor the new analyzer following the documentation# This file is a part of IntelOwl https://github.com/intelowlproject/IntelOwl # See the file 'LICENSE' for copying permission.Black,Flake,Isort) gave 0 errors. If you have correctly installed pre-commit, it does these checks and adjustments on your behalf.testsfolder). All the tests (new and old ones) gave 0 errors.DeepSource,Django Doctorsor other third-party linters have triggered any alerts during the CI checks, I have solved those alerts.Important Rules