SkillAgentSearch skills...

Defango

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

Install / Use

/learn @edoardottt/Defango

README

<h1 align="center"> defango <br> </h1> <h4 align="center">URL / IP / Email defanging with Golang. Make IoC harmless.</h4> <h6 align="center"> Coded with 💙 by edoardottt </h6> <p align="center"> <a href="https://github.com/edoardottt/defango/actions"> <img src="https://github.com/edoardottt/defango/actions/workflows/go.yml/badge.svg" alt="go action"> </a> <a href="https://goreportcard.com/report/github.com/edoardottt/defango"> <img src="https://goreportcard.com/badge/github.com/edoardottt/defango" alt="go report card"> </a> <br> <!--Tweet button--> <a href="https://twitter.com/intent/tweet?text=defango%20-%20URL%20%2F%20IP%20%2F%20Email%20defanging%20with%20Golang.%20Make%20IoC%20harmless.%20https%3A%2F%2Fgithub.com%2Fedoardottt%2Fdefango%20%23golang%20%23github%20%23linux%20%23infosec%20%23malware" target="_blank">Share on Twitter! </a> </p> <p align="center"> <a href="#install-">Install</a> • <a href="#get-started-">Get Started</a> • <a href="#changelog-">Changelog</a> • <a href="#contributing-">Contributing</a> • <a href="#license-">License</a> </p>

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("http://malicious.example.link.com:666/m4lw4r3.exe")
    if err != nil {
      log.Fatal(err)
    }
    fmt.Println(u)

    fmt.Println(defango.Email("mailto:edoardott@gmail.com"))
}

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.

View on GitHub
GitHub Stars20
CategoryEducation
Updated5mo ago
Forks0

Languages

Go

Security Score

92/100

Audited on Oct 24, 2025

No findings