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.1 CHANGED
@@ -1,55 +1,234 @@
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 1 "2023-02-01" Ronin "User Manuals"
4
- .LP
4
+ .SH NAME
5
+ .PP
6
+ ronin \- A Ruby toolkit for security research and development
5
7
  .SH SYNOPSIS
6
- .LP
7
- .HP
8
+ .PP
8
9
  \fBronin\fR \[lB]\fIoptions\fP\[rB] \[lB]\fICOMMAND\fP \[lB]\.\.\.\[rB]\[rB]
9
- .LP
10
10
  .SH DESCRIPTION
11
- .LP
12
11
  .PP
13
12
  Runs a Ronin \fICOMMAND\fP\.
14
- .LP
15
13
  .SH ARGUMENTS
16
- .LP
17
14
  .TP
18
15
  \fICOMMAND\fP
19
16
  The Ronin command to execute\.
20
- .LP
21
17
  .SH OPTIONS
22
- .LP
23
18
  .TP
24
- \fB-h\fR, \fB--help\fR
19
+ \fB\-V\fR, \fB\-\-version\fR
20
+ Prints the Ronin version and exits\.
21
+ .TP
22
+ \fB\-h\fR, \fB\-\-help\fR
25
23
  Print help information
26
- .LP
27
24
  .SH COMMANDS
28
- .LP
29
25
  .TP
30
- \fIconsole\fP
31
- Starts ronin\[cq]s interactive ruby console\.
32
- .LP
26
+ \fIasn\fP
27
+ Queries or searches for ASN information
28
+ .TP
29
+ \fIbanner\-grab\fP
30
+ Fetches the banner from one or more TCP services
31
+ .TP
32
+ \fIbitflip\fP
33
+ Prints every bit\-flip of the given string(s)
34
+ .TP
35
+ \fIbitsquat\fP
36
+ Finds bit\-flips of a domain
37
+ .TP
38
+ \fIcert\-dump\fP
39
+ Prints SSL\[sl]TLS certificate information
40
+ .TP
41
+ \fIcert\-gen\fP
42
+ Generates a new X509 certificate
43
+ .TP
44
+ \fIcert\-grab\fP
45
+ Downloads SSL\[sl]TLS certificates
46
+ .TP
47
+ \fIcompletion\fP
48
+ Manages the shell completion rules for ronin and all other ronin\-* commands
49
+ .TP
50
+ \fIdecode\fP, \fIdec\fP
51
+ Decodes each character of data from a variety of encodings
52
+ .TP
53
+ \fIdecrypt\fP
54
+ Decrypts data
55
+ .TP
56
+ \fIdns\fP
57
+ Performs a variety of DNS queries
58
+ .TP
59
+ \fIdns\-proxy\fP
60
+ Starts a DNS proxy
61
+ .TP
62
+ \fIemail\-addr\fP
63
+ Processes email addresses
64
+ .TP
65
+ \fIencode\fP, \fIenc\fP
66
+ Encodes each character of data into a variety of encodings
67
+ .TP
68
+ \fIencrypt\fP
69
+ Encrypts data
70
+ .TP
71
+ \fIentropy\fP
72
+ Filters lines by their entropy
73
+ .TP
74
+ \fIescape\fP
75
+ Escapes each special character for a variety of encodings
76
+ .TP
77
+ \fIextract\fP
78
+ Extracts common patterns from files\[sl]input
79
+ .TP
80
+ \fIgrep\fP
81
+ Searches files\[sl]input for common patterns
82
+ .TP
83
+ \fIhexdump\fP
84
+ Hexdumps data in a variaty of encodings and formats
85
+ .TP
86
+ \fIhighlight\fP
87
+ Syntax highlights file(s)\.
88
+ .TP
89
+ \fIhmac\fP
90
+ Calculates a Hash\-based Message Authentication Code (HMAC)
91
+ .TP
92
+ \fIhomoglyph\fP
93
+ Generates homoglyph equivalent words
94
+ .TP
95
+ \fIhost\fP
96
+ Processes hostname(s)
97
+ .TP
98
+ \fIhttp\fP
99
+ Send HTTP requests or spawn an interactive HTTP shell
100
+ .TP
101
+ \fIip\fP
102
+ Queries or processes IP addresses
103
+ .TP
104
+ \fIiprange\fP
105
+ Enumerates over IP ranges
106
+ .TP
107
+ \fIirb\fP
108
+ Start ronin\[cq]s interactive Ruby shell
109
+ .TP
110
+ \fImd5\fP
111
+ Calculates MD5 hashes of data
112
+ .TP
113
+ \fInetcat\fP, \fInc\fP
114
+ A netcat clone command
115
+ .TP
116
+ \fInew\fP
117
+ Creates a new Ruby project or a script
118
+ .TP
119
+ \fIpack\fP
120
+ Packs values into binary data
121
+ .TP
122
+ \fIproxy\fP
123
+ Starts a TCP\[sl]UDP\[sl]SSL\[sl]TLS intercept proxy server
124
+ .TP
125
+ \fIpublic\-suffix\-list\fP, \fIpublic\-suffixes\fP
126
+ Updates and parses the public suffix list file
127
+ .TP
128
+ \fIquote\fP
129
+ Produces quoted a string for a variety of programming languages
130
+ .TP
131
+ \fIrot\fP
132
+ Rotates each character of data within an alphabet
133
+ .TP
134
+ \fIsha1\fP
135
+ Calculates SHA1 hashes of data
136
+ .TP
137
+ \fIsha256\fP
138
+ Calculates SHA256 hashes of data
139
+ .TP
140
+ \fIsha512\fP
141
+ Calculates SHA512 hashes
142
+ .TP
143
+ \fIstrings\fP
144
+ Prints all strings within a file\[sl]stream belonging to the given character set
145
+ .TP
146
+ \fItips\fP
147
+ Prints a random tip on how to use ronin
148
+ .TP
149
+ \fItld\-list\fP, \fItlds\fP
150
+ Updates and parses the TLD list file
151
+ .TP
152
+ \fItypo\fP
153
+ Generates typos in words
154
+ .TP
155
+ \fItyposquat\fP
156
+ Finds typo squatted domains
157
+ .TP
158
+ \fIunescape\fP
159
+ Unescapes each escaped character from a variety of encodings
160
+ .TP
161
+ \fIunhexdump\fP
162
+ Decodes a hexdump back into raw data
163
+ .TP
164
+ \fIunpack\fP
165
+ Unpacks binary data
33
166
  .TP
