URLScan is a tool for scanning and analyzing URLs to detect potential security threats. It helps in identifying malicious URLs, phishing sites, and other online threats.
To install URLScan, clone the repository and install the dependencies:
go get -u github.com/tin3ga/urlscan
Register for a free account from metadefender to get an api key. Scan function expects an api key and a valid url.
To scan a URL
package main
import (
"fmt"
"github.com/tin3ga/urlscan"
)
func main() {
results, err := urlscan.Scan("fd8a40d7b3662bf44ee711e4ac058b7b", "https://google.com")
if err != nil {
fmt.Print(err)
}
fmt.Println(results)
}
This project is licensed under the MIT license.