ronin 2.0.5 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (170) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ruby.yml +3 -3
  3. data/.gitignore +1 -0
  4. data/.rubocop.yml +5 -1
  5. data/.ruby-version +1 -1
  6. data/ChangeLog.md +62 -1
  7. data/Gemfile +66 -29
  8. data/README.md +165 -20
  9. data/Rakefile +9 -0
  10. data/data/completions/ronin +655 -0
  11. data/data/templates/dns_proxy.rb.erb +35 -0
  12. data/gemspec.yml +29 -15
  13. data/lib/ronin/cli/binary_template.rb +124 -0
  14. data/lib/ronin/cli/commands/archive.rb +104 -0
  15. data/lib/ronin/cli/commands/banner_grab.rb +2 -0
  16. data/lib/ronin/cli/commands/bitflip.rb +1 -1
  17. data/lib/ronin/cli/commands/bitsquat.rb +119 -0
  18. data/lib/ronin/cli/commands/cert_dump.rb +20 -4
  19. data/lib/ronin/cli/commands/cert_gen.rb +9 -19
  20. data/lib/ronin/cli/commands/cert_grab.rb +4 -3
  21. data/lib/ronin/cli/commands/completion.rb +115 -0
  22. data/lib/ronin/cli/commands/dns_proxy.rb +239 -0
  23. data/lib/ronin/cli/commands/http.rb +80 -8
  24. data/lib/ronin/cli/commands/ip.rb +101 -0
  25. data/lib/ronin/cli/commands/iprange.rb +25 -8
  26. data/lib/ronin/cli/commands/netcat.rb +2 -0
  27. data/lib/ronin/cli/commands/new/dns_listener.rb +37 -0
  28. data/lib/ronin/cli/commands/new/dns_proxy.rb +99 -0
  29. data/lib/ronin/cli/commands/new/exploit.rb +34 -0
  30. data/lib/ronin/cli/commands/new/http_listener.rb +37 -0
  31. data/lib/ronin/cli/commands/new/nokogiri.rb +33 -0
  32. data/lib/ronin/cli/commands/new/payload.rb +34 -0
  33. data/lib/ronin/cli/commands/new/project.rb +1 -1
  34. data/lib/ronin/cli/commands/new/script.rb +1 -1
  35. data/lib/ronin/cli/commands/new/web_app.rb +37 -0
  36. data/lib/ronin/cli/commands/new/web_server.rb +37 -0
  37. data/lib/ronin/cli/commands/new/web_spider.rb +37 -0
  38. data/lib/ronin/cli/commands/new.rb +3 -1
  39. data/lib/ronin/cli/commands/pack.rb +339 -0
  40. data/lib/ronin/cli/commands/public_suffix_list.rb +2 -0
  41. data/lib/ronin/cli/commands/tld_list.rb +2 -0
  42. data/lib/ronin/cli/commands/unarchive.rb +128 -0
  43. data/lib/ronin/cli/commands/unhexdump.rb +3 -1
  44. data/lib/ronin/cli/commands/unpack.rb +195 -0
  45. data/lib/ronin/cli/commands/url.rb +2 -0
  46. data/lib/ronin/cli/http_shell.rb +25 -0
  47. data/lib/ronin/cli.rb +10 -0
  48. data/lib/ronin/version.rb +1 -1
  49. data/man/ronin-archive.1.md +49 -0
  50. data/man/ronin-asn.1 +60 -77
  51. data/man/ronin-asn.1.md +25 -21
  52. data/man/ronin-banner-grab.1 +10 -21
  53. data/man/ronin-banner-grab.1.md +9 -5
  54. data/man/ronin-bitflip.1 +35 -61
  55. data/man/ronin-bitflip.1.md +30 -26
  56. data/man/ronin-bitsquat.1 +40 -0
  57. data/man/ronin-bitsquat.1.md +43 -0
  58. data/man/ronin-cert-dump.1 +44 -54
  59. data/man/ronin-cert-dump.1.md +18 -14
  60. data/man/ronin-cert-gen.1 +73 -94
  61. data/man/ronin-cert-gen.1.md +38 -34
  62. data/man/ronin-cert-grab.1 +29 -37
  63. data/man/ronin-cert-grab.1.md +12 -8
  64. data/man/ronin-completion.1 +78 -0
  65. data/man/ronin-completion.1.md +80 -0
  66. data/man/ronin-decode.1 +32 -63
  67. data/man/ronin-decode.1.md +29 -25
  68. data/man/ronin-decrypt.1 +42 -57
  69. data/man/ronin-decrypt.1.md +20 -16
  70. data/man/ronin-dns-proxy.1 +100 -0
  71. data/man/ronin-dns-proxy.1.md +70 -0
  72. data/man/ronin-dns.1 +10 -21
  73. data/man/ronin-dns.1.md +9 -5
  74. data/man/ronin-email-addr.1 +27 -40
  75. data/man/ronin-email-addr.1.md +15 -11
  76. data/man/ronin-encode.1 +93 -63
  77. data/man/ronin-encode.1.md +64 -26
  78. data/man/ronin-encrypt.1 +42 -57
  79. data/man/ronin-encrypt.1.md +20 -16
  80. data/man/ronin-entropy.1 +11 -21
  81. data/man/ronin-entropy.1.md +8 -4
  82. data/man/ronin-escape.1 +22 -46
  83. data/man/ronin-escape.1.md +22 -18
  84. data/man/ronin-extract.1 +74 -149
  85. data/man/ronin-extract.1.md +73 -69
  86. data/man/ronin-grep.1 +77 -155
  87. data/man/ronin-grep.1.md +76 -72
  88. data/man/ronin-help.1 +3 -14
  89. data/man/ronin-help.1.md +2 -2
  90. data/man/ronin-hexdump.1 +249 -265
  91. data/man/ronin-hexdump.1.md +93 -89
  92. data/man/ronin-highlight.1 +8 -18
  93. data/man/ronin-highlight.1.md +8 -4
  94. data/man/ronin-hmac.1 +17 -30
  95. data/man/ronin-hmac.1.md +14 -10
  96. data/man/ronin-homoglyph.1 +11 -22
  97. data/man/ronin-homoglyph.1.md +10 -6
  98. data/man/ronin-host.1 +23 -47
  99. data/man/ronin-host.1.md +22 -18
  100. data/man/ronin-http.1 +40 -69
  101. data/man/ronin-http.1.md +40 -30
  102. data/man/ronin-ip.1 +70 -80
  103. data/man/ronin-ip.1.md +44 -28
  104. data/man/ronin-iprange.1 +14 -22
  105. data/man/ronin-iprange.1.md +12 -5
  106. data/man/ronin-irb.1 +9 -17
  107. data/man/ronin-irb.1.md +7 -3
  108. data/man/ronin-md5.1 +13 -24
  109. data/man/ronin-md5.1.md +11 -7
  110. data/man/ronin-netcat.1 +25 -51
  111. data/man/ronin-netcat.1.md +25 -21
  112. data/man/ronin-new-dns-proxy.1 +45 -0
  113. data/man/ronin-new-dns-proxy.1.md +44 -0
  114. data/man/ronin-new-project.1 +32 -45
  115. data/man/ronin-new-project.1.md +11 -11
  116. data/man/ronin-new-script.1 +10 -22
  117. data/man/ronin-new-script.1.md +4 -4
  118. data/man/ronin-new.1 +56 -31
  119. data/man/ronin-new.1.md +48 -8
  120. data/man/ronin-pack.1 +979 -0
  121. data/man/ronin-pack.1.md +929 -0
  122. data/man/ronin-proxy.1 +37 -63
  123. data/man/ronin-proxy.1.md +29 -25
  124. data/man/ronin-public-suffix-list.1 +16 -32
  125. data/man/ronin-public-suffix-list.1.md +13 -9
  126. data/man/ronin-quote.1 +17 -36
  127. data/man/ronin-quote.1.md +17 -13
  128. data/man/ronin-rot.1 +26 -39
  129. data/man/ronin-rot.1.md +15 -11
  130. data/man/ronin-sha1.1 +13 -24
  131. data/man/ronin-sha1.1.md +11 -7
  132. data/man/ronin-sha256.1 +13 -24
  133. data/man/ronin-sha256.1.md +11 -7
  134. data/man/ronin-sha512.1 +13 -24
  135. data/man/ronin-sha512.1.md +11 -7
  136. data/man/ronin-strings.1 +30 -55
  137. data/man/ronin-strings.1.md +27 -23
  138. data/man/ronin-tips.1 +8 -16
  139. data/man/ronin-tips.1.md +7 -3
  140. data/man/ronin-tld-list.1 +16 -32
  141. data/man/ronin-tld-list.1.md +13 -9
  142. data/man/ronin-typo.1 +14 -28
  143. data/man/ronin-typo.1.md +13 -9
  144. data/man/ronin-typosquat.1 +15 -32
  145. data/man/ronin-typosquat.1.md +15 -11
  146. data/man/ronin-unarchive.1.md +41 -0
  147. data/man/ronin-unescape.1 +22 -46
  148. data/man/ronin-unescape.1.md +22 -18
  149. data/man/ronin-unhexdump.1 +81 -91
  150. data/man/ronin-unhexdump.1.md +16 -12
  151. data/man/ronin-unpack.1 +980 -0
  152. data/man/ronin-unpack.1.md +920 -0
  153. data/man/ronin-unquote.1 +17 -36
  154. data/man/ronin-unquote.1.md +17 -13
  155. data/man/ronin-url.1 +19 -40
  156. data/man/ronin-url.1.md +19 -15
  157. data/man/ronin-xor.1 +14 -28
  158. data/man/ronin-xor.1.md +13 -9
  159. data/man/ronin.1 +208 -29
  160. data/man/ronin.1.md +156 -11
  161. data/scripts/setup +58 -0
  162. metadata +157 -67
  163. data/lib/ronin/config.rb +0 -95
  164. /data/data/{new → templates}/project/.gitignore +0 -0
  165. /data/data/{new → templates}/project/.ruby-version.erb +0 -0
  166. /data/data/{new → templates}/project/Dockerfile.erb +0 -0
  167. /data/data/{new → templates}/project/Gemfile.erb +0 -0
  168. /data/data/{new → templates}/project/Rakefile +0 -0
  169. /data/data/{new → templates}/project/project.rb.erb +0 -0
  170. /data/data/{new → templates}/script.rb.erb +0 -0
