https://github.com/patricktulskie/dfang
Defang IOCs, written in rust
https://github.com/patricktulskie/dfang
defang ioc refang security security-tools
Last synced: about 1 year ago
JSON representation
Defang IOCs, written in rust
- Host: GitHub
- URL: https://github.com/patricktulskie/dfang
- Owner: PatrickTulskie
- Created: 2022-12-20T03:33:03.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-11-16T12:33:10.000Z (over 2 years ago)
- Last Synced: 2025-03-30T10:33:49.787Z (about 1 year ago)
- Topics: defang, ioc, refang, security, security-tools
- Language: Rust
- Homepage:
- Size: 215 KB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README

## Intro
For when you need to quickly make IOCs (email, urls, ip addresses) unclickable and safe to send, just send them through `dfang`. If you receive something that's been defanged and you need to give it some teeth again, just run it back through `rfang`.
## Install
```
cargo install dfang
cargo install rfang
```
## Usage
```
dfang something@somewhere.com
rfang something[@]somewhere[.]com
```
...or pipe in from another application
```
// Extract defanged URLs from a file
grep hxxp iocs.txt | rfang
// Take your clipboard, defang it, and copy it again
pbpaste | dfang | pbcopy
```