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.
To install gofangdefang-cli, follow these steps:
go install -v github.com/atakanaydinbas/gofangdefang-cli@latest
Defang an IOC by converting it to a safer format:
gofangdefang-cli defang <IOC>
Defang IOCs from a file:
gofangdefang-cli defangfile -i <inputfilepath> -o <outputfilepath>
Fang an IOC by converting it back to its original format:
gofangdefang-cli fang <IOC>
Fang IOCs from a file:
gofangdefang-cli fangfile -i <inputfilepath> -o <outputfilepath>
gofangdefang-cli [command] --help
Contributions are welcome! If you find any issues or have suggestions for improvement, please open an issue or create a pull request.
This project is licensed under the MIT License - see the LICENSE file for details