Skip to content

SToolkit.PhishTank is easy usage PhishTank api provider. PhishTank is a free community site where anyone can submit, verify, track and share phishing data.

Notifications You must be signed in to change notification settings

StarDevTeam/SToolkit.PhishTank

Repository files navigation

SToolkit.PhishTank

What is PhishTank?

PhishTank is a collaborative clearing house for data and information about phishing on the Internet. Also, PhishTank provides an open API for developers and researchers to integrate anti-phishing data into their applications at no charge.

Why PhishTank?

  • Free Unlimited API. You only need get application key, it takes near 1 minutes.
  • Every day ~1500 new phishing sites. More stats here.

How to get api key?

  • Register and get it here.

Supported platforms.

  • .Net Framework 3.5+.
  • .Net Core 1.0+.
  • Mono.

Installation.

Via Nuget.

Install-Package SToolkit.PhishTank

Usage.

Including.

using SToolkit.PhishTank;

Check site.

PhishTankApi api = new PhishTankApi("API_KEY_HERE");
var res = api.Check("http://yandex.ru");
Console.WriteLine($"Url: {res.Url}");
Console.WriteLine($"InDatabase: {res.InDatabase}");
Console.WriteLine($"IsPhish: {res.IsPhish}");
Console.WriteLine($"PhishID: {res.PhishID}");
Console.WriteLine($"PhishPage: {res.PhishPage}");
Console.WriteLine($"Verified: {res.Verified}");
Console.WriteLine($"VerifiedDate: {res.VerifiedDate}");

Also for .Net Framework 4.5+ and .Net Core have async method.

PhishTankApi api = new PhishTankApi("API_KEY_HERE");
var res = api.CheckAsync("http://yandex.ru");

And you can set proxy for requests, its default .net WebProxy class.

PhishTankApi api = new PhishTankApi("API_KEY_HERE");
api.Proxy = new WebProxy("ip:port");

Additional info.

  • In result you need see IsPhish variable, because if url contains in database, it's not guarantees that it is phishing.
  • Api very sensitive to URL's, it means, what url always must be like http://example.com and not like example.com.
  • This also applies to any specific URL links, and if link http://paypal.example.com/login is phishing, basic domain name http://example.com probably won't even be in the database.

Version history.

  • [22.12.2018] (1.0) First public release.

About

SToolkit.PhishTank is easy usage PhishTank api provider. PhishTank is a free community site where anyone can submit, verify, track and share phishing data.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages