Go wrapper for the phishtank API & offline database
- To install this package in your project directory run the command:
go get github.com/nemzyxt/phishtank
You can either query an offline database or the online API
Example:
package main
import (
"fmt"
"github.com/nemzyxt/phishtank/db"
)
func main() {
db.LoadDatabase("verified_online.csv")
record := db.CheckURL("https://assiua.site.tb-hosting.com/")
if record != nil {
fmt.Println(record)
} else {
fmt.Println("No such record")
}
}
Sample result:
[8418748 https://assiua.site.tb-hosting.com/ http://www.phishtank.com/phish_detail.php?phish_id=8418748 2024-01-12T08:25:01+00:00 yes 2024-01-12T08:32:39+00:00 yes Other]
In progress 😃