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 0800745
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ Commands:
Generate a new exploit file:

```shell
$ ronin-exploits new example_exploit.rb --type stack_overflow \
$ ronin-exploits new example_exploit.rb --type stack-overflow \
--arch x86 --os linux --software ExampleWare --software-version 1.2.3 \
--author Postmodern --author-email "postmodern.mod3@gmail.com" \
--summary "Example exploit" --description "This is an example."
Expand Down Expand Up @@ -160,7 +160,7 @@ Generate a ronin repository of your own exploits (and/or payloads):
$ ronin-repos new my-repo
$ cd my-repo/
$ mkdir exploits
$ ronin-exploits new exploits/my_exploit.rb --type stack_overflow \
$ ronin-exploits new exploits/my_exploit.rb --type stack-overflow \
--arch x86 --os linux --software ExampleWare --software-version 1.2.3 \
--author You --author-email "you@example.com" \
--summary "My exploit" --description "This is my example."
Expand Down
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 0800745

Please sign in to comment.