TheHive-Project / Cortex-Analyzers

Cortex Analyzers Repository
https://TheHive-Project.github.io/Cortex-Analyzers/
GNU Affero General Public License v3.0
434 stars 374 forks source link

[Bug] Phistank analyzer failing #1276

Open akshay-nehate opened 2 months ago

akshay-nehate commented 2 months ago

Describe the bug Phistank analyzer fails to run

To Reproduce Steps to reproduce the behavior:

  1. Add API key
  2. image
  3. image

Expected behavior Works using curl command -

curl -X POST "https://checkurl.phishtank.com/checkurl/" -H "User-Agent: phishtank/redacted" -d "url=https%3A%2F%2Fwww.example.com%2F" -d "format=json" -d "app_key=redacted" | jq

{
  "meta": {
    "timestamp": "2024-08-22T00:08:08+00:00",
    "serverid": "e5f3084e",
    "status": "success",
    "requestid": "172.17.128.1.66c68168d92ae9.71895076"
  },
  "results": {
    "url": "https://www.example.com/",
    "in_database": true,
    "phish_id": 2489536,
    "phish_detail_page": "http://www.phishtank.com/phish_detail.php?phish_id=2489536",
    "verified": true,
    "verified_at": "2014-06-03T10:01:24+00:00",
    "valid": false
  }
}

Complementary information If applicable, add screenshots and any additional information that might help explain your problem.

Work environment

nusantara-self commented 5 days ago

Thanks for the report Akshay!

PR #1271 should fix it