ronin 2.0.4 → 2.1.0.rc1
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 +3 -3
- data/.gitignore +1 -0
- data/.rubocop.yml +5 -1
- data/ChangeLog.md +67 -1
- data/Gemfile +66 -29
- data/README.md +166 -21
- data/Rakefile +9 -0
- data/data/completions/ronin +655 -0
- data/data/templates/dns_proxy.rb.erb +35 -0
- data/gemspec.yml +27 -13
- data/lib/ronin/cli/binary_template.rb +124 -0
- data/lib/ronin/cli/commands/archive.rb +104 -0
- data/lib/ronin/cli/commands/banner_grab.rb +2 -0
- data/lib/ronin/cli/commands/bitflip.rb +1 -1
- data/lib/ronin/cli/commands/bitsquat.rb +119 -0
- data/lib/ronin/cli/commands/cert_dump.rb +20 -4
- data/lib/ronin/cli/commands/cert_gen.rb +11 -19
- data/lib/ronin/cli/commands/cert_grab.rb +4 -3
- data/lib/ronin/cli/commands/completion.rb +115 -0
- data/lib/ronin/cli/commands/dns_proxy.rb +235 -0
- data/lib/ronin/cli/commands/http.rb +80 -8
- data/lib/ronin/cli/commands/ip.rb +101 -0
- data/lib/ronin/cli/commands/iprange.rb +25 -8
- data/lib/ronin/cli/commands/netcat.rb +2 -0
- data/lib/ronin/cli/commands/new/dns_listener.rb +37 -0
- data/lib/ronin/cli/commands/new/dns_proxy.rb +99 -0
- data/lib/ronin/cli/commands/new/exploit.rb +34 -0
- data/lib/ronin/cli/commands/new/http_listener.rb +37 -0
- data/lib/ronin/cli/commands/new/nokogiri.rb +33 -0
- data/lib/ronin/cli/commands/new/payload.rb +34 -0
- data/lib/ronin/cli/commands/new/project.rb +1 -1
- data/lib/ronin/cli/commands/new/script.rb +1 -1
- data/lib/ronin/cli/commands/new/web_app.rb +37 -0
- data/lib/ronin/cli/commands/new/web_server.rb +37 -0
- data/lib/ronin/cli/commands/new/web_spider.rb +37 -0
- data/lib/ronin/cli/commands/new.rb +3 -1
- data/lib/ronin/cli/commands/pack.rb +339 -0
- data/lib/ronin/cli/commands/public_suffix_list.rb +2 -0
- data/lib/ronin/cli/commands/tld_list.rb +2 -0
- data/lib/ronin/cli/commands/unarchive.rb +128 -0
- data/lib/ronin/cli/commands/unhexdump.rb +3 -1
- data/lib/ronin/cli/commands/unpack.rb +195 -0
- data/lib/ronin/cli/commands/url.rb +2 -0
- data/lib/ronin/cli/http_shell.rb +25 -0
- data/lib/ronin/cli.rb +10 -0
- data/lib/ronin/version.rb +1 -1
- data/man/ronin-archive.1.md +49 -0
- data/man/ronin-asn.1 +60 -77
- data/man/ronin-asn.1.md +25 -21
- data/man/ronin-banner-grab.1 +10 -21
- data/man/ronin-banner-grab.1.md +9 -5
- data/man/ronin-bitflip.1 +35 -61
- data/man/ronin-bitflip.1.md +30 -26
- data/man/ronin-bitsquat.1 +40 -0
- data/man/ronin-bitsquat.1.md +43 -0
- data/man/ronin-cert-dump.1 +44 -54
- data/man/ronin-cert-dump.1.md +18 -14
- data/man/ronin-cert-gen.1 +73 -94
- data/man/ronin-cert-gen.1.md +38 -34
- data/man/ronin-cert-grab.1 +29 -37
- data/man/ronin-cert-grab.1.md +12 -8
- data/man/ronin-completion.1 +78 -0
- data/man/ronin-completion.1.md +80 -0
- data/man/ronin-decode.1 +32 -63
- data/man/ronin-decode.1.md +29 -25
- data/man/ronin-decrypt.1 +42 -57
- data/man/ronin-decrypt.1.md +20 -16
- data/man/ronin-dns-proxy.1 +100 -0
- data/man/ronin-dns-proxy.1.md +70 -0
- data/man/ronin-dns.1 +10 -21
- data/man/ronin-dns.1.md +9 -5
- data/man/ronin-email-addr.1 +27 -40
- data/man/ronin-email-addr.1.md +15 -11
- data/man/ronin-encode.1 +93 -63
- data/man/ronin-encode.1.md +64 -26
- data/man/ronin-encrypt.1 +42 -57
- data/man/ronin-encrypt.1.md +20 -16
- data/man/ronin-entropy.1 +11 -21
- data/man/ronin-entropy.1.md +8 -4
- data/man/ronin-escape.1 +22 -46
- data/man/ronin-escape.1.md +22 -18
- data/man/ronin-extract.1 +74 -149
- data/man/ronin-extract.1.md +73 -69
- data/man/ronin-grep.1 +77 -155
- data/man/ronin-grep.1.md +76 -72
- data/man/ronin-help.1 +3 -14
- data/man/ronin-help.1.md +2 -2
- data/man/ronin-hexdump.1 +249 -265
- data/man/ronin-hexdump.1.md +93 -89
- data/man/ronin-highlight.1 +8 -18
- data/man/ronin-highlight.1.md +8 -4
- data/man/ronin-hmac.1 +17 -30
- data/man/ronin-hmac.1.md +14 -10
- data/man/ronin-homoglyph.1 +11 -22
- data/man/ronin-homoglyph.1.md +10 -6
- data/man/ronin-host.1 +23 -47
- data/man/ronin-host.1.md +22 -18
- data/man/ronin-http.1 +40 -69
- data/man/ronin-http.1.md +40 -30
- data/man/ronin-ip.1 +70 -80
- data/man/ronin-ip.1.md +44 -28
- data/man/ronin-iprange.1 +14 -22
- data/man/ronin-iprange.1.md +12 -5
- data/man/ronin-irb.1 +9 -17
- data/man/ronin-irb.1.md +7 -3
- data/man/ronin-md5.1 +13 -24
- data/man/ronin-md5.1.md +11 -7
- data/man/ronin-netcat.1 +25 -51
- data/man/ronin-netcat.1.md +25 -21
- data/man/ronin-new-dns-proxy.1 +45 -0
- data/man/ronin-new-dns-proxy.1.md +44 -0
- data/man/ronin-new-project.1 +32 -45
- data/man/ronin-new-project.1.md +11 -11
- data/man/ronin-new-script.1 +10 -22
- data/man/ronin-new-script.1.md +4 -4
- data/man/ronin-new.1 +56 -31
- data/man/ronin-new.1.md +48 -8
- data/man/ronin-pack.1 +977 -0
- data/man/ronin-pack.1.md +929 -0
- data/man/ronin-proxy.1 +37 -63
- data/man/ronin-proxy.1.md +29 -25
- data/man/ronin-public-suffix-list.1 +16 -32
- data/man/ronin-public-suffix-list.1.md +13 -9
- data/man/ronin-quote.1 +17 -36
- data/man/ronin-quote.1.md +17 -13
- data/man/ronin-rot.1 +26 -39
- data/man/ronin-rot.1.md +15 -11
- data/man/ronin-sha1.1 +13 -24
- data/man/ronin-sha1.1.md +11 -7
- data/man/ronin-sha256.1 +13 -24
- data/man/ronin-sha256.1.md +11 -7
- data/man/ronin-sha512.1 +13 -24
- data/man/ronin-sha512.1.md +11 -7
- data/man/ronin-strings.1 +30 -55
- data/man/ronin-strings.1.md +27 -23
- data/man/ronin-tips.1 +8 -16
- data/man/ronin-tips.1.md +7 -3
- data/man/ronin-tld-list.1 +16 -32
- data/man/ronin-tld-list.1.md +13 -9
- data/man/ronin-typo.1 +14 -28
- data/man/ronin-typo.1.md +13 -9
- data/man/ronin-typosquat.1 +15 -32
- data/man/ronin-typosquat.1.md +15 -11
- data/man/ronin-unarchive.1.md +41 -0
- data/man/ronin-unescape.1 +22 -46
- data/man/ronin-unescape.1.md +22 -18
- data/man/ronin-unhexdump.1 +81 -91
- data/man/ronin-unhexdump.1.md +16 -12
- data/man/ronin-unpack.1 +978 -0
- data/man/ronin-unpack.1.md +920 -0
- data/man/ronin-unquote.1 +17 -36
- data/man/ronin-unquote.1.md +17 -13
- data/man/ronin-url.1 +19 -40
- data/man/ronin-url.1.md +19 -15
- data/man/ronin-xor.1 +14 -28
- data/man/ronin-xor.1.md +13 -9
- data/man/ronin.1 +208 -29
- data/man/ronin.1.md +156 -11
- data/scripts/setup +58 -0
- metadata +162 -73
- data/lib/ronin/config.rb +0 -95
- /data/data/{new → templates}/project/.gitignore +0 -0
- /data/data/{new → templates}/project/.ruby-version.erb +0 -0
- /data/data/{new → templates}/project/Dockerfile.erb +0 -0
- /data/data/{new → templates}/project/Gemfile.erb +0 -0
- /data/data/{new → templates}/project/Rakefile +0 -0
- /data/data/{new → templates}/project/project.rb.erb +0 -0
- /data/data/{new → templates}/script.rb.erb +0 -0
data/man/ronin-cert-gen.1
CHANGED
@@ -1,153 +1,132 @@
|
|
1
|
-
.\" Generated by kramdown-man 0.1
|
1
|
+
.\" Generated by kramdown-man 1.0.1
|
2
2
|
.\" https://github.com/postmodern/kramdown-man#readme
|
3
3
|
.TH ronin-cert-gen 1 "2023-02-01" Ronin "User Manuals"
|
4
|
-
.
|
4
|
+
.SH NAME
|
5
|
+
.PP
|
6
|
+
ronin\-cert\-gen \- Generates a new X509 certificate
|
5
7
|
.SH SYNOPSIS
|
6
|
-
.
|
7
|
-
|
8
|
-
\fBronin cert-gen\fR \[lB]\fIoptions\fP\[rB]
|
9
|
-
.LP
|
8
|
+
.PP
|
9
|
+
\fBronin cert\-gen\fR \[lB]\fIoptions\fP\[rB]
|
10
10
|
.SH DESCRIPTION
|
11
|
-
.LP
|
12
11
|
.PP
|
13
12
|
Generates a new X509 certificate\.
|
14
|
-
.LP
|
15
13
|
.SH OPTIONS
|
16
|
-
.LP
|
17
14
|
.TP
|
18
|
-
\fB
|
15
|
+
\fB\-\-version\fR \fINUM\fP
|
19
16
|
The certificate version number Defaults to \fB2\fR if not given\.
|
20
|
-
.LP
|
21
17
|
.TP
|
22
|
-
\fB
|
18
|
+
\fB\-\-serial\fR \fINUM\fP
|
23
19
|
The certificate serial number Defaults to \fB0\fR if not given\.
|
24
|
-
.LP
|
25
20
|
.TP
|
26
|
-
\fB
|
21
|
+
\fB\-\-not\-before\fR \fITIME\fP
|
27
22
|
When the certificate becomes valid\. Defaults to the current time\.
|
28
|
-
.LP
|
29
23
|
.TP
|
30
|
-
\fB
|
24
|
+
\fB\-\-not\-after\fR \fITIME\fP
|
31
25
|
When the certificate becomes no longer valid\. Defaults to one year from now\.
|
32
|
-
.LP
|
33
26
|
.TP
|
34
|
-
\fB
|
27
|
+
\fB\-c\fR, \fB\-\-common\-name\fR \fIDOMAIN\fP
|
35
28
|
The Common Name (CN) for the certificate\.
|
36
|
-
.LP
|
37
29
|
.TP
|
38
|
-
\fB
|
30
|
+
\fB\-A\fR, \fB\-\-subject\-alt\-name\fR \fIHOST\fP\[or]\fIIP\fP
|
39
31
|
Adds HOST or IP to \fBsubjectAltName\fR\.
|
40
|
-
.LP
|
41
32
|
.TP
|
42
|
-
\fB
|
33
|
+
\fB\-O\fR, \fB\-\-organization\fR \fINAME\fP
|
43
34
|
The Organization (O) for the certificate\.
|
44
|
-
.LP
|
45
35
|
.TP
|
46
|
-
\fB
|
36
|
+
\fB\-U\fR, \fB\-\-organizational\-unit\fR \fINAME\fP
|
47
37
|
The Organizational Unit (OU)\.
|
48
|
-
.LP
|
49
38
|
.TP
|
50
|
-
\fB
|
39
|
+
\fB\-L\fR, \fB\-\-locality\fR \fINAME\fP
|
51
40
|
The locality for the certificate\.
|
52
|
-
.LP
|
53
41
|
.TP
|
54
|
-
\fB
|
42
|
+
\fB\-S\fR, \fB\-\-state\fR \fIXX\fP
|
55
43
|
The two\-letter State (ST) code for the certificate\.
|
56
|
-
.LP
|
57
44
|
.TP
|
58
|
-
\fB
|
45
|
+
\fB\-C\fR, \fB\-\-country\fR \fIXX\fP
|
59
46
|
The two\-letter Country (C) code for the certificate\.
|
60
|
-
.
|
61
|
-
|
62
|
-
\fB-t\fR, \fB--key-type\fR rsa\[or]ec\`
|
47
|
+
.TP
|
48
|
+
\fB\-t\fR, \fB\-\-key\-type \fRrsa\fB\e\[or]\fRdsa\fB\e\[or]\fRec\`
|
63
49
|
The signing key type\.
|
64
|
-
.LP
|
65
50
|
.TP
|
66
|
-
\fB
|
67
|
-
Generates and saves a random key\. Defaults to \fBkey
|
68
|
-
.LP
|
51
|
+
\fB\-\-generate\-key\fR \fIPATH\fP
|
52
|
+
Generates and saves a random key\. Defaults to \fBkey\.pem\fR if not given\.
|
69
53
|
.TP
|
70
|
-
\fB
|
54
|
+
\fB\-k\fR, \fB\-\-key\-file\fR \fIFILE\fP
|
71
55
|
Loads the signing key from the \fIFILE\fP\.
|
72
|
-
.LP
|
73
56
|
.TP
|
74
|
-
\fB
|
57
|
+
\fB\-H\fR, \fB\-\-signing\-hash\fR \fBsha256\fR\[or]\fBsha1\fR\[or]\fBmd5\fR
|
75
58
|
The hash algorithm to use for signing\. Defaults to \fBsha256\fR if not given\.
|
76
|
-
.LP
|
77
59
|
.TP
|
78
|
-
\fB
|
60
|
+
\fB\-\-ca\-key\fR \fIFILE\fP
|
79
61
|
The Certificate Authority (CA) key\.
|
80
|
-
.LP
|
81
62
|
.TP
|
82
|
-
\fB
|
63
|
+
\fB\-\-ca\-cert\fR \fIFILE\fP
|
83
64
|
The Certificate Authority (CA) certificate\.
|
84
|
-
.LP
|
85
65
|
.TP
|
86
|
-
\fB
|
66
|
+
\fB\-\-ca\fR
|
87
67
|
Generates a CA certificate\.
|
88
|
-
.LP
|
89
68
|
.TP
|
90
|
-
\fB
|
91
|
-
The output file to save the generated certificate to\. Defaults to \fBcert
|
69
|
+
\fB\-o\fR, \fB\-\-output\fR \fIFILE\fP
|
70
|
+
The output file to save the generated certificate to\. Defaults to \fBcert\.crt\fR
|
92
71
|
if not given\.
|
93
|
-
.LP
|
94
72
|
.TP
|
95
|
-
\fB
|
73
|
+
\fB\-h\fR, \fB\-\-help\fR
|
96
74
|
Print help information\.
|
97
|
-
.LP
|
98
75
|
.SH EXAMPLES
|
99
|
-
.LP
|
100
76
|
.PP
|
101
|
-
Generates self\-signed certificate in \fBcert
|
102
|
-
.
|
103
|
-
.
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
.
|
77
|
+
Generates self\-signed certificate in \fBcert\.crt\fR and a new private key in \fBkey\.pem\fR:
|
78
|
+
.PP
|
79
|
+
.RS 4
|
80
|
+
.EX
|
81
|
+
\[Do] ronin cert\-gen \-c test\.com \-O \[dq]Test Co\[dq] \-U \[dq]Test Dept\[dq] \e
|
82
|
+
\-L \[dq]Test City\[dq] \-S NY \-C US
|
83
|
+
.EE
|
84
|
+
.RE
|
108
85
|
.PP
|
109
|
-
Generates a new self\-signed certificate for \fBtest
|
110
|
-
\fBprivate
|
111
|
-
.LP
|
112
|
-
.nf
|
113
|
-
ronin cert\-gen \-c test\.com \-O \[dq]Test Co\[dq] \-U \[dq]Test Dept\[dq] \e
|
114
|
-
\-L \[dq]Test City\[dq] \-S NY \-C US \e
|
115
|
-
\-\-key\-file private\.key
|
116
|
-
.fi
|
117
|
-
.LP
|
86
|
+
Generates a new self\-signed certificate for \fBtest\.com\fR in \fBcert\.crt\fR using the private key in
|
87
|
+
\fBprivate\.key\fR:
|
118
88
|
.PP
|
119
|
-
|
120
|
-
.
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
.
|
125
|
-
.
|
89
|
+
.RS 4
|
90
|
+
.EX
|
91
|
+
\[Do] ronin cert\-gen \-c test\.com \-O \[dq]Test Co\[dq] \-U \[dq]Test Dept\[dq] \e
|
92
|
+
\-L \[dq]Test City\[dq] \-S NY \-C US \e
|
93
|
+
\-\-key\-file private\.key
|
94
|
+
.EE
|
95
|
+
.RE
|
96
|
+
.PP
|
97
|
+
Generates a new self\-signed certificate with a alternative name \fBwww\.test\.com\fR:
|
98
|
+
.PP
|
99
|
+
.RS 4
|
100
|
+
.EX
|
101
|
+
\[Do] ronin cert\-gen \-c test\.com \-A www\.test\.com \-O \[dq]Test Co\[dq] \-U \[dq]Test Dept\[dq] \e
|
102
|
+
\-L \[dq]Test City\[dq] \-S NY \-C US
|
103
|
+
.EE
|
104
|
+
.RE
|
126
105
|
.PP
|
127
106
|
Generates a new CA certificate which can sign other certificates:
|
128
|
-
.LP
|
129
|
-
.nf
|
130
|
-
ronin cert\-gen \-\-ca \-c \[dq]Test CA\[dq] \-O \[dq]Test Co\[dq] \-U \[dq]Test Dept\[dq] \e
|
131
|
-
\-L \[dq]Test City\[dq] \-S NY \-C US
|
132
|
-
.fi
|
133
|
-
.LP
|
134
107
|
.PP
|
135
|
-
|
136
|
-
.
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
.
|
142
|
-
|
108
|
+
.RS 4
|
109
|
+
.EX
|
110
|
+
\[Do] ronin cert\-gen \-\-ca \-c \[dq]Test CA\[dq] \-O \[dq]Test Co\[dq] \-U \[dq]Test Dept\[dq] \e
|
111
|
+
\-L \[dq]Test City\[dq] \-S NY \-C US
|
112
|
+
.EE
|
113
|
+
.RE
|
114
|
+
.PP
|
115
|
+
Generates a new sub\-certificate using the CA certificate \fBca\.crt\fR and signing key \fBca\.key\fR:
|
116
|
+
.PP
|
117
|
+
.RS 4
|
118
|
+
.EX
|
119
|
+
\[Do] ronin cert\-gen \-c test\.com \-O \[dq]Test Co\[dq] \-U \[dq]Test Dept\[dq] \e
|
120
|
+
\-L \[dq]Test City\[dq] \-S NY \-C US \e
|
121
|
+
\-\-ca\-key ca\.key \-\-ca\-cert ca\.crt
|
122
|
+
.EE
|
123
|
+
.RE
|
143
124
|
.SH AUTHOR
|
144
|
-
.LP
|
145
125
|
.PP
|
146
126
|
Postmodern
|
147
127
|
.MT postmodern\.mod3\[at]gmail\.com
|
148
128
|
.ME
|
149
|
-
.LP
|
150
129
|
.SH SEE ALSO
|
151
|
-
.LP
|
152
130
|
.PP
|
153
|
-
ronin\-cert\-grab
|
131
|
+
.BR ronin\-cert\-grab (1)
|
132
|
+
.BR ronin\-cert\-dump (1)
|
data/man/ronin-cert-gen.1.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# ronin-cert-gen 1 "2023-02-01" Ronin "User Manuals"
|
2
2
|
|
3
|
+
## NAME
|
4
|
+
|
5
|
+
ronin-cert-gen - Generates a new X509 certificate
|
6
|
+
|
3
7
|
## SYNOPSIS
|
4
8
|
|
5
9
|
`ronin cert-gen` [*options*]
|
@@ -11,95 +15,95 @@ Generates a new X509 certificate.
|
|
11
15
|
## OPTIONS
|
12
16
|
|
13
17
|
`--version` *NUM*
|
14
|
-
|
18
|
+
: The certificate version number Defaults to `2` if not given.
|
15
19
|
|
16
20
|
`--serial` *NUM*
|
17
|
-
|
21
|
+
: The certificate serial number Defaults to `0` if not given.
|
18
22
|
|
19
23
|
`--not-before` *TIME*
|
20
|
-
|
24
|
+
: When the certificate becomes valid. Defaults to the current time.
|
21
25
|
|
22
26
|
`--not-after` *TIME*
|
23
|
-
|
27
|
+
: When the certificate becomes no longer valid. Defaults to one year from now.
|
24
28
|
|
25
29
|
`-c`, `--common-name` *DOMAIN*
|
26
|
-
|
30
|
+
: The Common Name (CN) for the certificate.
|
27
31
|
|
28
32
|
`-A`, `--subject-alt-name` *HOST*\|*IP*
|
29
|
-
|
33
|
+
: Adds HOST or IP to `subjectAltName`.
|
30
34
|
|
31
35
|
`-O`, `--organization` *NAME*
|
32
|
-
|
36
|
+
: The Organization (O) for the certificate.
|
33
37
|
|
34
38
|
`-U`, `--organizational-unit` *NAME*
|
35
|
-
|
39
|
+
: The Organizational Unit (OU).
|
36
40
|
|
37
41
|
`-L`, `--locality` *NAME*
|
38
|
-
|
42
|
+
: The locality for the certificate.
|
39
43
|
|
40
44
|
`-S`, `--state` *XX*
|
41
|
-
|
45
|
+
: The two-letter State (ST) code for the certificate.
|
42
46
|
|
43
47
|
`-C`, `--country` *XX*
|
44
|
-
|
48
|
+
: The two-letter Country (C) code for the certificate.
|
45
49
|
|
46
|
-
`-t`, `--key-type`
|
47
|
-
|
50
|
+
`-t`, `--key-type `rsa`\|`dsa`\|`ec`
|
51
|
+
: The signing key type.
|
48
52
|
|
49
53
|
`--generate-key` *PATH*
|
50
|
-
|
54
|
+
: Generates and saves a random key. Defaults to `key.pem` if not given.
|
51
55
|
|
52
56
|
`-k`, `--key-file` *FILE*
|
53
|
-
|
57
|
+
: Loads the signing key from the *FILE*.
|
54
58
|
|
55
59
|
`-H`, `--signing-hash` `sha256`\|`sha1`\|`md5`
|
56
|
-
|
60
|
+
: The hash algorithm to use for signing. Defaults to `sha256` if not given.
|
57
61
|
|
58
62
|
`--ca-key` *FILE*
|
59
|
-
|
63
|
+
: The Certificate Authority (CA) key.
|
60
64
|
|
61
65
|
`--ca-cert` *FILE*
|
62
|
-
|
66
|
+
: The Certificate Authority (CA) certificate.
|
63
67
|
|
64
68
|
`--ca`
|
65
|
-
|
69
|
+
: Generates a CA certificate.
|
66
70
|
|
67
71
|
`-o`, `--output` *FILE*
|
68
|
-
|
72
|
+
: The output file to save the generated certificate to. Defaults to `cert.crt`
|
69
73
|
if not given.
|
70
74
|
|
71
75
|
`-h`, `--help`
|
72
|
-
|
76
|
+
: Print help information.
|
73
77
|
|
74
78
|
## EXAMPLES
|
75
79
|
|
76
80
|
Generates self-signed certificate in `cert.crt` and a new private key in `key.pem`:
|
77
81
|
|
78
|
-
|
79
|
-
|
82
|
+
$ ronin cert-gen -c test.com -O "Test Co" -U "Test Dept" \
|
83
|
+
-L "Test City" -S NY -C US
|
80
84
|
|
81
85
|
Generates a new self-signed certificate for `test.com` in `cert.crt` using the private key in
|
82
86
|
`private.key`:
|
83
87
|
|
84
|
-
|
85
|
-
|
86
|
-
|
88
|
+
$ ronin cert-gen -c test.com -O "Test Co" -U "Test Dept" \
|
89
|
+
-L "Test City" -S NY -C US \
|
90
|
+
--key-file private.key
|
87
91
|
|
88
92
|
Generates a new self-signed certificate with a alternative name `www.test.com`:
|
89
93
|
|
90
|
-
|
91
|
-
|
94
|
+
$ ronin cert-gen -c test.com -A www.test.com -O "Test Co" -U "Test Dept" \
|
95
|
+
-L "Test City" -S NY -C US
|
92
96
|
|
93
97
|
Generates a new CA certificate which can sign other certificates:
|
94
98
|
|
95
|
-
|
96
|
-
|
99
|
+
$ ronin cert-gen --ca -c "Test CA" -O "Test Co" -U "Test Dept" \
|
100
|
+
-L "Test City" -S NY -C US
|
97
101
|
|
98
102
|
Generates a new sub-certificate using the CA certificate `ca.crt` and signing key `ca.key`:
|
99
103
|
|
100
|
-
|
101
|
-
|
102
|
-
|
104
|
+
$ ronin cert-gen -c test.com -O "Test Co" -U "Test Dept" \
|
105
|
+
-L "Test City" -S NY -C US \
|
106
|
+
--ca-key ca.key --ca-cert ca.crt
|
103
107
|
|
104
108
|
## AUTHOR
|
105
109
|
|
@@ -107,4 +111,4 @@ Postmodern <postmodern.mod3@gmail.com>
|
|
107
111
|
|
108
112
|
## SEE ALSO
|
109
113
|
|
110
|
-
ronin-cert-grab(1) ronin-cert-dump(1)
|
114
|
+
[ronin-cert-grab](ronin-cert-grab.1.md) [ronin-cert-dump](ronin-cert-dump.1.md)
|
data/man/ronin-cert-grab.1
CHANGED
@@ -1,68 +1,60 @@
|
|
1
|
-
.\" Generated by kramdown-man 0.1
|
1
|
+
.\" Generated by kramdown-man 1.0.1
|
2
2
|
.\" https://github.com/postmodern/kramdown-man#readme
|
3
3
|
.TH ronin-cert-grab 1 "2023-02-01" Ronin "User Manuals"
|
4
|
-
.
|
4
|
+
.SH NAME
|
5
|
+
.PP
|
6
|
+
ronin\-cert\-grab \- Downloads SSL\[sl]TLS certificates
|
5
7
|
.SH SYNOPSIS
|
6
|
-
.
|
7
|
-
|
8
|
-
\fBronin cert-grab\fR \[lB]\fIoptions\fP\[rB] \[lC]\fIHOST\fP:\fIPORT\fP \[or] \fIURL\fP\[rC] \.\.\.
|
9
|
-
.LP
|
8
|
+
.PP
|
9
|
+
\fBronin cert\-grab\fR \[lB]\fIoptions\fP\[rB] \[lC]\fIHOST\fP:\fIPORT\fP \[or] \fIURL\fP\[rC] \.\.\.
|
10
10
|
.SH DESCRIPTION
|
11
|
-
.LP
|
12
11
|
.PP
|
13
|
-
Downloads SSL\[sl]TLS certificates for a SSL\[sl]TLS TCP or \fBhttps
|
14
|
-
.LP
|
12
|
+
Downloads SSL\[sl]TLS certificates for a SSL\[sl]TLS TCP or \fBhttps:\[sl]\[sl]\fR URL\.
|
15
13
|
.SH ARGUMENTS
|
16
|
-
.LP
|
17
14
|
.TP
|
18
15
|
\fIHOST\fP:\fIPORT\fP
|
19
16
|
A remote TCP service to retrieve the SSL\[sl]TLS certificate from and print\.
|
20
|
-
.LP
|
21
17
|
.TP
|
22
18
|
\fIURL\fP
|
23
19
|
An URL to retrieve the SSL\[sl]TLS certificate from and print\.
|
24
|
-
.LP
|
25
20
|
.SH OPTIONS
|
26
|
-
.LP
|
27
21
|
.TP
|
28
|
-
\fB
|
22
|
+
\fB\-f\fR, \fB\-\-file\fR \fIFILE\fP
|
29
23
|
Optional file to read target values from\.
|
30
|
-
.LP
|
31
24
|
.TP
|
32
|
-
\fB
|
25
|
+
\fB\-h\fR, \fB\-\-help\fR
|
33
26
|
Print help information\.
|
34
|
-
.LP
|
35
27
|
.SH EXAMPLES
|
36
|
-
.LP
|
37
28
|
.PP
|
38
29
|
Downloads the SSL\[sl]TLS certificate for a SSL\[sl]TLS service:
|
39
|
-
.
|
40
|
-
.
|
41
|
-
|
42
|
-
|
43
|
-
.
|
30
|
+
.PP
|
31
|
+
.RS 4
|
32
|
+
.EX
|
33
|
+
\[Do] ronin cert\-grab github\.com:443
|
34
|
+
.EE
|
35
|
+
.RE
|
44
36
|
.PP
|
45
37
|
Downloads the SSL\[sl]TLS certificate running on the IP and port:
|
46
|
-
.
|
47
|
-
.
|
48
|
-
|
49
|
-
|
50
|
-
.
|
38
|
+
.PP
|
39
|
+
.RS 4
|
40
|
+
.EX
|
41
|
+
\[Do] ronin cert\-grab 93\.184\.216\.34:443
|
42
|
+
.EE
|
43
|
+
.RE
|
51
44
|
.PP
|
52
45
|
Downloads the SSL\[sl]TLS certificate used by the URL:
|
53
|
-
.
|
54
|
-
.
|
55
|
-
|
56
|
-
|
57
|
-
.
|
46
|
+
.PP
|
47
|
+
.RS 4
|
48
|
+
.EX
|
49
|
+
\[Do] ronin cert\-grab https:\[sl]\[sl]github\.com\[sl]
|
50
|
+
.EE
|
51
|
+
.RE
|
58
52
|
.SH AUTHOR
|
59
|
-
.LP
|
60
53
|
.PP
|
61
54
|
Postmodern
|
62
55
|
.MT postmodern\.mod3\[at]gmail\.com
|
63
56
|
.ME
|
64
|
-
.LP
|
65
57
|
.SH SEE ALSO
|
66
|
-
.LP
|
67
58
|
.PP
|
68
|
-
ronin\-cert\-dump
|
59
|
+
.BR ronin\-cert\-dump (1)
|
60
|
+
.BR ronin\-cert\-gen (1)
|
data/man/ronin-cert-grab.1.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# ronin-cert-grab 1 "2023-02-01" Ronin "User Manuals"
|
2
2
|
|
3
|
+
## NAME
|
4
|
+
|
5
|
+
ronin-cert-grab - Downloads SSL/TLS certificates
|
6
|
+
|
3
7
|
## SYNOPSIS
|
4
8
|
|
5
9
|
`ronin cert-grab` [*options*] {*HOST*:*PORT* \| *URL*} ...
|
@@ -11,32 +15,32 @@ Downloads SSL/TLS certificates for a SSL/TLS TCP or `https://` URL.
|
|
11
15
|
## ARGUMENTS
|
12
16
|
|
13
17
|
*HOST*:*PORT*
|
14
|
-
|
18
|
+
: A remote TCP service to retrieve the SSL/TLS certificate from and print.
|
15
19
|
|
16
20
|
*URL*
|
17
|
-
|
21
|
+
: An URL to retrieve the SSL/TLS certificate from and print.
|
18
22
|
|
19
23
|
## OPTIONS
|
20
24
|
|
21
25
|
`-f`, `--file` *FILE*
|
22
|
-
|
26
|
+
: Optional file to read target values from.
|
23
27
|
|
24
28
|
`-h`, `--help`
|
25
|
-
|
29
|
+
: Print help information.
|
26
30
|
|
27
31
|
## EXAMPLES
|
28
32
|
|
29
33
|
Downloads the SSL/TLS certificate for a SSL/TLS service:
|
30
34
|
|
31
|
-
|
35
|
+
$ ronin cert-grab github.com:443
|
32
36
|
|
33
37
|
Downloads the SSL/TLS certificate running on the IP and port:
|
34
38
|
|
35
|
-
|
39
|
+
$ ronin cert-grab 93.184.216.34:443
|
36
40
|
|
37
41
|
Downloads the SSL/TLS certificate used by the URL:
|
38
42
|
|
39
|
-
|
43
|
+
$ ronin cert-grab https://github.com/
|
40
44
|
|
41
45
|
## AUTHOR
|
42
46
|
|
@@ -44,4 +48,4 @@ Postmodern <postmodern.mod3@gmail.com>
|
|
44
48
|
|
45
49
|
## SEE ALSO
|
46
50
|
|
47
|
-
ronin-cert-dump(1) ronin-cert-gen(1)
|
51
|
+
[ronin-cert-dump](ronin-cert-dump.1.md) [ronin-cert-gen](ronin-cert-gen.1.md)
|
@@ -0,0 +1,78 @@
|
|
1
|
+
.\" Generated by kramdown-man 1.0.1
|
2
|
+
.\" https://github.com/postmodern/kramdown-man#readme
|
3
|
+
.TH ronin-completion 1 "2024-01-01" Ronin "User Manuals"
|
4
|
+
.SH NAME
|
5
|
+
.PP
|
6
|
+
ronin\-completion \- Manages shell completion rules for \fBronin\-repos\fR
|
7
|
+
.SH SYNOPSIS
|
8
|
+
.PP
|
9
|
+
\fBronin\-repos completion\fR \[lB]\fIoptions\fP\[rB]
|
10
|
+
.SH DESCRIPTION
|
11
|
+
.PP
|
12
|
+
The \fBronin completion\fR command can print, install, or uninstall shell
|
13
|
+
completion rules for the \fBronin\fR command and all other \fBronin\-*\fR commands\.
|
14
|
+
.PP
|
15
|
+
Supports installing completion rules for Bash or Zsh shells\.
|
16
|
+
Completion rules for the Fish shell is currently not supported\.
|
17
|
+
.SS ZSH SUPPORT
|
18
|
+
.PP
|
19
|
+
Zsh users will have to add the following lines to their \fB\[ti]\[sl]\.zshrc\fR file in
|
20
|
+
order to enable Zsh\[cq]s Bash completion compatibility layer:
|
21
|
+
.PP
|
22
|
+
.RS 4
|
23
|
+
.EX
|
24
|
+
autoload \-Uz \[pl]X compinit && compinit
|
25
|
+
autoload \-Uz \[pl]X bashcompinit && bashcompinit
|
26
|
+
.EE
|
27
|
+
.RE
|
28
|
+
.SH OPTIONS
|
29
|
+
.TP
|
30
|
+
\fB\-\-print\fR
|
31
|
+
Prints the shell completion file\.
|
32
|
+
.TP
|
33
|
+
\fB\-\-install\fR
|
34
|
+
Installs the shell completion file\.
|
35
|
+
.TP
|
36
|
+
\fB\-\-uninstall\fR
|
37
|
+
Uninstalls the shell completion file\.
|
38
|
+
.TP
|
39
|
+
\fB\-h\fR, \fB\-\-help\fR
|
40
|
+
Prints help information\.
|
41
|
+
.SH ENVIRONMENT
|
42
|
+
.TP
|
43
|
+
\fIPREFIX\fP
|
44
|
+
Specifies the root prefix for the file system\.
|
45
|
+
.TP
|
46
|
+
\fIHOME\fP
|
47
|
+
Specifies the home directory of the user\. Ronin will search for the
|
48
|
+
\fB\[ti]\[sl]\.cache\[sl]ronin\-repos\fR cache directory within the home directory\.
|
49
|
+
.TP
|
50
|
+
\fIXDG\[ru]DATA\[ru]HOME\fP
|
51
|
+
Specifies the data directory to use\. Defaults to \fB\[Do]HOME\[sl]\.local\[sl]share\fR\.
|
52
|
+
.SH FILES
|
53
|
+
.TP
|
54
|
+
\fB\[ti]\[sl]\.local\[sl]share\[sl]bash\-completion\[sl]completions\[sl]\fR
|
55
|
+
The user\-local installation directory for Bash completion files\.
|
56
|
+
.TP
|
57
|
+
\fB\[sl]usr\[sl]local\[sl]share\[sl]bash\-completion\[sl]completions\[sl]\fR
|
58
|
+
The system\-wide installation directory for Bash completions files\.
|
59
|
+
.TP
|
60
|
+
\fB\[sl]usr\[sl]local\[sl]share\[sl]zsh\[sl]site\-functions\[sl]\fR
|
61
|
+
The installation directory for Zsh completion files\.
|
62
|
+
.SH EXAMPLES
|
63
|
+
.TP
|
64
|
+
\fBronin completion \-\-print\fR
|
65
|
+
Prints all shell completion rules instead of installing them\.
|
66
|
+
.TP
|
67
|
+
\fBronin completion \-\-install\fR
|
68
|
+
Installs all shell completion rules for \fBronin\fR and the other \fBronin\-*\fR
|
69
|
+
commands\.
|
70
|
+
.TP
|
71
|
+
\fBronin\-repos completion \-\-uninstall\fR
|
72
|
+
Uninstalls all shell completion rules for \fBronin\fR and the other \fBronin\-*\fR
|
73
|
+
commands\.
|
74
|
+
.SH AUTHOR
|
75
|
+
.PP
|
76
|
+
Postmodern
|
77
|
+
.MT postmodern\.mod3\[at]gmail\.com
|
78
|
+
.ME
|
@@ -0,0 +1,80 @@
|
|
1
|
+
# ronin-completion 1 "2024-01-01" Ronin "User Manuals"
|
2
|
+
|
3
|
+
## NAME
|
4
|
+
|
5
|
+
ronin-completion - Manages shell completion rules for `ronin-repos`
|
6
|
+
|
7
|
+
## SYNOPSIS
|
8
|
+
|
9
|
+
`ronin-repos completion` [*options*]
|
10
|
+
|
11
|
+
## DESCRIPTION
|
12
|
+
|
13
|
+
The `ronin completion` command can print, install, or uninstall shell
|
14
|
+
completion rules for the `ronin` command and all other `ronin-*` commands.
|
15
|
+
|
16
|
+
Supports installing completion rules for Bash or Zsh shells.
|
17
|
+
Completion rules for the Fish shell is currently not supported.
|
18
|
+
|
19
|
+
### ZSH SUPPORT
|
20
|
+
|
21
|
+
Zsh users will have to add the following lines to their `~/.zshrc` file in
|
22
|
+
order to enable Zsh's Bash completion compatibility layer:
|
23
|
+
|
24
|
+
autoload -Uz +X compinit && compinit
|
25
|
+
autoload -Uz +X bashcompinit && bashcompinit
|
26
|
+
|
27
|
+
## OPTIONS
|
28
|
+
|
29
|
+
`--print`
|
30
|
+
: Prints the shell completion file.
|
31
|
+
|
32
|
+
`--install`
|
33
|
+
: Installs the shell completion file.
|
34
|
+
|
35
|
+
`--uninstall`
|
36
|
+
: Uninstalls the shell completion file.
|
37
|
+
|
38
|
+
`-h`, `--help`
|
39
|
+
: Prints help information.
|
40
|
+
|
41
|
+
## ENVIRONMENT
|
42
|
+
|
43
|
+
*PREFIX*
|
44
|
+
: Specifies the root prefix for the file system.
|
45
|
+
|
46
|
+
*HOME*
|
47
|
+
: Specifies the home directory of the user. Ronin will search for the
|
48
|
+
`~/.cache/ronin-repos` cache directory within the home directory.
|
49
|
+
|
50
|
+
*XDG_DATA_HOME*
|
51
|
+
: Specifies the data directory to use. Defaults to `$HOME/.local/share`.
|
52
|
+
|
53
|
+
## FILES
|
54
|
+
|
55
|
+
`~/.local/share/bash-completion/completions/`
|
56
|
+
: The user-local installation directory for Bash completion files.
|
57
|
+
|
58
|
+
`/usr/local/share/bash-completion/completions/`
|
59
|
+
: The system-wide installation directory for Bash completions files.
|
60
|
+
|
61
|
+
`/usr/local/share/zsh/site-functions/`
|
62
|
+
: The installation directory for Zsh completion files.
|
63
|
+
|
64
|
+
## EXAMPLES
|
65
|
+
|
66
|
+
`ronin completion --print`
|
67
|
+
: Prints all shell completion rules instead of installing them.
|
68
|
+
|
69
|
+
`ronin completion --install`
|
70
|
+
: Installs all shell completion rules for `ronin` and the other `ronin-*`
|
71
|
+
commands.
|
72
|
+
|
73
|
+
`ronin-repos completion --uninstall`
|
74
|
+
: Uninstalls all shell completion rules for `ronin` and the other `ronin-*`
|
75
|
+
commands.
|
76
|
+
|
77
|
+
## AUTHOR
|
78
|
+
|
79
|
+
Postmodern <postmodern.mod3@gmail.com>
|
80
|
+
|