Skip to content

edoardottt/defango

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

defango

URL / IP / Email defanging with Golang. Make IoC harmless.

Coded with 💙 by edoardottt

go action go report card
Share on Twitter!

InstallGet StartedChangelogContributingLicense

Install 📡

go get github.com/edoardottt/defango

Get Started 🎉

package main

import (
    "fmt"
    "log"
    "github.com/edoardottt/defango"
)

func main() {
    fmt.Println(defango.IP("8.8.8.8:53"))

    u, err := defango.URL("https://malicious.example.link.com:666/m4lw4r3.exe")
    if err != nil {
      log.Fatal(err)
    }
    fmt.Println(u)

    fmt.Println(defango.Email("mailto:[email protected]"))
}

Read the full package documentation here.

Changelog 📌

Detailed changes for each release are documented in the release notes.

Contributing 🛠

Just open an issue / pull request.

Before opening a pull request, download golangci-lint and run

golangci-lint run

If there aren't errors, go ahead :)

License 📝

This repository is under MIT License.
edoardottt.com to contact me.