ronin 2.0.0 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ruby.yml +14 -0
- data/.rubocop.yml +21 -0
- data/ChangeLog.md +35 -2
- data/Gemfile +20 -16
- data/README.md +42 -23
- data/Rakefile +2 -2
- data/bin/ronin +6 -7
- data/data/new/project/Gemfile.erb +9 -9
- data/gemspec.yml +7 -7
- data/lib/ronin/cli/char_set_options.rb +1 -1
- data/lib/ronin/cli/cipher_command.rb +3 -1
- data/lib/ronin/cli/command.rb +3 -0
- data/lib/ronin/cli/commands/asn.rb +1 -1
- data/lib/ronin/cli/commands/banner_grab.rb +5 -3
- data/lib/ronin/cli/commands/cert_dump.rb +4 -7
- data/lib/ronin/cli/commands/cert_gen.rb +4 -4
- data/lib/ronin/cli/commands/cert_grab.rb +5 -6
- data/lib/ronin/cli/commands/decode.rb +14 -14
- data/lib/ronin/cli/commands/dns.rb +2 -2
- data/lib/ronin/cli/commands/encode.rb +14 -14
- data/lib/ronin/cli/commands/extract.rb +1 -1
- data/lib/ronin/cli/commands/grep.rb +7 -5
- data/lib/ronin/cli/commands/hexdump.rb +54 -22
- data/lib/ronin/cli/commands/hmac.rb +1 -1
- data/lib/ronin/cli/commands/host.rb +15 -15
- data/lib/ronin/cli/commands/http.rb +42 -25
- data/lib/ronin/cli/commands/ip.rb +5 -3
- data/lib/ronin/cli/commands/iprange.rb +2 -2
- data/lib/ronin/cli/commands/netcat.rb +32 -38
- data/lib/ronin/cli/commands/new/project.rb +19 -19
- data/lib/ronin/cli/commands/new/script.rb +12 -12
- data/lib/ronin/cli/commands/proxy.rb +37 -41
- data/lib/ronin/cli/commands/rot.rb +11 -10
- data/lib/ronin/cli/commands/strings.rb +1 -1
- data/lib/ronin/cli/commands/unhexdump.rb +1 -1
- data/lib/ronin/cli/dns.rb +3 -0
- data/lib/ronin/cli/file_processor_command.rb +3 -0
- data/lib/ronin/cli/host_and_port.rb +58 -0
- data/lib/ronin/cli/http_shell.rb +19 -16
- data/lib/ronin/cli/key_options.rb +3 -5
- data/lib/ronin/cli/method_options.rb +0 -2
- data/lib/ronin/cli/pattern_options.rb +5 -6
- data/lib/ronin/cli/printing/syntax_highlighting.rb +3 -0
- data/lib/ronin/cli/typo_options.rb +1 -1
- data/lib/ronin/cli/value_processor_command.rb +1 -1
- data/lib/ronin/config.rb +3 -3
- data/lib/ronin/version.rb +2 -2
- data/man/ronin-asn.1 +11 -1
- data/man/ronin-asn.1.md +9 -1
- data/man/ronin-banner-grab.1 +1 -1
- data/man/ronin-banner-grab.1.md +1 -1
- data/man/ronin-bitflip.1 +1 -1
- data/man/ronin-bitflip.1.md +1 -1
- data/man/ronin-cert-dump.1 +1 -1
- data/man/ronin-cert-dump.1.md +1 -1
- data/man/ronin-cert-gen.1 +16 -7
- data/man/ronin-cert-gen.1.md +11 -5
- data/man/ronin-cert-grab.1 +1 -1
- data/man/ronin-cert-grab.1.md +1 -1
- data/man/ronin-decode.1 +1 -1
- data/man/ronin-decode.1.md +1 -1
- data/man/ronin-decrypt.1 +31 -1
- data/man/ronin-decrypt.1.md +19 -1
- data/man/ronin-dns.1 +2 -2
- data/man/ronin-dns.1.md +2 -2
- data/man/ronin-email-addr.1 +3 -3
- data/man/ronin-email-addr.1.md +3 -3
- data/man/ronin-encode.1 +1 -1
- data/man/ronin-encode.1.md +1 -1
- data/man/ronin-encrypt.1 +31 -1
- data/man/ronin-encrypt.1.md +19 -1
- data/man/ronin-entropy.1 +1 -1
- data/man/ronin-entropy.1.md +1 -1
- data/man/ronin-escape.1 +2 -2
- data/man/ronin-escape.1.md +2 -2
- data/man/ronin-extract.1 +1 -1
- data/man/ronin-extract.1.md +1 -1
- data/man/ronin-grep.1 +1 -1
- data/man/ronin-grep.1.md +1 -1
- data/man/ronin-help.1 +1 -1
- data/man/ronin-help.1.md +1 -1
- data/man/ronin-hexdump.1 +2 -2
- data/man/ronin-hexdump.1.md +2 -2
- data/man/ronin-highlight.1 +1 -1
- data/man/ronin-highlight.1.md +1 -1
- data/man/ronin-hmac.1 +1 -1
- data/man/ronin-hmac.1.md +1 -1
- data/man/ronin-homoglyph.1 +1 -1
- data/man/ronin-homoglyph.1.md +1 -1
- data/man/ronin-host.1 +3 -3
- data/man/ronin-host.1.md +3 -3
- data/man/ronin-http.1 +1 -1
- data/man/ronin-http.1.md +1 -1
- data/man/ronin-ip.1 +1 -1
- data/man/ronin-ip.1.md +1 -1
- data/man/ronin-iprange.1 +1 -1
- data/man/ronin-iprange.1.md +1 -1
- data/man/ronin-irb.1 +1 -1
- data/man/ronin-irb.1.md +1 -1
- data/man/ronin-md5.1 +1 -1
- data/man/ronin-md5.1.md +1 -1
- data/man/ronin-netcat.1 +1 -1
- data/man/ronin-netcat.1.md +1 -1
- data/man/ronin-new-project.1 +1 -1
- data/man/ronin-new-project.1.md +1 -1
- data/man/ronin-new-script.1 +1 -1
- data/man/ronin-new-script.1.md +1 -1
- data/man/ronin-new.1 +1 -1
- data/man/ronin-new.1.md +1 -1
- data/man/ronin-proxy.1 +2 -2
- data/man/ronin-proxy.1.md +2 -2
- data/man/ronin-public-suffix-list.1 +11 -1
- data/man/ronin-public-suffix-list.1.md +9 -1
- data/man/ronin-quote.1 +2 -2
- data/man/ronin-quote.1.md +2 -2
- data/man/ronin-rot.1 +20 -3
- data/man/ronin-rot.1.md +14 -3
- data/man/ronin-sha1.1 +1 -1
- data/man/ronin-sha1.1.md +1 -1
- data/man/ronin-sha256.1 +2 -2
- data/man/ronin-sha256.1.md +2 -2
- data/man/ronin-sha512.1 +1 -1
- data/man/ronin-sha512.1.md +1 -1
- data/man/ronin-strings.1 +1 -1
- data/man/ronin-strings.1.md +1 -1
- data/man/ronin-tips.1 +1 -1
- data/man/ronin-tips.1.md +1 -1
- data/man/ronin-tld-list.1 +11 -1
- data/man/ronin-tld-list.1.md +9 -1
- data/man/ronin-typo.1 +1 -1
- data/man/ronin-typo.1.md +1 -1
- data/man/ronin-typosquat.1 +1 -1
- data/man/ronin-typosquat.1.md +1 -1
- data/man/ronin-unescape.1 +1 -1
- data/man/ronin-unescape.1.md +1 -1
- data/man/ronin-unhexdump.1 +1 -1
- data/man/ronin-unhexdump.1.md +1 -1
- data/man/ronin-unquote.1 +1 -1
- data/man/ronin-unquote.1.md +1 -1
- data/man/ronin-url.1 +1 -1
- data/man/ronin-url.1.md +1 -1
- data/man/ronin-xor.1 +1 -1
- data/man/ronin-xor.1.md +1 -1
- data/man/ronin.1 +1 -1
- data/man/ronin.1.md +1 -1
- data/ronin.gemspec +4 -3
- metadata +40 -2
data/man/ronin-md5.1.md
CHANGED
data/man/ronin-netcat.1
CHANGED
data/man/ronin-netcat.1.md
CHANGED
data/man/ronin-new-project.1
CHANGED
data/man/ronin-new-project.1.md
CHANGED
data/man/ronin-new-script.1
CHANGED
data/man/ronin-new-script.1.md
CHANGED
data/man/ronin-new.1
CHANGED
data/man/ronin-new.1.md
CHANGED
data/man/ronin-proxy.1
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
.\" Generated by kramdown-man 0.1.8
|
2
2
|
.\" https://github.com/postmodern/kramdown-man#readme
|
3
|
-
.TH ronin-proxy 1 "
|
3
|
+
.TH ronin-proxy 1 "2023-02-01" Ronin "User Manuals"
|
4
4
|
.LP
|
5
5
|
.SH SYNOPSIS
|
6
6
|
.LP
|
@@ -10,7 +10,7 @@
|
|
10
10
|
.SH DESCRIPTION
|
11
11
|
.LP
|
12
12
|
.PP
|
13
|
-
Starts
|
13
|
+
Starts a TCP\[sl]UDP\[sl]SSL\[sl]TLS proxy server\.
|
14
14
|
.LP
|
15
15
|
.SH ARGUMENTS
|
16
16
|
.LP
|
data/man/ronin-proxy.1.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# ronin-proxy 1 "
|
1
|
+
# ronin-proxy 1 "2023-02-01" Ronin "User Manuals"
|
2
2
|
|
3
3
|
## SYNOPSIS
|
4
4
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
## DESCRIPTION
|
8
8
|
|
9
|
-
Starts
|
9
|
+
Starts a TCP/UDP/SSL/TLS proxy server.
|
10
10
|
|
11
11
|
## ARGUMENTS
|
12
12
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
.\" Generated by kramdown-man 0.1.8
|
2
2
|
.\" https://github.com/postmodern/kramdown-man#readme
|
3
|
-
.TH ronin-public-suffix-list 1 "
|
3
|
+
.TH ronin-public-suffix-list 1 "2023-02-1" Ronin "User Manuals"
|
4
4
|
.LP
|
5
5
|
.SH SYNOPSIS
|
6
6
|
.LP
|
@@ -36,6 +36,16 @@ The Path to the public suffix list file\. Defaults to
|
|
36
36
|
\fB-h\fR, \fB--help\fR
|
37
37
|
Print help information
|
38
38
|
.LP
|
39
|
+
.SH ENVIRONMENT
|
40
|
+
.LP
|
41
|
+
.TP
|
42
|
+
\fIHOME\fP
|
43
|
+
Alternate location for the user\[cq]s home directory\.
|
44
|
+
.LP
|
45
|
+
.TP
|
46
|
+
\fIXDG\[ru]CONFIG\[ru]HOME\fP
|
47
|
+
Alternate location for the \fB~/.config\fR directory\.
|
48
|
+
.LP
|
39
49
|
.SH FILES
|
40
50
|
.LP
|
41
51
|
.TP
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# ronin-public-suffix-list 1 "
|
1
|
+
# ronin-public-suffix-list 1 "2023-02-1" Ronin "User Manuals"
|
2
2
|
|
3
3
|
## SYNOPSIS
|
4
4
|
|
@@ -27,6 +27,14 @@ Updates and parses the public suffix list file.
|
|
27
27
|
`-h`, `--help`
|
28
28
|
Print help information
|
29
29
|
|
30
|
+
## ENVIRONMENT
|
31
|
+
|
32
|
+
*HOME*
|
33
|
+
Alternate location for the user's home directory.
|
34
|
+
|
35
|
+
*XDG_CONFIG_HOME*
|
36
|
+
Alternate location for the `~/.config` directory.
|
37
|
+
|
30
38
|
## FILES
|
31
39
|
|
32
40
|
`~/.cache/ronin/ronin-support/public_suffix_list.dat`
|
data/man/ronin-quote.1
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
.\" Generated by kramdown-man 0.1.8
|
2
2
|
.\" https://github.com/postmodern/kramdown-man#readme
|
3
|
-
.TH ronin-quote 1 "
|
3
|
+
.TH ronin-quote 1 "2023-02-01" Ronin "User Manuals"
|
4
4
|
.LP
|
5
5
|
.SH SYNOPSIS
|
6
6
|
.LP
|
@@ -47,7 +47,7 @@ Quotes the data as a C string\.
|
|
47
47
|
.LP
|
48
48
|
.TP
|
49
49
|
\fB-j\fR, \fB--js\fR
|
50
|
-
|
50
|
+
quotes the data as a JavaScript string\.
|
51
51
|
.LP
|
52
52
|
.TP
|
53
53
|
\fB-S\fR, \fB--shell\fR
|
data/man/ronin-quote.1.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# ronin-quote 1 "
|
1
|
+
# ronin-quote 1 "2023-02-01" Ronin "User Manuals"
|
2
2
|
|
3
3
|
## SYNOPSIS
|
4
4
|
|
@@ -35,7 +35,7 @@ Produces quoted a string for a variety of programming languages.
|
|
35
35
|
Quotes the data as a C string.
|
36
36
|
|
37
37
|
`-j`, `--js`
|
38
|
-
|
38
|
+
quotes the data as a JavaScript string.
|
39
39
|
|
40
40
|
`-S`, `--shell`
|
41
41
|
Quotes the data as a Shell String.
|
data/man/ronin-rot.1
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
.\" Generated by kramdown-man 0.1.8
|
2
2
|
.\" https://github.com/postmodern/kramdown-man#readme
|
3
|
-
.TH ronin-rot 1 "
|
3
|
+
.TH ronin-rot 1 "2023-02-01" Ronin "User Manuals"
|
4
4
|
.LP
|
5
5
|
.SH SYNOPSIS
|
6
6
|
.LP
|
@@ -42,13 +42,30 @@ Preserves newlines at the end of each line\.
|
|
42
42
|
Alphabet characters to rotate characters within\.
|
43
43
|
.LP
|
44
44
|
.TP
|
45
|
-
\fB-n\fR, \fB--
|
46
|
-
Number of characters to rotate forwards or backwards\.
|
45
|
+
\fB-n\fR, \fB--modulo\fR \fINUM\fP
|
46
|
+
Number of characters to rotate forwards or backwards\. Defaults to 13 if not
|
47
|
+
given\.
|
47
48
|
.LP
|
48
49
|
.TP
|
49
50
|
\fB-h\fR, \fB--help\fR
|
50
51
|
Print help information\.
|
51
52
|
.LP
|
53
|
+
.SH EXAMPLES
|
54
|
+
.LP
|
55
|
+
.PP
|
56
|
+
ROT\-13 encode a string:
|
57
|
+
.LP
|
58
|
+
.nf
|
59
|
+
\[Do] ronin rot \-\-string \[dq]The quick brown fox jumps over the lazy dog\[dq]
|
60
|
+
.fi
|
61
|
+
.LP
|
62
|
+
.PP
|
63
|
+
ROT encode a string with a custom rotation number:
|
64
|
+
.LP
|
65
|
+
.nf
|
66
|
+
\[Do] ronin rot \-n 3 \-\-string \[dq]The quick brown fox jumps over the lazy dog\[dq]
|
67
|
+
.fi
|
68
|
+
.LP
|
52
69
|
.SH AUTHOR
|
53
70
|
.LP
|
54
71
|
.PP
|
data/man/ronin-rot.1.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# ronin-rot 1 "
|
1
|
+
# ronin-rot 1 "2023-02-01" Ronin "User Manuals"
|
2
2
|
|
3
3
|
## SYNOPSIS
|
4
4
|
|
@@ -31,12 +31,23 @@ Rotates each character of data with an alphabet.
|
|
31
31
|
`-A`, `--alphabet` `ABC...`
|
32
32
|
Alphabet characters to rotate characters within.
|
33
33
|
|
34
|
-
`-n`, `--
|
35
|
-
Number of characters to rotate forwards or backwards.
|
34
|
+
`-n`, `--modulo` *NUM*
|
35
|
+
Number of characters to rotate forwards or backwards. Defaults to 13 if not
|
36
|
+
given.
|
36
37
|
|
37
38
|
`-h`, `--help`
|
38
39
|
Print help information.
|
39
40
|
|
41
|
+
## EXAMPLES
|
42
|
+
|
43
|
+
ROT-13 encode a string:
|
44
|
+
|
45
|
+
$ ronin rot --string "The quick brown fox jumps over the lazy dog"
|
46
|
+
|
47
|
+
ROT encode a string with a custom rotation number:
|
48
|
+
|
49
|
+
$ ronin rot -n 3 --string "The quick brown fox jumps over the lazy dog"
|
50
|
+
|
40
51
|
## AUTHOR
|
41
52
|
|
42
53
|
Postmodern <postmodern.mod3@gmail.com>
|
data/man/ronin-sha1.1
CHANGED
data/man/ronin-sha1.1.md
CHANGED
data/man/ronin-sha256.1
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
.\" Generated by kramdown-man 0.1.8
|
2
2
|
.\" https://github.com/postmodern/kramdown-man#readme
|
3
|
-
.TH ronin-sha256 1 "
|
3
|
+
.TH ronin-sha256 1 "2023-02-01" Ronin "User Manuals"
|
4
4
|
.LP
|
5
5
|
.SH SYNOPSIS
|
6
6
|
.LP
|
@@ -22,7 +22,7 @@ input will be read from \fBstdin\fR\.
|
|
22
22
|
.SH OPTIONS
|
23
23
|
.LP
|
24
24
|
.TP
|
25
|
-
\fB-
|
25
|
+
\fB-f\fR, \fB--file\fR \fIFILE\fP
|
26
26
|
Optional input file to read from\.
|
27
27
|
.LP
|
28
28
|
.TP
|
data/man/ronin-sha256.1.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# ronin-sha256 1 "
|
1
|
+
# ronin-sha256 1 "2023-02-01" Ronin "User Manuals"
|
2
2
|
|
3
3
|
## SYNOPSIS
|
4
4
|
|
@@ -16,7 +16,7 @@ Calculates SHA256 hashes of data.
|
|
16
16
|
|
17
17
|
## OPTIONS
|
18
18
|
|
19
|
-
`-
|
19
|
+
`-f`, `--file` *FILE*
|
20
20
|
Optional input file to read from.
|
21
21
|
|
22
22
|
`--string` *STRING*
|
data/man/ronin-sha512.1
CHANGED
data/man/ronin-sha512.1.md
CHANGED
data/man/ronin-strings.1
CHANGED
data/man/ronin-strings.1.md
CHANGED
data/man/ronin-tips.1
CHANGED
data/man/ronin-tips.1.md
CHANGED
data/man/ronin-tld-list.1
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
.\" Generated by kramdown-man 0.1.8
|
2
2
|
.\" https://github.com/postmodern/kramdown-man#readme
|
3
|
-
.TH ronin-tld-list 1 "
|
3
|
+
.TH ronin-tld-list 1 "2023-02-01" Ronin "User Manuals"
|
4
4
|
.LP
|
5
5
|
.SH SYNOPSIS
|
6
6
|
.LP
|
@@ -36,6 +36,16 @@ The Path to the TLD list file\. Defaults to
|
|
36
36
|
\fB-h\fR, \fB--help\fR
|
37
37
|
Print help information
|
38
38
|
.LP
|
39
|
+
.SH ENVIRONMENT
|
40
|
+
.LP
|
41
|
+
.TP
|
42
|
+
\fIHOME\fP
|
43
|
+
Alternate location for the user\[cq]s home directory\.
|
44
|
+
.LP
|
45
|
+
.TP
|
46
|
+
\fIXDG\[ru]CONFIG\[ru]HOME\fP
|
47
|
+
Alternate location for the \fB~/.config\fR directory\.
|
48
|
+
.LP
|
39
49
|
.SH FILES
|
40
50
|
.LP
|
41
51
|
.TP
|
data/man/ronin-tld-list.1.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# ronin-tld-list 1 "
|
1
|
+
# ronin-tld-list 1 "2023-02-01" Ronin "User Manuals"
|
2
2
|
|
3
3
|
## SYNOPSIS
|
4
4
|
|
@@ -27,6 +27,14 @@ Updates and parses the TLD list file.
|
|
27
27
|
`-h`, `--help`
|
28
28
|
Print help information
|
29
29
|
|
30
|
+
## ENVIRONMENT
|
31
|
+
|
32
|
+
*HOME*
|
33
|
+
Alternate location for the user's home directory.
|
34
|
+
|
35
|
+
*XDG_CONFIG_HOME*
|
36
|
+
Alternate location for the `~/.config` directory.
|
37
|
+
|
30
38
|
## FILES
|
31
39
|
|
32
40
|
`~/.cache/ronin/ronin-support/tlds-alpha-by-domain.txt`
|
data/man/ronin-typo.1
CHANGED
data/man/ronin-typo.1.md
CHANGED
data/man/ronin-typosquat.1
CHANGED
data/man/ronin-typosquat.1.md
CHANGED
data/man/ronin-unescape.1
CHANGED
data/man/ronin-unescape.1.md
CHANGED
data/man/ronin-unhexdump.1
CHANGED
data/man/ronin-unhexdump.1.md
CHANGED
data/man/ronin-unquote.1
CHANGED
data/man/ronin-unquote.1.md
CHANGED
data/man/ronin-url.1
CHANGED
data/man/ronin-url.1.md
CHANGED
data/man/ronin-xor.1
CHANGED
data/man/ronin-xor.1.md
CHANGED
data/man/ronin.1
CHANGED
data/man/ronin.1.md
CHANGED
data/ronin.gemspec
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
1
|
+
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require 'yaml'
|
4
4
|
|
@@ -21,7 +21,7 @@ Gem::Specification.new do |gem|
|
|
21
21
|
gem.email = gemspec['email']
|
22
22
|
gem.homepage = gemspec['homepage']
|
23
23
|
|
24
|
-
glob =
|
24
|
+
glob = ->(patterns) { gem.files & Dir[*patterns] }
|
25
25
|
|
26
26
|
gem.files = `git ls-files`.split($/)
|
27
27
|
gem.files = glob[gemspec['files']] if gemspec['files']
|
@@ -32,6 +32,7 @@ Gem::Specification.new do |gem|
|
|
32
32
|
gem.executables = gemspec.fetch('executables') do
|
33
33
|
glob['bin/*'].map { |path| File.basename(path) }
|
34
34
|
end
|
35
|
+
|
35
36
|
gem.default_executable = gem.executables.first if Gem::VERSION < '1.7.'
|
36
37
|
|
37
38
|
gem.extensions = glob[gemspec['extensions'] || 'ext/**/extconf.rb']
|
@@ -46,7 +47,7 @@ Gem::Specification.new do |gem|
|
|
46
47
|
gem.required_rubygems_version = gemspec['required_rubygems_version']
|
47
48
|
gem.post_install_message = gemspec['post_install_message']
|
48
49
|
|
49
|
-
split =
|
50
|
+
split = ->(string) { string.split(/,\s*/) }
|
50
51
|
|
51
52
|
if gemspec['dependencies']
|
52
53
|
gemspec['dependencies'].each do |name,versions|
|