ronin-rb / ronin

Ronin is a Free and Open Source Ruby Toolkit for Security Research and Development. Ronin also allows for the rapid development and distribution of code, exploits, payloads, etc, via 3rd-party git repositories.

Home Page:https://ronin-rb.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add a `ronin defang` command

postmodern opened this issue · comments

Add a command which can "de-fang" URLs, or possibly also IP addresses.

  • https://www.evil.com/foo/bar/baz -> hxxps://www[.]evil[.]com/foo/bar/baz
  • 192.168.1.1 -> 192[.]168[.]1[.]1

This command should inherit from ValueProcessorCommand so that it can process URLs or IPs as both command-line arguments and via the --file option.