data/man/ronin-decode.1 CHANGED
@@ -1,127 +1,96 @@
1
- .\" Generated by kramdown-man 0.1.8
1
+ .\" Generated by kramdown-man 1.0.1
2
2
  .\" https://github.com/postmodern/kramdown-man#readme
3
3
  .TH ronin-decode 1 "2023-02-01" Ronin "User Manuals"
4
- .LP
4
+ .SH NAME
5
+ .PP
6
+ ronin\-decode \- Decodes each character of data from a variety of encodings
5
7
  .SH SYNOPSIS
6
- .LP
7
- .HP
8
+ .PP
8
9
  \fBronin decode \fR \[lB]\fIoptions\fP\[rB] \[lB]\fIFILE\fP \.\.\.\[rB]
9
- .LP
10
10
  .SH DESCRIPTION
11
- .LP
12
11
  .PP
13
12
  Decodes each character of the given data from a variety of formats\.
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-f\fR, \fB--file\fR \fIFILE\fP
20
+ \fB\-f\fR, \fB\-\-file\fR \fIFILE\fP
26
21
  Optional file to process\.
27
- .LP
28
22
  .TP
29
- \fB--string\fR \fISTRING\fP
23
+ \fB\-\-string\fR \fISTRING\fP
30
24
  Optional string to process\.
