Skip to content

Instantly share code, notes, and snippets.

@coolacid
Created April 28, 2015 15:01
Show Gist options
  • Save coolacid/c1c032640dc5a7a0db17 to your computer and use it in GitHub Desktop.
Save coolacid/c1c032640dc5a7a0db17 to your computer and use it in GitHub Desktop.
Example Logstash Phishtank API response
{
"message" => "http://200.98.128.73/syscefo.php",
"@version" => "1",
"@timestamp" => "2015-04-28T01:45:43.903Z",
"type" => "generated",
"host" => "homer",
"sequence" => 0,
"phishtank" => {
"meta" => {
"timestamp" => "2015-04-28T01:45:49+00:00",
"serverid" => "e56defcc",
"status" => "success",
"requestid" => "192.168.0.109.553ee64dba13f6.46319160"
},
"results" => {
"url" => "http://200.98.128.73/syscefo.php",
"in_database" => true,
"phish_id" => "3155925",
"phish_detail_page" => "http://www.phishtank.com/phish_detail.php?phish_id=3155925",
"verified" => true,
"verified_at" => "2015-04-27T20:39:11+00:00",
"valid" => true
}
}
}
@MaurizioCasciano
Copy link

Hi @coolacid, how did you get the JSON response? I'm trying
http://checkurl.phishtank.com/checkurl/?url=http://verificatie2dehandsbe.online/&format=json
but it always returns an XML no matter the format parameter.
Schermata da 2019-08-09 15-15-28

@coolacid
Copy link
Author

This isn't even JSON - Put it into a JSON Parser and it'll barf.

As the description says, it's the output of logstash.

@flashadvocate
Copy link

Hi @coolacid, how did you get the JSON response? I'm trying
http://checkurl.phishtank.com/checkurl/?url=http://verificatie2dehandsbe.online/&format=json
but it always returns an XML no matter the format parameter.
Schermata da 2019-08-09 15-15-28

You have to provide an API key in order to get anything other than XML

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment