Skip to content

atakanaydinbas/gofangdefang-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GoFangDefang-CLI - Secure IOC Manipulation CLI Tool

GoFangDefan-CLI is a command-line interface (CLI) tool designed for the secure manipulation of Indicators of Compromise (IOCs). It facilitates the conversion between the original "fang" format (with special characters) and a safer "defang" format, preventing accidental execution of potentially malicious IOCs such as URLs, IPs, domains, or subdomains.

Table of Contents

Installation

To install gofangdefang-cli, follow these steps:

go install -v github.com/atakanaydinbas/gofangdefang-cli@latest

Usage

Defang

Defang an IOC by converting it to a safer format:

gofangdefang-cli defang <IOC>

Defang File

Defang IOCs from a file:

gofangdefang-cli defangfile -i <inputfilepath> -o <outputfilepath>

Fang

Fang an IOC by converting it back to its original format:

gofangdefang-cli fang <IOC>

Fang File

Fang IOCs from a file:

gofangdefang-cli fangfile -i <inputfilepath> -o <outputfilepath>

Help

gofangdefang-cli [command] --help

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvement, please open an issue or create a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details