31
- .LP
32
25
  .TP
33
- \fB-M\fR, \fB--multiline\fR
26
+ \fB\-M\fR, \fB\-\-multiline\fR
34
27
  Process each line of input separately\.
35
- .LP
36
28
  .TP
37
- \fB-n\fR, \fB--keep-newlines\fR
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--base16\fR
32
+ \fB\-\-base16\fR
42
33
  Base16 decodes the data\.
43
- .LP
44
34
  .TP
45
- \fB--base32\fR
35
+ \fB\-\-base32\fR
46
36
  Base32 decodes the data\.
47
- .LP
48
- .HP
49
- \fB-b\fR, \fB--base64\fR\[lB]\fB=\fR\fIstrict\fP\[or]\fIurl\fP\[rB]
37
+ .TP
38
+ \fB\-b\fR, \fB\-\-base64\fR\[lB]\fB\[eq]\fR\fIstrict\fP\[or]\fIurl\fP\[rB]
50
39
  Base64 decodes the data\. If the \fBstrict\fR or \fBurl\fR option value is given,
51
40
  it will enable \fBstrict\fR or \fBurl\fR Base64 encoding mode, respectively\.
52
- .LP
53
41
  .TP
54
- \fB-z\fR, \fB--zlib\fR
42
+ \fB\-z\fR, \fB\-\-zlib\fR
55
43
  Zlib uncompresses the data\.
56
- .LP
57
44
  .TP
58
- \fB-g\fR, \fB--gzip\fR
45
+ \fB\-g\fR, \fB\-\-gzip\fR
59
46
  gzip uncompresses the data\.
