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-encrypt.1
CHANGED
@@ -1,105 +1,90 @@
|
|
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-encrypt 1 "2023-02-01" Ronin "User Manuals"
|
4
|
-
.
|
4
|
+
.SH NAME
|
5
|
+
.PP
|
6
|
+
ronin\-encrypt \- Encrypts data
|
5
7
|
.SH SYNOPSIS
|
6
|
-
.
|
7
|
-
.HP
|
8
|
+
.PP
|
8
9
|
\fBronin encrypt\fR \[lB]\fIoptions\fP\[rB] \[lB]\fIFILE\fP \.\.\.\[rB]
|
9
|
-
.LP
|
10
10
|
.SH DESCRIPTION
|
11
|
-
.LP
|
12
11
|
.PP
|
13
12
|
Encrypts data\.
|
14
|
-
.LP
|
15
13
|
.SH ARGUMENTS
|
16
|
-
.LP
|
17
14
|
.TP
|
18
15
|
\fIFILE\fP
|
19
16
|
The optional file to read and encrypt\. If no \fIFILE\fP arguments are given,
|
20
17
|
input will be read from \fBstdin\fR\.
|
21
|
-
.LP
|
22
18
|
.SH OPTIONS
|
23
|
-
.LP
|
24
19
|
.TP
|
25
|
-
\fB
|
20
|
+
\fB\-k\fR, \fB\-\-key\fR \fISTRING\fP
|
26
21
|
The raw key string for the cipher\.
|
27
|
-
.LP
|
28
22
|
.TP
|
29
|
-
\fB
|
23
|
+
\fB\-K\fR, \fB\-\-key\-file\fR \fIFILE\fP
|
30
24
|
Reads the key string from the file\.
|
31
|
-
.LP
|
32
25
|
.TP
|
33
|
-
\fB
|
34
|
-
The cipher to encrypt with\. See \fB
|
35
|
-
ciphers\. Default to \fBaes
|
36
|
-
.LP
|
26
|
+
\fB\-c\fR, \fB\-\-cipher\fR \fINAME\fP
|
27
|
+
The cipher to encrypt with\. See \fB\-\-list\-ciphers\fR for a list of supported
|
28
|
+
ciphers\. Default to \fBaes\-256\-cbc\fR if not given\.
|
37
29
|
.TP
|
38
|
-
\fB
|
30
|
+
\fB\-P\fR, \fB\-\-password\fR \fIPASSWORD\fP
|
39
31
|
The password to encrypt with\.
|
40
|
-
.LP
|
41
32
|
.TP
|
42
|
-
\fB
|
33
|
+
\fB\-H\fR, \fB\-\-hash\fR \fBmd5\fR\[or]\fBsha1\fR\[or]\fBsha256\fR\[or]\fBsha512\fR
|
43
34
|
The hash algorithm to use for the password\. Default to \fBsha256\fR if not given\.
|
44
|
-
.LP
|
45
35
|
.TP
|
46
|
-
\fB
|
36
|
+
\fB\-\-iv\fR \fISTRING\fP
|
47
37
|
Sets the Initial Vector (IV) value of the cipher\.
|
48
|
-
.LP
|
49
38
|
.TP
|
50
|
-
\fB
|
39
|
+
\fB\-\-padding\fR \fINUM\fP
|
51
40
|
Sets the padding size, in bytes, of the encryption cipher\.
|
52
|
-
.LP
|
53
41
|
.TP
|
54
|
-
\fB
|
42
|
+
\fB\-b\fR, \fB\-\-block\-size\fR \fINUM\fP
|
55
43
|
The size, in bytes, to read data in\. Default to \fB16384\fR if not given\.
|
56
|
-
.LP
|
57
44
|
.TP
|
58
|
-
\fB
|
45
|
+
\fB\-\-list\-ciphers\fR
|
59
46
|
List the supported ciphers and exits\.
|
60
|
-
.LP
|
61
47
|
.TP
|
62
|
-
\fB
|
48
|
+
\fB\-h\fR, \fB\-\-help\fR
|
63
49
|
Print help information\.
|
64
|
-
.LP
|
65
50
|
.SH EXAMPLES
|
66
|
-
.LP
|
67
51
|
.PP
|
68
52
|
Encrypt a file using AES\-256 (CBC mode) with a password:
|
69
|
-
.
|
70
|
-
.
|
71
|
-
|
72
|
-
|
73
|
-
.
|
53
|
+
.PP
|
54
|
+
.RS 4
|
55
|
+
.EX
|
56
|
+
\[Do] ronin encrypt \-\-cipher aes\-256\-cbc \-\-password \[dq]\.\.\.\[dq] file\.txt > encrypted\.bin
|
57
|
+
.EE
|
58
|
+
.RE
|
74
59
|
.PP
|
75
60
|
Encrypt a file using a raw key string:
|
76
|
-
.
|
77
|
-
.
|
78
|
-
|
79
|
-
|
80
|
-
.
|
61
|
+
.PP
|
62
|
+
.RS 4
|
63
|
+
.EX
|
64
|
+
\[Do] ronin encrypt \-\-cipher aes\-256\-cbc \-\-key \[dq]12345abcdef\.\.\.\[dq] file\.txt > encrypted\.bin
|
65
|
+
.EE
|
66
|
+
.RE
|
81
67
|
.PP
|
82
68
|
Encrypt a file using a raw key read from a file:
|
83
|
-
.
|
84
|
-
.
|
85
|
-
|
86
|
-
|
87
|
-
.
|
69
|
+
.PP
|
70
|
+
.RS 4
|
71
|
+
.EX
|
72
|
+
\[Do] ronin encrypt \-\-cipher aes\-256\-cbc \-\-key\-file key\.bin file\.txt > encrypted\.bin
|
73
|
+
.EE
|
74
|
+
.RE
|
88
75
|
.PP
|
89
76
|
Specifying a custom IV (initialization vector):
|
90
|
-
.
|
91
|
-
.
|
92
|
-
|
93
|
-
|
94
|
-
.
|
77
|
+
.PP
|
78
|
+
.RS 4
|
79
|
+
.EX
|
80
|
+
\[Do] ronin encrypt \-\-cipher aes\-256\-cbc \-\-key \[dq]\.\.\.\[dq] \-\-iv \[dq]\.\.\.\[dq] file\.txt > encrypted\.bin
|
81
|
+
.EE
|
82
|
+
.RE
|
95
83
|
.SH AUTHOR
|
96
|
-
.LP
|
97
84
|
.PP
|
98
85
|
Postmodern
|
99
86
|
.MT postmodern\.mod3\[at]gmail\.com
|
100
87
|
.ME
|
101
|
-
.LP
|
102
88
|
.SH SEE ALSO
|
103
|
-
.LP
|
104
89
|
.PP
|
105
|
-
ronin\-decrypt(1)
|
90
|
+
.BR ronin\-decrypt (1)
|
data/man/ronin-encrypt.1.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# ronin-encrypt 1 "2023-02-01" Ronin "User Manuals"
|
2
2
|
|
3
|
+
## NAME
|
4
|
+
|
5
|
+
ronin-encrypt - Encrypts data
|
6
|
+
|
3
7
|
## SYNOPSIS
|
4
8
|
|
5
9
|
`ronin encrypt` [*options*] [*FILE* ...]
|
@@ -11,59 +15,59 @@ Encrypts data.
|
|
11
15
|
## ARGUMENTS
|
12
16
|
|
13
17
|
*FILE*
|
14
|
-
|
18
|
+
: The optional file to read and encrypt. If no *FILE* arguments are given,
|
15
19
|
input will be read from `stdin`.
|
16
20
|
|
17
21
|
## OPTIONS
|
18
22
|
|
19
23
|
`-k`, `--key` *STRING*
|
20
|
-
|
24
|
+
: The raw key string for the cipher.
|
21
25
|
|
22
26
|
`-K`, `--key-file` *FILE*
|
23
|
-
|
27
|
+
: Reads the key string from the file.
|
24
28
|
|
25
29
|
`-c`, `--cipher` *NAME*
|
26
|
-
|
30
|
+
: The cipher to encrypt with. See `--list-ciphers` for a list of supported
|
27
31
|
ciphers. Default to `aes-256-cbc` if not given.
|
28
32
|
|
29
33
|
`-P`, `--password` *PASSWORD*
|
30
|
-
|
34
|
+
: The password to encrypt with.
|
31
35
|
|
32
36
|
`-H`, `--hash` `md5`\|`sha1`\|`sha256`\|`sha512`
|
33
|
-
|
37
|
+
: The hash algorithm to use for the password. Default to `sha256` if not given.
|
34
38
|
|
35
39
|
`--iv` *STRING*
|
36
|
-
|
40
|
+
: Sets the Initial Vector (IV) value of the cipher.
|
37
41
|
|
38
42
|
`--padding` *NUM*
|
39
|
-
|
43
|
+
: Sets the padding size, in bytes, of the encryption cipher.
|
40
44
|
|
41
45
|
`-b`, `--block-size` *NUM*
|
42
|
-
|
46
|
+
: The size, in bytes, to read data in. Default to `16384` if not given.
|
43
47
|
|
44
48
|
`--list-ciphers`
|
45
|
-
|
49
|
+
: List the supported ciphers and exits.
|
46
50
|
|
47
51
|
`-h`, `--help`
|
48
|
-
|
52
|
+
: Print help information.
|
49
53
|
|
50
54
|
## EXAMPLES
|
51
55
|
|
52
56
|
Encrypt a file using AES-256 (CBC mode) with a password:
|
53
57
|
|
54
|
-
|
58
|
+
$ ronin encrypt --cipher aes-256-cbc --password "..." file.txt > encrypted.bin
|
55
59
|
|
56
60
|
Encrypt a file using a raw key string:
|
57
61
|
|
58
|
-
|
62
|
+
$ ronin encrypt --cipher aes-256-cbc --key "12345abcdef..." file.txt > encrypted.bin
|
59
63
|
|
60
64
|
Encrypt a file using a raw key read from a file:
|
61
65
|
|
62
|
-
|
66
|
+
$ ronin encrypt --cipher aes-256-cbc --key-file key.bin file.txt > encrypted.bin
|
63
67
|
|
64
68
|
Specifying a custom IV (initialization vector):
|
65
69
|
|
66
|
-
|
70
|
+
$ ronin encrypt --cipher aes-256-cbc --key "..." --iv "..." file.txt > encrypted.bin
|
67
71
|
|
68
72
|
## AUTHOR
|
69
73
|
|
@@ -71,4 +75,4 @@ Postmodern <postmodern.mod3@gmail.com>
|
|
71
75
|
|
72
76
|
## SEE ALSO
|
73
77
|
|
74
|
-
ronin-decrypt(1)
|
78
|
+
[ronin-decrypt](ronin-decrypt.1.md)
|
data/man/ronin-entropy.1
CHANGED
@@ -1,43 +1,33 @@
|
|
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-entropy 1 "2023-02-01" Ronin "User Manuals"
|
4
|
-
.
|
4
|
+
.SH NAME
|
5
|
+
.PP
|
6
|
+
ronin\-entropy \- Filters lines by their entropy
|
5
7
|
.SH SYNOPSIS
|
6
|
-
.
|
7
|
-
.HP
|
8
|
+
.PP
|
8
9
|
\fBronin entropy\fR \[lB]\fIoptions\fP\[rB] \[lB]\fIFILE\fP \.\.\.\[rB]
|
9
|
-
.LP
|
10
10
|
.SH DESCRIPTION
|
11
|
-
.LP
|
12
11
|
.PP
|
13
12
|
Filters each line by it\[cq]s Shannon Entropy\.
|
14
|
-
.LP
|
15
13
|
.SH ARGUMENTS
|
16
|
-
.LP
|
17
14
|
.TP
|
18
15
|
\fIFILE\fP
|
19
16
|
The optional file to read and filter\. If no \fIFILE\fP arguments are given, then
|
20
17
|
\fBronin entropy\fR will read from standard input\.
|
21
|
-
.LP
|
22
18
|
.SH OPTIONS
|
23
|
-
.LP
|
24
|
-
.HP
|
25
|
-
\fB-e\fR, \fB--entropy\fR DEC
|
26
|
-
The minimum required entropy value\. If the \fB-e\fR,\fB--entropy\fR option is not
|
27
|
-
given, it will default to \fB4.0\fR\.
|
28
|
-
.LP
|
29
19
|
.TP
|
30
|
-
\fB
|
20
|
+
\fB\-e\fR, \fB\-\-entropy\fR DEC
|
21
|
+
The minimum required entropy value\. If the \fB\-e\fR,\fB\-\-entropy\fR option is not
|
22
|
+
given, it will default to \fB4\.0\fR\.
|
23
|
+
.TP
|
24
|
+
\fB\-h\fR, \fB\-\-help\fR
|
31
25
|
Print help information\.
|
32
|
-
.LP
|
33
26
|
.SH AUTHOR
|
34
|
-
.LP
|
35
27
|
.PP
|
36
28
|
Postmodern
|
37
29
|
.MT postmodern\.mod3\[at]gmail\.com
|
38
30
|
.ME
|
39
|
-
.LP
|
40
31
|
.SH SEE ALSO
|
41
|
-
.LP
|
42
32
|
.PP
|
43
|
-
ronin\-extract(1)
|
33
|
+
.BR ronin\-extract (1)
|
data/man/ronin-entropy.1.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# ronin-entropy 1 "2023-02-01" Ronin "User Manuals"
|
2
2
|
|
3
|
+
## NAME
|
4
|
+
|
5
|
+
ronin-entropy - Filters lines by their entropy
|
6
|
+
|
3
7
|
## SYNOPSIS
|
4
8
|
|
5
9
|
`ronin entropy` [*options*] [*FILE* ...]
|
@@ -11,17 +15,17 @@ Filters each line by it's Shannon Entropy.
|
|
11
15
|
## ARGUMENTS
|
12
16
|
|
13
17
|
*FILE*
|
14
|
-
|
18
|
+
: The optional file to read and filter. If no *FILE* arguments are given, then
|
15
19
|
`ronin entropy` will read from standard input.
|
16
20
|
|
17
21
|
## OPTIONS
|
18
22
|
|
19
23
|
`-e`, `--entropy` DEC
|
20
|
-
|
24
|
+
: The minimum required entropy value. If the `-e`,`--entropy` option is not
|
21
25
|
given, it will default to `4.0`.
|
22
26
|
|
23
27
|
`-h`, `--help`
|
24
|
-
|
28
|
+
: Print help information.
|
25
29
|
|
26
30
|
## AUTHOR
|
27
31
|
|
@@ -29,4 +33,4 @@ Postmodern <postmodern.mod3@gmail.com>
|
|
29
33
|
|
30
34
|
## SEE ALSO
|
31
35
|
|
32
|
-
ronin-extract(1)
|
36
|
+
[ronin-extract](ronin-extract.1.md)
|
data/man/ronin-escape.1
CHANGED
@@ -1,98 +1,74 @@
|
|
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-escape 1 "2023-02-01" Ronin "User Manuals"
|
4
|
-
.
|
4
|
+
.SH NAME
|
5
|
+
.PP
|
6
|
+
ronin\-escape \- Escapes each special character for a variety of encodings
|
5
7
|
.SH SYNOPSIS
|
6
|
-
.
|
7
|
-
.HP
|
8
|
+
.PP
|
8
9
|
\fBronin escape\fR \[lB]\fIoptions\fP\[rB] \[lB]\fIFILE\fP \.\.\.\[rB]
|
9
|
-
.LP
|
10
10
|
.SH DESCRIPTION
|
11
|
-
.LP
|
12
11
|
.PP
|
13
12
|
Escapes each special character for a variety of encodings\.
|
14
|
-
.LP
|
15
13
|
.SH ARGUMENTS
|
16
|
-
.LP
|
17
14
|
.TP
|
18
15
|
\fIFILE\fP
|
19
16
|
The optional file to read and process\. If no \fIFILE\fP arguments are given,
|
20
17
|
input will be read from \fBstdin\fR\.
|
21
|
-
.LP
|
22
18
|
.SH OPTIONS
|
23
|
-
.LP
|
24
19
|
.TP
|
25
|
-
\fB
|
20
|
+
\fB\-f\fR, \fB\-\-file\fR \fIFILE\fP
|
26
21
|
Optional input file to read from\.
|
27
|
-
.LP
|
28
22
|
.TP
|
29
|
-
\fB
|
23
|
+
\fB\-\-string\fR \fISTRING\fP
|
30
24
|
Optional string to process\.
|
31
|
-
.LP
|
32
25
|
.TP
|
33
|
-
\fB
|
26
|
+
\fB\-M\fR, \fB\-\-multiline\fR
|
34
27
|
Process each line separately\.
|
35
|
-
.LP
|
36
28
|
.TP
|
37
|
-
\fB
|
29
|
+
\fB\-n\fR, \fB\-\-keep\-newlines\fR
|
38
30
|
Preserves newlines at the end of each line\.
|
39
|
-
.LP
|
40
31
|
.TP
|
41
|
-
\fB
|
32
|
+
\fB\-c\fR, \fB\-\-c\fR
|
42
33
|
Escapes the data as a C string\.
|
43
|
-
.LP
|
44
34
|
.TP
|
45
|
-
\fB
|
35
|
+
\fB\-X\fR, \fB\-\-hex\fR
|
46
36
|
Escapes the data as a hex string (ex: \[lq]ABC\ex01\ex02\ex03\.\.\.\[rq])
|
47
|
-
.LP
|
48
37
|
.TP
|
49
|
-
\fB
|
38
|
+
\fB\-H\fR, \fB\-\-html\fR
|
50
39
|
HTML escapes the data\.
|
51
|
-
.LP
|
52
40
|
.TP
|
53
|
-
\fB
|
41
|
+
\fB\-u\fR, \fB\-\-uri\fR
|
54
42
|
URI escapes the data\.
|
55
|
-
.LP
|
56
43
|
.TP
|
57
|
-
\fB
|
44
|
+
\fB\-\-http\fR
|
58
45
|
HTTP escapes the data\.
|
59
|
-
.LP
|
60
46
|
.TP
|
61
|
-
\fB
|
47
|
+
\fB\-j\fR, \fB\-\-js\fR
|
62
48
|
JavaScript escapes the data\.
|
63
|
-
.LP
|
64
49
|
.TP
|
65
|
-
\fB
|
50
|
+
\fB\-S\fR, \fB\-\-shell\fR
|
66
51
|
Escapes the data as a Shell String\.
|
67
|
-
.LP
|
68
52
|
.TP
|
69
|
-
\fB
|
53
|
+
\fB\-P\fR, \fB\-\-powershell\fR
|
70
54
|
Escapes the data as a PowerShell String\.
|
71
|
-
.LP
|
72
55
|
.TP
|
73
|
-
\fB
|
56
|
+
\fB\-Q\fR, \fB\-\-quoted\-printable\fR
|
74
57
|
Escapes the data as Quoted Printable\.
|
75
|
-
.LP
|
76
58
|
.TP
|
77
|
-
\fB
|
59
|
+
\fB\-R\fR, \fB\-\-ruby\fR
|
78
60
|
Escapes the data as a Ruby String\.
|
79
|
-
.LP
|
80
61
|
.TP
|
81
|
-
\fB
|
62
|
+
\fB\-x\fR, \fB\-\-xml\fR
|
82
63
|
XML escapes the data\.
|
83
|
-
.LP
|
84
64
|
.TP
|
85
|
-
\fB
|
65
|
+
\fB\-h\fR, \fB\-\-help\fR
|
86
66
|
Print help information\.
|
87
|
-
.LP
|
88
67
|
.SH AUTHOR
|
89
|
-
.LP
|
90
68
|
.PP
|
91
69
|
Postmodern
|
92
70
|
.MT postmodern\.mod3\[at]gmail\.com
|
93
71
|
.ME
|
94
|
-
.LP
|
95
72
|
.SH SEE ALSO
|
96
|
-
.LP
|
97
73
|
.PP
|
98
|
-
ronin\-unescape(1)
|
74
|
+
.BR ronin\-unescape (1)
|
data/man/ronin-escape.1.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# ronin-escape 1 "2023-02-01" Ronin "User Manuals"
|
2
2
|
|
3
|
+
## NAME
|
4
|
+
|
5
|
+
ronin-escape - Escapes each special character for a variety of encodings
|
6
|
+
|
3
7
|
## SYNOPSIS
|
4
8
|
|
5
9
|
`ronin escape` [*options*] [*FILE* ...]
|
@@ -11,58 +15,58 @@ Escapes each special character for a variety of encodings.
|
|
11
15
|
## ARGUMENTS
|
12
16
|
|
13
17
|
*FILE*
|
14
|
-
|
18
|
+
: The optional file to read and process. If no *FILE* arguments are given,
|
15
19
|
input will be read from `stdin`.
|
16
20
|
|
17
21
|
## OPTIONS
|
18
22
|
|
19
23
|
`-f`, `--file` *FILE*
|
20
|
-
|
24
|
+
: Optional input file to read from.
|
21
25
|
|
22
26
|
`--string` *STRING*
|
23
|
-
|
27
|
+
: Optional string to process.
|
24
28
|
|
25
29
|
`-M`, `--multiline`
|
26
|
-
|
30
|
+
: Process each line separately.
|
27
31
|
|
28
32
|
`-n`, `--keep-newlines`
|
29
|
-
|
33
|
+
: Preserves newlines at the end of each line.
|
30
34
|
|
31
35
|
`-c`, `--c`
|
32
|
-
|
36
|
+
: Escapes the data as a C string.
|
33
37
|
|
34
38
|
`-X`, `--hex`
|
35
|
-
|
39
|
+
: Escapes the data as a hex string (ex: "ABC\x01\x02\x03...")
|
36
40
|
|
37
41
|
`-H`, `--html`
|
38
|
-
|
42
|
+
: HTML escapes the data.
|
39
43
|
|
40
44
|
`-u`, `--uri`
|
41
|
-
|
45
|
+
: URI escapes the data.
|
42
46
|
|
43
47
|
`--http`
|
44
|
-
|
48
|
+
: HTTP escapes the data.
|
45
49
|
|
46
50
|
`-j`, `--js`
|
47
|
-
|
51
|
+
: JavaScript escapes the data.
|
48
52
|
|
49
53
|
`-S`, `--shell`
|
50
|
-
|
54
|
+
: Escapes the data as a Shell String.
|
51
55
|
|
52
56
|
`-P`, `--powershell`
|
53
|
-
|
57
|
+
: Escapes the data as a PowerShell String.
|
54
58
|
|
55
59
|
`-Q`, `--quoted-printable`
|
56
|
-
|
60
|
+
: Escapes the data as Quoted Printable.
|
57
61
|
|
58
62
|
`-R`, `--ruby`
|
59
|
-
|
63
|
+
: Escapes the data as a Ruby String.
|
60
64
|
|
61
65
|
`-x`, `--xml`
|
62
|
-
|
66
|
+
: XML escapes the data.
|
63
67
|
|
64
68
|
`-h`, `--help`
|
65
|
-
|
69
|
+
: Print help information.
|
66
70
|
|
67
71
|
## AUTHOR
|
68
72
|
|
@@ -70,4 +74,4 @@ Postmodern <postmodern.mod3@gmail.com>
|
|
70
74
|
|
71
75
|
## SEE ALSO
|
72
76
|
|
73
|
-
ronin-unescape(1)
|
77
|
+
[ronin-unescape](ronin-unescape.1.md)
|