SkillAgentSearch skills...

Defanger

Defanger is a Notepad++ plugin that defangs/refangs malicious IOCs.

Install / Use

/learn @0x4427/Defanger

README

Defanger

A Notepad++ plugin to neutralize and restore the functionality of Indicators of Compromise (IOCs) by defanging and refanging them.

  • Selective or whole-text defanging: You can choose between defanging/refanging selected portions of the text or applying the process to the entire content of the Notepad++ document. This makes it convenient for handling IOCs of varying lengths and complexities.
  • Supports full URLs, valid domains, IPv4 and IPv6 addresses.

Installation

  1. Create Defanger folder in Notepad++'s plugins installation folder.
  2. Copy Defanger.dll from the Defanger release zip file into the newly created folder. Please use the correct archive version based on your Notepad++ architecture - x86, x64.
  3. Restart Notepad++ and you are all set.
  4. Alternatively, download the source and build it - the build will copy the dll to the Notepad++'s plugins folder.

Usage

  • When applied to the selected text Defang defangs any valid URLs, domains and IP addresses whichever included in the selected portion.

sample3 (2)

  • Selected Defang

sample4

  • Auto Defang All defangs all the valid URLs, domains and IP addresses found in the document while excluding the invalid ones.

new1

  • Defanged all text in the document excluding one invalid IP address.

new2

  • Refang and Auto Refang All supported styles

fubal1

  • Refanged output

final

| Styles | |---------------------------|
| hxxp(s) -> http(s) | | hXXp(s) -> http(s) | | [://] -> :// |
| [.] -> . |
| {.} -> . | | (.) -> . | | [dot] -> . | | {dot} -> . | | (dot) -> . | | [:] -> : | | \. -> . | | [/] -> / |

Authors

0x4427

<img align="left" width="40px" src="https://github-production-user-asset-6210df.s3.amazonaws.com/72227999/246673026-44eca0ae-3020-4041-86f4-778f7236e3dc.svg"> <img align="left" width="40px" src="https://github-production-user-asset-6210df.s3.amazonaws.com/72227999/246673032-6ab6cd40-918e-429f-9905-c93750dfa35c.svg"> <img align="left" width="40px" src="https://github-production-user-asset-6210df.s3.amazonaws.com/72227999/246673029-1380eb15-d262-40e6-928f-1321a9338e41.svg"> <br/>  

knight0x07

<img align="left" width="40px" src="https://github-production-user-asset-6210df.s3.amazonaws.com/72227999/246673026-44eca0ae-3020-4041-86f4-778f7236e3dc.svg"> <img align="left" width="40px" src="https://github-production-user-asset-6210df.s3.amazonaws.com/72227999/246673032-6ab6cd40-918e-429f-9905-c93750dfa35c.svg"> <img align="left" width="40px" src="https://github-production-user-asset-6210df.s3.amazonaws.com/72227999/246673029-1380eb15-d262-40e6-928f-1321a9338e41.svg"> <br/>  

Misc

This plugin has been created using the Notepad++ pluginpack for .Net https://github.com/kbilsted/NotepadPlusPlusPluginPack.Net/releases

View on GitHub
GitHub Stars25
CategoryEducation
Updated1y ago
Forks0

Languages

C#

Security Score

80/100

Audited on Mar 15, 2025

No findings