60
- .LP
61
- .HP
62
- \fB-c, \fR\-\-c\`
47
+ .TP
48
+ \fB\-c, \fR\-\-c\`
63
49
  Decodes the data as a C string\.
64
- .LP
65
50
  .TP
66
- \fB-X\fR, \fB--hex\fR
67
- Hex decode the data (ex: \fB414141...\fR)\.
68
- .LP
51
+ \fB\-X\fR, \fB\-\-hex\fR
52
+ Hex decode the data (ex: \fB414141\.\.\.\fR)\.
69
53
  .TP
70
- \fB-H\fR, \fB--html\fR
54
+ \fB\-H\fR, \fB\-\-html\fR
71
55
  HTML decodes the data\.
72
- .LP
73
56
  .TP
74
- \fB-u\fR, \fB--uri\fR
57
+ \fB\-u\fR, \fB\-\-uri\fR
75
58
  URI decodes the data\.
76
- .LP
77
59
  .TP
78
- \fB--http\fR
60
+ \fB\-\-http\fR
79
61
  HTTP decodes the data\.
80
- .LP
81
62
  .TP
82
- \fB-j\fR, \fB--js\fR
63
+ \fB\-j\fR, \fB\-\-js\fR
83
64
  JavaScript decodes the data\.
84
- .LP
85
65
  .TP
86
- \fB-S\fR, \fB--shell\fR
66
+ \fB\-S\fR, \fB\-\-shell\fR
87
67
  Decodes the data as a Shell String\.
88
- .LP
89
68
  .TP
90
- \fB-P\fR, \fB--powershell\fR
69
+ \fB\-P\fR, \fB\-\-powershell\fR
91
70
  Decodes the data as a PowerShell String\.
92
- .LP
93
71
  .TP
94
- \fB--punycode\fR
72
+ \fB\-\-punycode\fR
95
73
  Decodes the data as Punycode\.
96
- .LP
97
74
  .TP
98
- \fB-Q\fR, \fB--quoted-printable\fR
75
+ \fB\-Q\fR, \fB\-\-quoted\-printable\fR
99
76
  Decodes the data as Quoted Printable\.
100
- .LP
101
77
  .TP
102
- \fB-R\fR, \fB--ruby\fR
78
+ \fB\-R\fR, \fB\-\-ruby\fR
103
79
  Ruby decodes the data\.
104
- .LP
105
80
  .TP
106
- \fB--uudecode\fR
81
+ \fB\-\-uudecode\fR
107
82
  uudecodes the data\.
108
- .LP
109
83
  .TP
110
- \fB-x\fR, \fB--xml\fR
84
+ \fB\-x\fR, \fB\-\-xml\fR
111
85
  XML decodes the data\.
112
- .LP
113
86
  .TP
114
- \fB-h\fR, \fB--help\fR
87
+ \fB\-h\fR, \fB\-\-help\fR
115
88
  Print help information\.
116
- .LP
117
89
  .SH AUTHOR
118
- .LP
119
90
  .PP
120
91
  Postmodern
121
92
  .MT postmodern\.mod3\[at]gmail\.com
122
93
  .ME
123
- .LP
124
94
  .SH SEE ALSO
125
- .LP
126
95
  .PP
127
- ronin\-encode(1)
96
+ .BR ronin\-encode (1)
@@ -1,5 +1,9 @@
1
1
  # ronin-decode 1 "2023-02-01" Ronin "User Manuals"
2
2
 
3
+ ## NAME
4
+
5
+ ronin-decode - Decodes each character of data from a variety of encodings
6
+
3
7
  ## SYNOPSIS
4
8
 
5
9
  `ronin decode ` [*options*] [*FILE* ...]
@@ -11,80 +15,80 @@ Decodes each character of the given data from a variety of formats.
11
15
  ## ARGUMENTS
12
16
 
13
17
  *FILE*
14
- The optional file to read and process. If no *FILE* arguments are given,
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
- Optional file to process.
24
+ : Optional file to process.
21
25
 
22
26
  `--string` *STRING*
23
- Optional string to process.
27
+ : Optional string to process.
24
28
 
25
29
  `-M`, `--multiline`
26
- Process each line of input separately.
30
+ : Process each line of input separately.
27
31
 
28
32
  `-n`, `--keep-newlines`
29
- Preserves newlines at the end of each line.
33
+ : Preserves newlines at the end of each line.
30
34
 
31
35
  `--base16`
32
- Base16 decodes the data.
36
+ : Base16 decodes the data.
33
37
 
34
38
  `--base32`
35
- Base32 decodes the data.
39
+ : Base32 decodes the data.
36
40
 
37
41
  `-b`, `--base64`[`=`*strict*\|*url*]
38
- Base64 decodes the data. If the `strict` or `url` option value is given,
42
+ : Base64 decodes the data. If the `strict` or `url` option value is given,
39
43
  it will enable `strict` or `url` Base64 encoding mode, respectively.
40
44
 
41
45
  `-z`, `--zlib`
42
- Zlib uncompresses the data.
46
+ : Zlib uncompresses the data.
43
47
 
44
48
  `-g`, `--gzip`
45
- gzip uncompresses the data.
49
+ : gzip uncompresses the data.
46
50
 
47
51
  `-c, `--c`