34
- \fIexec\fP
35
- Executes a script or binary from a ronin repo\.
36
- .LP
167
+ \fIunquote\fP
168
+ Unquotes a double\[sl]single quoted string
37
169
  .TP
38
- \fIhelp\fP
39
- Lists available commands or shows help about a specific command\.
40
- .LP
170
+ \fIurl\fP
171
+ Parses URLs
41
172
  .TP
42
- \fInet\-proxy\fP
43
- Starts a TCP\[sl]UDP intercept proxy\.
44
- .LP
173
+ \fIxor\fP
174
+ XORs each character of data with a key\.
45
175
  .SH AUTHOR
46
- .LP
47
176
  .PP
48
177
  Postmodern
49
178
  .MT postmodern\.mod3\[at]gmail\.com
50
179
  .ME
51
- .LP
52
180
  .SH SEE ALSO
53
- .LP
54
181
  .PP
55
- ronin\-help(1)
182
+ .BR ronin\-help (1)
183
+ .BR ronin\-archive (1)
184
+ .BR ronin\-asn (1)
185
+ .BR ronin\-banner\-grab (1)
186
+ .BR ronin\-bitflip (1)
187
+ .BR ronin\-bitsquat (1)
188
+ .BR ronin\-cert\-dump (1)
189
+ .BR ronin\-cert\-gen (1)
190
+ .BR ronin\-cert\-grab (1)
191
+ .BR ronin\-completion (1)
192
+ .BR ronin\-decode (1)
193
+ .BR ronin\-decrypt (1)
194
+ .BR ronin\-dns (1)
195
+ .BR ronin\-dns\-proxy (1)
196
+ .BR ronin\-email\-addr (1)
197
+ .BR ronin\-encode (1)
198
+ .BR ronin\-encrypt (1)
199
+ .BR ronin\-entropy (1)
200
+ .BR ronin\-escape (1)
201
+ .BR ronin\-extract (1)
202
+ .BR ronin\-grep (1)
203
+ .BR ronin\-hexdump (1)
204
+ .BR ronin\-highlight (1)
205
+ .BR ronin\-hmac (1)
206
+ .BR ronin\-homoglyph (1)
207
+ .BR ronin\-host (1)
208
+ .BR ronin\-http (1)
209
+ .BR ronin\-ip (1)
210
+ .BR ronin\-iprange (1)
211
+ .BR ronin\-irb (1)
212
+ .BR ronin\-md5 (1)
213
+ .BR ronin\-netcat (1)
214
+ .BR ronin\-new (1)
215
+ .BR ronin\-pack (1)
216
+ .BR ronin\-proxy (1)
217
+ .BR ronin\-public\-suffix\-list (1)
218
+ .BR ronin\-quote (1)
219
+ .BR ronin\-rot (1)
220
+ .BR ronin\-sha1 (1)
221
+ .BR ronin\-sha256 (1)
222
+ .BR ronin\-sha512 (1)
223
+ .BR ronin\-strings (1)
224
+ .BR ronin\-tips (1)
225
+ .BR ronin\-tld\-list (1)
226
+ .BR ronin\-typo (1)
227
+ .BR ronin\-typosquat (1)
228
+ .BR ronin\-unarchive (1)
229
+ .BR ronin\-unescape (1)
230
+ .BR ronin\-unhexdump (1)
231
+ .BR ronin\-unpack (1)
232
+ .BR ronin\-unquote (1)
233
+ .BR ronin\-url (1)
234
+ .BR ronin\-xor (1)
data/man/ronin.1.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # ronin 1 "2023-02-01" Ronin "User Manuals"
2
2
 
