Skip to content

defang and refang your dangerous indicators of compromise

License

Notifications You must be signed in to change notification settings

Odinodin/defangrefang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Defang! Refang!

Defang and fang your dangerous URLs, IPs and emails! No dependencies, you only get the dentist.

npm version

Install

$ npm install defang-refang

Usage

import dr from "./defangrefang";

dr.defang("http://dr.evils.lair/");

=> "hXXp://dr[.]evils[.]lair/"

dr.refang("'192[.]168[.]1[.]0'");

=> "192.168.1.0"

Features

Handles the following:

  • Emails
  • IPv4
  • URLs
  • Prefixes
    • ftp
    • http
    • https
    • ssh
Argument Defanged
[email protected] faust[at]evil[.]com
192.168.1.1 192[.]168[.]1[.]1
https://totally.legit.com hXXps://totally[.]legit[.]com

About

defang and refang your dangerous indicators of compromise

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published