48
- Decodes the data as a C string.
52
+ : Decodes the data as a C string.
49
53
 
50
54
  `-X`, `--hex`
51
- Hex decode the data (ex: `414141...`).
55
+ : Hex decode the data (ex: `414141...`).
52
56
 
53
57
  `-H`, `--html`
54
- HTML decodes the data.
58
+ : HTML decodes the data.
55
59
 
56
60
  `-u`, `--uri`
57
- URI decodes the data.
61
+ : URI decodes the data.
58
62
 
59
63
  `--http`
60
- HTTP decodes the data.
64
+ : HTTP decodes the data.
61
65
 
62
66
  `-j`, `--js`
63
- JavaScript decodes the data.
67
+ : JavaScript decodes the data.
64
68
 
65
69
  `-S`, `--shell`
66
- Decodes the data as a Shell String.
70
+ : Decodes the data as a Shell String.
67
71
 
68
72
  `-P`, `--powershell`
69
- Decodes the data as a PowerShell String.
73
+ : Decodes the data as a PowerShell String.
70
74
 
71
75
  `--punycode`
72
- Decodes the data as Punycode.
76
+ : Decodes the data as Punycode.
73
77
 
74
78
  `-Q`, `--quoted-printable`
75
- Decodes the data as Quoted Printable.
79
+ : Decodes the data as Quoted Printable.
76
80
 
77
81
  `-R`, `--ruby`
78
- Ruby decodes the data.
82
+ : Ruby decodes the data.
79
83
 
80
84
  `--uudecode`
81
- uudecodes the data.
85
+ : uudecodes the data.
82
86
 
83
87
  `-x`, `--xml`
84
- XML decodes the data.
88
+ : XML decodes the data.
85
89
 
86
90
  `-h`, `--help`
87
- Print help information.
91
+ : Print help information.
88
92
 
89
93
  ## AUTHOR
90
94
 
@@ -92,4 +96,4 @@ Postmodern <postmodern.mod3@gmail.com>
92
96
 
93
97
  ## SEE ALSO
94
98
 
95
- ronin-encode(1)
99
+ [ronin-encode](ronin-encode.1.md)
data/man/ronin-decrypt.1 CHANGED
@@ -1,105 +1,90 @@
1
- .\" Generated by kramdown-man 0.1.8
1
+ .\" Generated by kramdown-man 1.0.1
2
2
  .\" https://github.com/postmodern/kramdown-man#readme
3
3
  .TH ronin-decrypt 1 "2023-02-01" Ronin "User Manuals"
4
- .LP
4
+ .SH NAME
5
+ .PP
6
+ ronin\-decrypt \- Decrypts data
5
7
  .SH SYNOPSIS
6
- .LP
7
- .HP
8
+ .PP
8
9
  \fBronin decrypt\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 decrypt\. 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-k\fR, \fB--key\fR \fISTRING\fP
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-K\fR, \fB--key-file\fR \fIFILE\fP
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-c\fR, \fB--cipher\fR \fINAME\fP
34
- The cipher to decrypt with\. See \fB--list-ciphers\fR for a list of supported
35
- ciphers\. Default to \fBaes-256-cbc\fR if not given\.
36
- .LP
26
+ \fB\-c\fR, \fB\-\-cipher\fR \fINAME\fP
27
+ The cipher to decrypt 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-P\fR, \fB--password\fR \fIPASSWORD\fP
30
+ \fB\-P\fR, \fB\-\-password\fR \fIPASSWORD\fP
39
31
  The password to decrypt with\.
40
- .LP
41
32
  .TP