3
+ ## NAME
4
+
5
+ ronin - A Ruby toolkit for security research and development
6
+
3
7
  ## SYNOPSIS
4
8
 
5
9
  `ronin` [*options*] [*COMMAND* [...]]
@@ -11,26 +15,167 @@ Runs a Ronin *COMMAND*.
11
15
  ## ARGUMENTS
12
16
 
13
17
  *COMMAND*
14
- The Ronin command to execute.
18
+ : The Ronin command to execute.
15
19
 
16
20
  ## OPTIONS
17
21
 
22
+ `-V`, `--version`
23
+ : Prints the Ronin version and exits.
24
+
18
25
  `-h`, `--help`
19
- Print help information
26
+ : Print help information
20
27
 
21
28
  ## COMMANDS
22
29
 
23
- *console*
24
- Starts ronin's interactive ruby console.
30
+ *asn*
31
+ : Queries or searches for ASN information
32
+
33
+ *banner-grab*
34
+ : Fetches the banner from one or more TCP services
35
+
36
+ *bitflip*
37
+ : Prints every bit-flip of the given string(s)
38
+
39
+ *bitsquat*
40
+ : Finds bit-flips of a domain
41
+
42
+ *cert-dump*
43
+ : Prints SSL/TLS certificate information
44
+
45
+ *cert-gen*
46
+ : Generates a new X509 certificate
47
+
48
+ *cert-grab*
49
+ : Downloads SSL/TLS certificates
50
+
51
+ *completion*
52
+ : Manages the shell completion rules for ronin and all other ronin-* commands
53
+
54
+ *decode*, *dec*
55
+ : Decodes each character of data from a variety of encodings
56
+
57
+ *decrypt*
58
+ : Decrypts data
59
+
60
+ *dns*
61
+ : Performs a variety of DNS queries
62
+
63
+ *dns-proxy*
64
+ : Starts a DNS proxy
65
+
66
+ *email-addr*
67
+ : Processes email addresses
68
+
69
+ *encode*, *enc*
70
+ : Encodes each character of data into a variety of encodings
71
+
72
+ *encrypt*
73
+ : Encrypts data
74
+
75
+ *entropy*
76
+ : Filters lines by their entropy
77
+
78
+ *escape*
79
+ : Escapes each special character for a variety of encodings
80
+
81
+ *extract*
82
+ : Extracts common patterns from files/input
83
+
84
+ *grep*
85
+ : Searches files/input for common patterns
86
+
87
+ *hexdump*
88
+ : Hexdumps data in a variaty of encodings and formats
89
+
90
+ *highlight*
91
+ : Syntax highlights file(s).
92
+
93
+ *hmac*
94
+ : Calculates a Hash-based Message Authentication Code (HMAC)
95
+
96
+ *homoglyph*
97
+ : Generates homoglyph equivalent words
98
+
99
+ *host*
100
+ : Processes hostname(s)
101
+
102
+ *http*
103
+ : Send HTTP requests or spawn an interactive HTTP shell
104
+
105
+ *ip*
106
+ : Queries or processes IP addresses
107
+
108
+ *iprange*
109
+ : Enumerates over IP ranges
110
+
111
+ *irb*
112
+ : Start ronin's interactive Ruby shell
113
+
114
+ *md5*
115
+ : Calculates MD5 hashes of data
116
+
117
+ *netcat*, *nc*
118
+ : A netcat clone command
119
+
120
+ *new*
121
+ : Creates a new Ruby project or a script
122
+
123
+ *pack*
124
+ : Packs values into binary data
125
+
126
+ *proxy*
127
+ : Starts a TCP/UDP/SSL/TLS intercept proxy server
128
+
129
+ *public-suffix-list*, *public-suffixes*
130
+ : Updates and parses the public suffix list file
131
+
132
+ *quote*
133
+ : Produces quoted a string for a variety of programming languages
134
+
135
+ *rot*
136
+ : Rotates each character of data within an alphabet
137
+
138
+ *sha1*
139
+ : Calculates SHA1 hashes of data
140
+
141
+ *sha256*
142
+ : Calculates SHA256 hashes of data
143
+
144
+ *sha512*
145
+ : Calculates SHA512 hashes
146
+
147
+ *strings*
148
+ : Prints all strings within a file/stream belonging to the given character set
149
+
150
+ *tips*
151
+ : Prints a random tip on how to use ronin
152
+
153
+ *tld-list*, *tlds*
154
+ : Updates and parses the TLD list file
155
+
156
+ *typo*
157
+ : Generates typos in words
158
+
159
+ *typosquat*
160
+ : Finds typo squatted domains
161
+
162
+ *unescape*
163
+ : Unescapes each escaped character from a variety of encodings
164
+
165
+ *unhexdump*
166
+ : Decodes a hexdump back into raw data
167
+
168
+ *unpack*
169
+ : Unpacks binary data
25
170
 
