Skip to content

Commit

Permalink
Use hyphenated option values for ronin-exploits new options.
Browse files Browse the repository at this point in the history
  • Loading branch information
postmodern committed Apr 24, 2024
1 parent b2ebdcd commit 63d5783
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions lib/ronin/exploits/cli/commands/new.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,22 +84,22 @@ class New < Command
class: 'Exploit'
},

heap_overflow: {
"heap-overflow": {
file: 'heap_overflow',
class: 'HeapOverflow'
},

stack_overflow: {
"stack-overflow": {
file: 'stack_overflow',
class: 'StackOverflow'
},

seh_overflow: {
"seh-overflow": {
file: 'seh_overflow',
class: 'SEHOverflow'
},

user_after_free: {
"user-after-free": {
file: 'use_after_free',
class: 'UseAfterFree'
},
Expand Down Expand Up @@ -142,12 +142,12 @@ class New < Command

# Mapping of network mixins and their file/module names.
NETWORKING_TYPES = {
remote_tcp: {
"remote-tcp": {
file: 'remote_tcp',
module: 'RemoteTCP'
},

remote_udp: {
"remote-udp": {
file: 'remote_udp',
module: 'RemoteUDP'
},
Expand Down
4 changes: 2 additions & 2 deletions man/ronin-exploits-new.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Creates a new exploit file.

## OPTIONS

`-t`, `--type` `exploit`\|`heap_overflow`\|`stack_overflow`\|`command_injection`\|`web`\|`open_redirect`\|`lfi`\|`rfi`\|`sqli`\|`ssti`\|`xss`
`-t`, `--type` `exploit`\|`heap-overflow`\|`stack-overflow`\|`command-injection`\|`web`\|`open-redirect`\|`lfi`\|`rfi`\|`sqli`\|`ssti`\|`xss`
: The type for the new exploit.

`-a`, `--author` *NAME*
Expand All @@ -44,7 +44,7 @@ Creates a new exploit file.
`-P`, `--has-payload` `payload`\|`asm`\|`shellcode`\|`c`\|`command`\|`shell`\|`powershell`\|`html`\|`javascript`\|`typescript`\|`java`\|`sql`\|`php`\|`nodejs`
: The payload type the exploit uses.

`-N`, `--networking` `remote_tcp`\|`remote_udp`\|`http`
`-N`, `--networking` `remote-tcp`\|`remote-udp`\|`http`
: The networking mixin to use.

`-A`, `--arch` `x86`\|`x86-64`\|`amd64`\|`ia64`\|`ppc`\|`ppc64`\|`arm`\|`armbe`\|`arm64`\|`arm64be`\|`mips`\|`mipsle`\|`mips64`\|`mips64le`
Expand Down

0 comments on commit 63d5783

Please sign in to comment.