42
- \fB-H\fR, \fB--hash\fR \fBmd5\fR\[or]\fBsha1\fR\[or]\fBsha256\fR\[or]\fBsha512\fR
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--iv\fR \fISTRING\fP
36
+ \fB\-\-iv\fR \fISTRING\fP
47
37
  Sets the Initial Vector (IV) value of the cipher\.
48
- .LP
49
38
  .TP
50
- \fB--padding\fR \fINUM\fP
39
+ \fB\-\-padding\fR \fINUM\fP
51
40
  Sets the padding size, in bytes, of the decryption cipher\.
52
- .LP
53
41
  .TP
54
- \fB-b\fR, \fB--block-size\fR \fINUM\fP
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--list-ciphers\fR
45
+ \fB\-\-list\-ciphers\fR
59
46
  List the supported ciphers and exits\.
60
- .LP
61
47
  .TP
62
- \fB-h\fR, \fB--help\fR
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
  Decrypt a file using AES\-256 (CBC mode) with a password:
69
- .LP
70
- .nf
71
- \[Do] ronin decrypt \-\-cipher aes\-256\-cbc \-\-password \[dq]\.\.\.\[dq] encrypted\.bin
72
- .fi
73
- .LP
53
+ .PP
54
+ .RS 4
55
+ .EX
56
+ \[Do] ronin decrypt \-\-cipher aes\-256\-cbc \-\-password \[dq]\.\.\.\[dq] encrypted\.bin
57
+ .EE
58
+ .RE
74
59
  .PP
75
60
  Decrypt a file using a raw key string:
76
- .LP
77
- .nf
78
- \[Do] ronin decrypt \-\-cipher aes\-256\-cbc \-\-key \[dq]12345abcdef\.\.\.\[dq] encrypted\.bin
79
- .fi
80
- .LP
61
+ .PP
62
+ .RS 4
63
+ .EX
64
+ \[Do] ronin decrypt \-\-cipher aes\-256\-cbc \-\-key \[dq]12345abcdef\.\.\.\[dq] encrypted\.bin
65
+ .EE
66
+ .RE
81
67
  .PP
82
68
  Decrypt a file using a raw key read from a file:
83
- .LP
84
- .nf
85
- \[Do] ronin decrypt \-\-cipher aes\-256\-cbc \-\-key\-file key\.bin encrypted\.bin
86
- .fi
87
- .LP
69
+ .PP
70
+ .RS 4
71
+ .EX
72
+ \[Do] ronin decrypt \-\-cipher aes\-256\-cbc \-\-key\-file key\.bin encrypted\.bin
73
+ .EE
74
+ .RE
88
75
  .PP
89
76
  Specifying a custom IV (initialization vector):
90
- .LP
91
- .nf
92
- \[Do] ronin decrypt \-\-cipher aes\-256\-cbc \-\-key \[dq]\.\.\.\[dq] \-\-iv \[dq]\.\.\.\[dq] encrypted\.bin
93
- .fi
94
- .LP
77
+ .PP
78
+ .RS 4
79
+ .EX
80
+ \[Do] ronin decrypt \-\-cipher aes\-256\-cbc \-\-key \[dq]\.\.\.\[dq] \-\-iv \[dq]\.\.\.\[dq] 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\-encrypt(1)
90
+ .BR ronin\-encrypt (1)
@@ -1,5 +1,9 @@
1
1
  # ronin-decrypt 1 "2023-02-01" Ronin "User Manuals"
2
2
 
3
+ ## NAME
4
+
5
+ ronin-decrypt - Decrypts data
6
+
3
7
  ## SYNOPSIS
4
8
 
5
9
  `ronin decrypt` [*options*] [*FILE* ...]
@@ -11,59 +15,59 @@ Encrypts data.
11
15
  ## ARGUMENTS
12
16
 
13
17
  *FILE*
14
- The optional file to read and decrypt. If no *FILE* arguments are given,
18
+ : The optional file to read and decrypt. 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
- The raw key string for the cipher.
24
+ : The raw key string for the cipher.
21
25
 
22
26
  `-K`, `--key-file` *FILE*
23
- Reads the key string from the file.
27
+ : Reads the key string from the file.
24
28
 
25
29
  `-c`, `--cipher` *NAME*
26
- The cipher to decrypt with. See `--list-ciphers` for a list of supported
30
+ : The cipher to decrypt 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
- The password to decrypt with.
34
+ : The password to decrypt with.
31
35
 
32
36
  `-H`, `--hash` `md5`\|`sha1`\|`sha256`\|`sha512`
33
- The hash algorithm to use for the password. Default to `sha256` if not given.
37
+ : The hash algorithm to use for the password. Default to `sha256` if not given.
34
38
 