26
- *exec*
27
- Executes a script or binary from a ronin repo.
171
+ *unquote*
172
+ : Unquotes a double/single quoted string
28
173
 
29
- *help*
30
- Lists available commands or shows help about a specific command.
174
+ *url*
175
+ : Parses URLs
31
176
 
32
- *net-proxy*
33
- Starts a TCP/UDP intercept proxy.
177
+ *xor*
178
+ : XORs each character of data with a key.
34
179
 
35
180
  ## AUTHOR
36
181
 
@@ -38,4 +183,4 @@ Postmodern <postmodern.mod3@gmail.com>
38
183
 
39
184
  ## SEE ALSO
40
185
 
41
- ronin-help(1)
186
+ [ronin-help](ronin-help.1.md) [ronin-archive](ronin-archive.1.md) [ronin-asn](ronin-asn.1.md) [ronin-banner-grab](ronin-banner-grab.1.md) [ronin-bitflip](ronin-bitflip.1.md) [ronin-bitsquat](ronin-bitsquat.1.md) [ronin-cert-dump](ronin-cert-dump.1.md) [ronin-cert-gen](ronin-cert-gen.1.md) [ronin-cert-grab](ronin-cert-grab.1.md) [ronin-completion](ronin-completion.1.md) [ronin-decode](ronin-decode.1.md) [ronin-decrypt](ronin-decrypt.1.md) [ronin-dns](ronin-dns.1.md) [ronin-dns-proxy](ronin-dns-proxy.1.md) [ronin-email-addr](ronin-email-addr.1.md) [ronin-encode](ronin-encode.1.md) [ronin-encrypt](ronin-encrypt.1.md) [ronin-entropy](ronin-entropy.1.md) [ronin-escape](ronin-escape.1.md) [ronin-extract](ronin-extract.1.md) [ronin-grep](ronin-grep.1.md) [ronin-hexdump](ronin-hexdump.1.md) [ronin-highlight](ronin-highlight.1.md) [ronin-hmac](ronin-hmac.1.md) [ronin-homoglyph](ronin-homoglyph.1.md) [ronin-host](ronin-host.1.md) [ronin-http](ronin-http.1.md) [ronin-ip](ronin-ip.1.md) [ronin-iprange](ronin-iprange.1.md) [ronin-irb](ronin-irb.1.md) [ronin-md5](ronin-md5.1.md) [ronin-netcat](ronin-netcat.1.md) [ronin-new](ronin-new.1.md) [ronin-pack](ronin-pack.1.md) [ronin-proxy](ronin-proxy.1.md) [ronin-public-suffix-list](ronin-public-suffix-list.1.md) [ronin-quote](ronin-quote.1.md) [ronin-rot](ronin-rot.1.md) [ronin-sha1](ronin-sha1.1.md) [ronin-sha256](ronin-sha256.1.md) [ronin-sha512](ronin-sha512.1.md) [ronin-strings](ronin-strings.1.md) [ronin-tips](ronin-tips.1.md) [ronin-tld-list](ronin-tld-list.1.md) [ronin-typo](ronin-typo.1.md) [ronin-typosquat](ronin-typosquat.1.md) [ronin-unarchive](ronin-unarchive.1.md) [ronin-unescape](ronin-unescape.1.md) [ronin-unhexdump](ronin-unhexdump.1.md) [ronin-unpack](ronin-unpack.1.md) [ronin-unquote](ronin-unquote.1.md) [ronin-url](ronin-url.1.md) [ronin-xor](ronin-xor.1.md)
data/scripts/setup ADDED
@@ -0,0 +1,58 @@
1
+ #!/usr/bin/env bash
2
+
3
+ #
4
+ # Prints a log message.
5
+ #
6
+ function log()
7
+ {
8
+ if [[ -t 1 ]]; then
9
+ echo -e "\x1b[1m\x1b[32m>>>\x1b[0m \x1b[1m$1\x1b[0m"
10
+ else
11
+ echo ">>> $1"
12
+ fi
13
+ }
14
+
15
+ #
16
+ # Prints a warn message.
17
+ #
18
+ function warn()
19
+ {
20
+ if [[ -t 1 ]]; then
21
+ echo -e "\x1b[1m\x1b[33m***\x1b[0m \x1b[1m$1\x1b[0m" >&2
22
+ else
23
+ echo "*** $1" >&2
24
+ fi
25
+ }
26
+
27
+ #
28
+ # Prints an error message.
29
+ #
30
+ function error()
31
+ {
32
+ if [[ -t 1 ]]; then
33
+ echo -e "\x1b[1m\x1b[31m!!!\x1b[0m \x1b[1m$1\x1b[0m" >&2
34
+ else
35
+ echo "!!! $1" >&2
36
+ fi
37
+ }
38
+
39
+ #
40
+ # Prints an error message and exists with -1.
41
+ #
42
+ function fail()
43
+ {
44
+ error "$@"
45
+ exit -1
46
+ }
47
+
48
+ # default to installing gems into vendor/bundle
49
+ if [[ ! -f .bundle/config ]]; then
50
+ bundle config set --local path vendor/bundle >/dev/null || \
51
+ fail "Failed to run 'bundle config'"
52
+ fi
53
+
54
+ log "Installing gems ..."
55
+ bundle install || fail "Failed to run 'bundle install'!"
56
+
57
+ log "Setting up the project ..."
58
+ bundle exec rake setup || "Failed to run 'rake setup'!"