35
39
  `--iv` *STRING*
36
- Sets the Initial Vector (IV) value of the cipher.
40
+ : Sets the Initial Vector (IV) value of the cipher.
37
41
 
38
42
  `--padding` *NUM*
39
- Sets the padding size, in bytes, of the decryption cipher.
43
+ : Sets the padding size, in bytes, of the decryption cipher.
40
44
 
41
45
  `-b`, `--block-size` *NUM*
42
- The size, in bytes, to read data in. Default to `16384` if not given.
46
+ : The size, in bytes, to read data in. Default to `16384` if not given.
43
47
 
44
48
  `--list-ciphers`
45
- List the supported ciphers and exits.
49
+ : List the supported ciphers and exits.
46
50
 
47
51
  `-h`, `--help`
48
- Print help information.
52
+ : Print help information.
49
53
 
50
54
  ## EXAMPLES
51
55
 
52
56
  Decrypt a file using AES-256 (CBC mode) with a password:
53
57
 
54
- $ ronin decrypt --cipher aes-256-cbc --password "..." encrypted.bin
58
+ $ ronin decrypt --cipher aes-256-cbc --password "..." encrypted.bin
55
59
 
56
60
  Decrypt a file using a raw key string:
57
61
 
58
- $ ronin decrypt --cipher aes-256-cbc --key "12345abcdef..." encrypted.bin
62
+ $ ronin decrypt --cipher aes-256-cbc --key "12345abcdef..." encrypted.bin
59
63
 
60
64
  Decrypt a file using a raw key read from a file:
61
65
 
62
- $ ronin decrypt --cipher aes-256-cbc --key-file key.bin encrypted.bin
66
+ $ ronin decrypt --cipher aes-256-cbc --key-file key.bin encrypted.bin
63
67
 
64
68
  Specifying a custom IV (initialization vector):
65
69
 
66
- $ ronin decrypt --cipher aes-256-cbc --key "..." --iv "..." encrypted.bin
70
+ $ ronin decrypt --cipher aes-256-cbc --key "..." --iv "..." 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-encrypt(1)
78
+ [ronin-encrypt](ronin-encrypt.1.md)
@@ -0,0 +1,100 @@
1
+ .\" Generated by kramdown-man 1.0.1
2
+ .\" https://github.com/postmodern/kramdown-man#readme
3
+ .TH ronin-dns-proxy 1 "2024-01-01" Ronin "User Manuals"
4
+ .SH NAME
5
+ .PP
6
+ ronin\-dns\-proxy \- Starts a DNS proxy
7
+ .SH SYNOPSIS
8
+ .PP
9
+ \fBronin dns\-proxy\fR \[lB]\fIoptions\fP\[rB] \[lB]\fIHOST\fP\[rB] \fIPORT\fP
10
+ .SH DESCRIPTION
11
+ .PP
12
+ Starts a DNS proxy that can intercept DNS queries and forward other queries to
13
+ upstream DNS nameservers\.
14
+ .SH ARGUMENTS
15
+ .TP
16
+ \fIHOST\fP
17
+ The optional IP address to listen on\.
18
+ .TP
19
+ \fIPORT\fP
20
+ The port number to listen on\.
21
+ .SH OPTIONS
22
+ .TP
23
+ \fB\-n\fR, \fB\-\-nameserver\fR \fIIP\fP
24
+ A nameserver IP address to foreward DNS queries to\.
25
+ .TP
26
+ \fB\-r\fR, \fB\-\-rule\fR \fIRECORD\[ru]TYPE\fP\fB:\fR\fINAME\fP\fB:\fR\fIRESULT\fP\[or]\fIRECORD\[ru]TYPE\fP\fB:\[sl]\fR\fIREGEXP\fP\fB\[sl]:\fR\fIRESULT\fP
27
+ Adds a rule to the DNS proxy\. Each rule consists of a \fIRECORD\[ru]TYPE\fP, \fINAME\fP,
28
+ and a \fIRESULT\fP\.
29
+ .RS
30
+ .PP
31
+ The \fIRECORD\[ru]TYPE\fP is a DNS record type:
32
+ .RE
33
+ .RS
34
+ .RS
35
+ .IP \(bu 2
36
+ \fBA\fR
37
+ .IP \(bu 2
38
+ \fBAAAA\fR
39
+ .IP \(bu 2
40
+ \fBANY\fR
41
+ .IP \(bu 2
42
+ \fBCNAME\fR
43
+ .IP \(bu 2
44
+ \fBHINFO\fR
45
+ .IP \(bu 2
46
+ \fBLOC\fR
47
+ .IP \(bu 2
48
+ \fBMINFO\fR
49
+ .IP \(bu 2
50
+ \fBMX\fR
51
+ .IP \(bu 2
52
+ \fBNS\fR
53
+ .IP \(bu 2
54
+ \fBPTR\fR
55
+ .IP \(bu 2
56
+ \fBSOA\fR
57
+ .IP \(bu 2
58
+ \fBSRV\fR
59
+ .IP \(bu 2
60
+ \fBTXT\fR
61
+ .IP \(bu 2
62
+ \fBWKS\fR
63
+ .RE
64
+ .RE
65
+ .RS
66
+ .PP
67
+ The \fINAME\fP is the host name of the record\.
68
+ If the \fINAME\fP starts with a \fB\[sl]\fR and ends with a \fB\[sl]\fR, then it will be treated
69
+ as a Regex\.
70
+ .RE
71
+ .RS
72
+ .PP
73
+ The \fIRESULT\fP is either the result value or an DNS error code:
74
+ .RE
75
+ .RS
76
+ .RS
77
+ .IP \(bu 2
78
+ \fBNoError\fR
79
+ .IP \(bu 2
80
+ \fBFormErr\fR
81
+ .IP \(bu 2
82
+ \fBServFail\fR
83
+ .IP \(bu 2
84
+ \fBNXDomain\fR
85
+ .IP \(bu 2
86
+ \fBNotImp\fR
87
+ .IP \(bu 2
88
+ \fBRefused\fR
89
+ .IP \(bu 2
90
+ \fBNotAuth\fR
91
+ .RE
92
+ .RE
93
+ .SH AUTHOR
94
+ .PP
95
+ Postmodern
96
+ .MT postmodern\.mod3\[at]gmail\.com
97
+ .ME
98
+ .SH SEE ALSO
99
+ .PP
100
+ .BR ronin\-dns (1)
@@ -0,0 +1,70 @@
1
+ # ronin-dns-proxy 1 "2024-01-01" Ronin "User Manuals"
2
+
3
+ ## NAME
4
+
5
+ ronin-dns-proxy - Starts a DNS proxy
6
+
7
+ ## SYNOPSIS
8
+
9
+ `ronin dns-proxy` [*options*] [*HOST*] *PORT*
10
+
11
+ ## DESCRIPTION
12
+
13
+ Starts a DNS proxy that can intercept DNS queries and forward other queries to
14
+ upstream DNS nameservers.
15
+
16
+ ## ARGUMENTS
17
+
18
+ *HOST*
19
+ : The optional IP address to listen on.
20
+
21
+ *PORT*
22
+ : The port number to listen on.
23
+
24
+ ## OPTIONS
25
+
26
+ `-n`, `--nameserver` *IP*
27
+ : A nameserver IP address to foreward DNS queries to.
28
+
29
+ `-r`, `--rule` *RECORD_TYPE*`:`*NAME*`:`*RESULT*\|*RECORD_TYPE*`:/`*REGEXP*`/:`*RESULT*
30
+ : Adds a rule to the DNS proxy. Each rule consists of a *RECORD_TYPE*, *NAME*,
31
+ and a *RESULT*.
32
+
33
+ The *RECORD_TYPE* is a DNS record type:
34
+
35
+ * `A`
36
+ * `AAAA`
37
+ * `ANY`
38
+ * `CNAME`
39
+ * `HINFO`
40
+ * `LOC`
41
+ * `MINFO`
42
+ * `MX`
43
+ * `NS`
44
+ * `PTR`
45
+ * `SOA`
46
+ * `SRV`
47
+ * `TXT`
48
+ * `WKS`
49
+
50
+ The *NAME* is the host name of the record.
51
+ If the *NAME* starts with a `/` and ends with a `/`, then it will be treated
52
+ as a Regex.
53
+
54
+ The *RESULT* is either the result value or an DNS error code:
55
+
56
+ * `NoError`
57
+ * `FormErr`
58
+ * `ServFail`
59
+ * `NXDomain`
60
+ * `NotImp`
61
+ * `Refused`
62
+ * `NotAuth`
63
+
64
+ ## AUTHOR
65
+
66
+ Postmodern <postmodern.mod3@gmail.com>
67
+
68
+ ## SEE ALSO
69
+
70
+ [ronin-dns](ronin-dns.1.md)