ronin 2.0.5 → 2.1.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (169) 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/ChangeLog.md +56 -1
  6. data/Gemfile +66 -29
  7. data/README.md +162 -17
  8. data/Rakefile +9 -0
  9. data/data/completions/ronin +655 -0
  10. data/data/templates/dns_proxy.rb.erb +35 -0
  11. data/gemspec.yml +27 -13
  12. data/lib/ronin/cli/binary_template.rb +124 -0
  13. data/lib/ronin/cli/commands/archive.rb +104 -0
  14. data/lib/ronin/cli/commands/banner_grab.rb +2 -0
  15. data/lib/ronin/cli/commands/bitflip.rb +1 -1
  16. data/lib/ronin/cli/commands/bitsquat.rb +119 -0
  17. data/lib/ronin/cli/commands/cert_dump.rb +20 -4
  18. data/lib/ronin/cli/commands/cert_gen.rb +9 -19
  19. data/lib/ronin/cli/commands/cert_grab.rb +4 -3
  20. data/lib/ronin/cli/commands/completion.rb +115 -0
  21. data/lib/ronin/cli/commands/dns_proxy.rb +235 -0
  22. data/lib/ronin/cli/commands/http.rb +80 -8
  23. data/lib/ronin/cli/commands/ip.rb +101 -0
  24. data/lib/ronin/cli/commands/iprange.rb +25 -8
  25. data/lib/ronin/cli/commands/netcat.rb +2 -0
  26. data/lib/ronin/cli/commands/new/dns_listener.rb +37 -0
  27. data/lib/ronin/cli/commands/new/dns_proxy.rb +99 -0
  28. data/lib/ronin/cli/commands/new/exploit.rb +34 -0
  29. data/lib/ronin/cli/commands/new/http_listener.rb +37 -0
  30. data/lib/ronin/cli/commands/new/nokogiri.rb +33 -0
  31. data/lib/ronin/cli/commands/new/payload.rb +34 -0
  32. data/lib/ronin/cli/commands/new/project.rb +1 -1
  33. data/lib/ronin/cli/commands/new/script.rb +1 -1
  34. data/lib/ronin/cli/commands/new/web_app.rb +37 -0
  35. data/lib/ronin/cli/commands/new/web_server.rb +37 -0
  36. data/lib/ronin/cli/commands/new/web_spider.rb +37 -0
  37. data/lib/ronin/cli/commands/new.rb +3 -1
  38. data/lib/ronin/cli/commands/pack.rb +339 -0
  39. data/lib/ronin/cli/commands/public_suffix_list.rb +2 -0
  40. data/lib/ronin/cli/commands/tld_list.rb +2 -0
  41. data/lib/ronin/cli/commands/unarchive.rb +128 -0
  42. data/lib/ronin/cli/commands/unhexdump.rb +3 -1
  43. data/lib/ronin/cli/commands/unpack.rb +195 -0
  44. data/lib/ronin/cli/commands/url.rb +2 -0
  45. data/lib/ronin/cli/http_shell.rb +25 -0
  46. data/lib/ronin/cli.rb +10 -0
  47. data/lib/ronin/version.rb +1 -1
  48. data/man/ronin-archive.1.md +49 -0
  49. data/man/ronin-asn.1 +60 -77
  50. data/man/ronin-asn.1.md +25 -21
  51. data/man/ronin-banner-grab.1 +10 -21
  52. data/man/ronin-banner-grab.1.md +9 -5
  53. data/man/ronin-bitflip.1 +35 -61
  54. data/man/ronin-bitflip.1.md +30 -26
  55. data/man/ronin-bitsquat.1 +40 -0
  56. data/man/ronin-bitsquat.1.md +43 -0
  57. data/man/ronin-cert-dump.1 +44 -54
  58. data/man/ronin-cert-dump.1.md +18 -14
  59. data/man/ronin-cert-gen.1 +73 -94
  60. data/man/ronin-cert-gen.1.md +38 -34
  61. data/man/ronin-cert-grab.1 +29 -37
  62. data/man/ronin-cert-grab.1.md +12 -8
  63. data/man/ronin-completion.1 +78 -0
  64. data/man/ronin-completion.1.md +80 -0
  65. data/man/ronin-decode.1 +32 -63
  66. data/man/ronin-decode.1.md +29 -25
  67. data/man/ronin-decrypt.1 +42 -57
  68. data/man/ronin-decrypt.1.md +20 -16
  69. data/man/ronin-dns-proxy.1 +100 -0
  70. data/man/ronin-dns-proxy.1.md +70 -0
  71. data/man/ronin-dns.1 +10 -21
  72. data/man/ronin-dns.1.md +9 -5
  73. data/man/ronin-email-addr.1 +27 -40
  74. data/man/ronin-email-addr.1.md +15 -11
  75. data/man/ronin-encode.1 +93 -63
  76. data/man/ronin-encode.1.md +64 -26
  77. data/man/ronin-encrypt.1 +42 -57
  78. data/man/ronin-encrypt.1.md +20 -16
  79. data/man/ronin-entropy.1 +11 -21
  80. data/man/ronin-entropy.1.md +8 -4
  81. data/man/ronin-escape.1 +22 -46
  82. data/man/ronin-escape.1.md +22 -18
  83. data/man/ronin-extract.1 +74 -149
  84. data/man/ronin-extract.1.md +73 -69
  85. data/man/ronin-grep.1 +77 -155
  86. data/man/ronin-grep.1.md +76 -72
  87. data/man/ronin-help.1 +3 -14
  88. data/man/ronin-help.1.md +2 -2
  89. data/man/ronin-hexdump.1 +249 -265
  90. data/man/ronin-hexdump.1.md +93 -89
  91. data/man/ronin-highlight.1 +8 -18
  92. data/man/ronin-highlight.1.md +8 -4
  93. data/man/ronin-hmac.1 +17 -30
  94. data/man/ronin-hmac.1.md +14 -10
  95. data/man/ronin-homoglyph.1 +11 -22
  96. data/man/ronin-homoglyph.1.md +10 -6
  97. data/man/ronin-host.1 +23 -47
  98. data/man/ronin-host.1.md +22 -18
  99. data/man/ronin-http.1 +40 -69
  100. data/man/ronin-http.1.md +40 -30
  101. data/man/ronin-ip.1 +70 -80
  102. data/man/ronin-ip.1.md +44 -28
  103. data/man/ronin-iprange.1 +14 -22
  104. data/man/ronin-iprange.1.md +12 -5
  105. data/man/ronin-irb.1 +9 -17
  106. data/man/ronin-irb.1.md +7 -3
  107. data/man/ronin-md5.1 +13 -24
  108. data/man/ronin-md5.1.md +11 -7
  109. data/man/ronin-netcat.1 +25 -51
  110. data/man/ronin-netcat.1.md +25 -21
  111. data/man/ronin-new-dns-proxy.1 +45 -0
  112. data/man/ronin-new-dns-proxy.1.md +44 -0
  113. data/man/ronin-new-project.1 +32 -45
  114. data/man/ronin-new-project.1.md +11 -11
  115. data/man/ronin-new-script.1 +10 -22
  116. data/man/ronin-new-script.1.md +4 -4
  117. data/man/ronin-new.1 +56 -31
  118. data/man/ronin-new.1.md +48 -8
  119. data/man/ronin-pack.1 +977 -0
  120. data/man/ronin-pack.1.md +929 -0
  121. data/man/ronin-proxy.1 +37 -63
  122. data/man/ronin-proxy.1.md +29 -25
  123. data/man/ronin-public-suffix-list.1 +16 -32
  124. data/man/ronin-public-suffix-list.1.md +13 -9
  125. data/man/ronin-quote.1 +17 -36
  126. data/man/ronin-quote.1.md +17 -13
  127. data/man/ronin-rot.1 +26 -39
  128. data/man/ronin-rot.1.md +15 -11
  129. data/man/ronin-sha1.1 +13 -24
  130. data/man/ronin-sha1.1.md +11 -7
  131. data/man/ronin-sha256.1 +13 -24
  132. data/man/ronin-sha256.1.md +11 -7
  133. data/man/ronin-sha512.1 +13 -24
  134. data/man/ronin-sha512.1.md +11 -7
  135. data/man/ronin-strings.1 +30 -55
  136. data/man/ronin-strings.1.md +27 -23
  137. data/man/ronin-tips.1 +8 -16
  138. data/man/ronin-tips.1.md +7 -3
  139. data/man/ronin-tld-list.1 +16 -32
  140. data/man/ronin-tld-list.1.md +13 -9
  141. data/man/ronin-typo.1 +14 -28
  142. data/man/ronin-typo.1.md +13 -9
  143. data/man/ronin-typosquat.1 +15 -32
  144. data/man/ronin-typosquat.1.md +15 -11
  145. data/man/ronin-unarchive.1.md +41 -0
  146. data/man/ronin-unescape.1 +22 -46
  147. data/man/ronin-unescape.1.md +22 -18
  148. data/man/ronin-unhexdump.1 +81 -91
  149. data/man/ronin-unhexdump.1.md +16 -12
  150. data/man/ronin-unpack.1 +978 -0
  151. data/man/ronin-unpack.1.md +920 -0
  152. data/man/ronin-unquote.1 +17 -36
  153. data/man/ronin-unquote.1.md +17 -13
  154. data/man/ronin-url.1 +19 -40
  155. data/man/ronin-url.1.md +19 -15
  156. data/man/ronin-xor.1 +14 -28
  157. data/man/ronin-xor.1.md +13 -9
  158. data/man/ronin.1 +208 -29
  159. data/man/ronin.1.md +156 -11
  160. data/scripts/setup +58 -0
  161. metadata +162 -73
  162. data/lib/ronin/config.rb +0 -95
  163. /data/data/{new → templates}/project/.gitignore +0 -0
  164. /data/data/{new → templates}/project/.ruby-version.erb +0 -0
  165. /data/data/{new → templates}/project/Dockerfile.erb +0 -0
  166. /data/data/{new → templates}/project/Gemfile.erb +0 -0
  167. /data/data/{new → templates}/project/Rakefile +0 -0
  168. /data/data/{new → templates}/project/project.rb.erb +0 -0
  169. /data/data/{new → templates}/script.rb.erb +0 -0
@@ -0,0 +1,920 @@
1
+ # ronin-pack 1 "2024-01-01" Ronin "User Manuals"
2
+
3
+ ## NAME
4
+
5
+ ronin-pack - Packs values into binary data.
6
+
7
+ ## SYNOPSIS
8
+
9
+ `ronin pack` [*options*] {*TYPE*`:`*VALUE* | *TYPE*`[`*NUM*`]`:*VALUE*[`,`*VALUE*...] [...]
10
+
11
+ ## DESCRIPTION
12
+
13
+ Unpacks binary data into values for the given C *TYPE* names.
14
+
15
+ ## ARGUMENTS
16
+
17
+ *TYPE*
18
+ : The desired C type to unpack the value as. See the **TYPES** section below
19
+ for a complete list of type names.
20
+
21
+ Note: to specify an array type, put the array length in square brackets after
22
+ the *TYPE* and list multiple values as a comma separated list.
23
+
24
+ int32[4]
25
+
26
+ char[3]
27
+
28
+ Note: to specify an infinite sized array which will consume the rest of the
29
+ data, omit the array size.
30
+
31
+ char[]
32
+
33
+ ## OPTIONS
34
+
35
+ `-E`, `--endian` `little`\|`big`\|`net`
36
+ : Sets the endianness
37
+
38
+ `-A`, `--arch` `x86`\|`x86_64`\|`ppc`\|`ppc64`\|`mips`\|`mips_le`\|`mips_be`\|`mips64`\|`mips64_le`\|`mips64_be`\|`arm`\|`arm_le`\|`arm_be`\|`arm64`\|`arm64_le`\|`arm64_be`
39
+ : Sets the architecture.
40
+
41
+ `-O`, `--os` `linux`\|`macos`\|`windows`\|`android`\|`apple_ios`\|`bsd`\|`freebsd`\|`openbsd`\|`netbsd`
42
+ : Sets the OS.
43
+
44
+ `-h`, `--help`
45
+ : Prints help information.
46
+
47
+ ## TYPES
48
+
49
+ ```
50
+ char
51
+ uchar
52
+ byte
53
+ string
54
+ int
55
+ int8
56
+ int16
57
+ int32
58
+ int64
59
+ short
60
+ long
61
+ long_long
62
+ uint
63
+ uint8
64
+ uint16
65
+ uint32
66
+ uint64
67
+ ushort
68
+ ulong
69
+ ulong_long
70
+ float
71
+ float32
72
+ float64
73
+ double
74
+ pointer
75
+ ```
76
+
77
+ ### Little Endian
78
+
79
+ ```
80
+ int_le
81
+ int16_le
82
+ int32_le
83
+ int64_le
84
+ short_le
85
+ long_le
86
+ long_long_le
87
+ uint_le
88
+ uint16_le
89
+ uint32_le
90
+ uint64_le
91
+ ushort_le
92
+ ulong_le
93
+ ulong_long_le
94
+ float_le
95
+ float32_le
96
+ float64_le
97
+ double_le
98
+ pointer_le
99
+ ```
100
+
101
+ ### Big Endian
102
+
103
+ ```
104
+ int_be
105
+ int16_be
106
+ int32_be
107
+ int64_be
108
+ short_be
109
+ long_be
110
+ long_long_be
111
+ uint_be
112
+ uint16_be
113
+ uint32_be
114
+ uint64_be
115
+ ushort_be
116
+ ulong_be
117
+ ulong_long_be
118
+ float_be
119
+ float32_be
120
+ float64_be
121
+ double_be
122
+ pointer_be
123
+ ```
124
+
125
+ ### Network Endian
126
+
127
+ ```
128
+ int_net
129
+ int16_net
130
+ int32_net
131
+ int64_net
132
+ short_net
133
+ long_net
134
+ long_long_net
135
+ uint_net
136
+ uint16_net
137
+ uint32_net
138
+ uint64_net
139
+ ushort_net
140
+ ulong_net
141
+ ulong_long_net
142
+ float_net
143
+ float32_net
144
+ float64_net
145
+ double_net
146
+ pointer_net
147
+ ```
148
+
149
+ ### Linux Types
150
+
151
+ ```
152
+ __blkcnt64_t
153
+ __blkcnt_t
154
+ __blksize_t
155
+ __caddr_t
156
+ __clock_t
157
+ __clockid_t
158
+ __daddr_t
159
+ __dev_t
160
+ __fd_mask
161
+ __fsblkcnt64_t
162
+ __fsblkcnt_t
163
+ __fsfilcnt64_t
164
+ __fsfilcnt_t
165
+ __fsword_t
166
+ __gid_t
167
+ __id_t
168
+ __ino64_t
169
+ __ino_t
170
+ __int16_t
171
+ __int32_t
172
+ __int64_t
173
+ __int8_t
174
+ __intmax_t
175
+ __intptr_t
176
+ __key_t
177
+ __loff_t
178
+ __mode_t
179
+ __nlink_t
180
+ __off64_t
181
+ __off_t
182
+ __pid_t
183
+ __priority_which_t
184
+ __quad_t
185
+ __rlim64_t
186
+ __rlim_t
187
+ __rlimit_resource_t
188
+ __rusage_who_t
189
+ __sig_atomic_t
190
+ __socklen_t
191
+ __ssize_t
192
+ __suseconds_t
193
+ __syscall_slong_t
194
+ __syscall_ulong_t
195
+ __time_t
196
+ __timer_t
197
+ __u_char
198
+ __u_int
199
+ __u_long
200
+ __u_quad_t
201
+ __u_short
202
+ __uid_t
203
+ __uint16_t
204
+ __uint32_t
205
+ __uint64_t
206
+ __uint8_t
207
+ __uintmax_t
208
+ __useconds_t
209
+ blkcnt_t
210
+ blksize_t
211
+ clock_t
212
+ clockid_t
213
+ daddr_t
214
+ dev_t
215
+ fd_mask
216
+ fsblkcnt_t
217
+ fsfilcnt_t
218
+ gid_t
219
+ id_t
220
+ in_addr_t
221
+ in_port_t
222
+ ino_t
223
+ int16_t
224
+ int32_t
225
+ int64_t
226
+ int8_t
227
+ int_fast16_t
228
+ int_fast32_t
229
+ int_fast64_t
230
+ int_fast8_t
231
+ int_least32_t
232
+ int_least64_t
233
+ int_least8_t
234
+ intmax_t
235
+ intptr_t
236
+ key_t
237
+ loff_t
238
+ mode_t
239
+ nlink_t
240
+ off_t
241
+ pid_t
242
+ pthread_key_t
243
+ pthread_once_t
244
+ pthread_t
245
+ ptrdiff_t
246
+ quad_t
247
+ register_t
248
+ rlim_t
249
+ sa_family_t
250
+ size_t
251
+ socklen_t
252
+ ssize_t
253
+ suseconds_t
254
+ time_t
255
+ timer_t
256
+ u_char
257
+ u_int
258
+ u_int16_t
259
+ u_int32_t
260
+ u_int64_t
261
+ u_int8_t
262
+ u_long
263
+ u_quad_t
264
+ u_short
265
+ uid_t
266
+ uint16_t
267
+ uint32_t
268
+ uint64_t
269
+ uint8_t
270
+ uint_fast16_t
271
+ uint_fast32_t
272
+ uint_fast64_t
273
+ uint_fast8_t
274
+ uint_least16_t
275
+ uint_least32_t
276
+ uint_least64_t
277
+ uint_least8_t
278
+ uintmax_t
279
+ uintptr_t
280
+ wchar_t
281
+ ```
282
+
283
+ ### macOS / iOS Types
284
+
285
+ ```
286
+ __darwin_blkcnt_t
287
+ __darwin_blksize_t
288
+ __darwin_clock_t
289
+ __darwin_ct_rune_t
290
+ __darwin_dev_t
291
+ __darwin_fsblkcnt_t
292
+ __darwin_fsfilcnt_t
293
+ __darwin_gid_t
294
+ __darwin_id_t
295
+ __darwin_ino64_t
296
+ __darwin_ino_t
297
+ __darwin_intptr_t
298
+ __darwin_mach_port_name_t
299
+ __darwin_mach_port_t
300
+ __darwin_mode_t
301
+ __darwin_natural_t
302
+ __darwin_off_t
303
+ __darwin_pid_t
304
+ __darwin_pthread_key_t
305
+ __darwin_ptrdiff_t
306
+ __darwin_rune_t
307
+ __darwin_sigset_t
308
+ __darwin_size_t
309
+ __darwin_socklen_t
310
+ __darwin_ssize_t
311
+ __darwin_suseconds_t
312
+ __darwin_time_t
313
+ __darwin_uid_t
314
+ __darwin_useconds_t
315
+ __darwin_uuid_string_t
316
+ __darwin_uuid_t
317
+ __darwin_wchar_t
318
+ __darwin_wint_t
319
+ __int16_t
320
+ __int32_t
321
+ __int64_t
322
+ __int8_t
323
+ __uint16_t
324
+ __uint32_t
325
+ __uint64_t
326
+ __uint8_t
327
+ blkcnt_t
328
+ blksize_t
329
+ caddr_t
330
+ clock_t
331
+ daddr_t
332
+ dev_t
333
+ errno_t
334
+ fd_mask
335
+ fixpt_t
336
+ fsblkcnt_t
337
+ fsfilcnt_t
338
+ gid_t
339
+ id_t
340
+ in_addr_t
341
+ in_port_t
342
+ ino64_t
343
+ ino_t
344
+ int16_t
345
+ int32_t
346
+ int64_t
347
+ int8_t
348
+ int_fast16_t
349
+ int_fast32_t
350
+ int_fast64_t
351
+ int_fast8_t
352
+ int_least16_t
353
+ int_least32_t
354
+ int_least64_t
355
+ int_least8_t
356
+ intmax_t
357
+ intptr_t
358
+ key_t
359
+ mode_t
360
+ nlink_t
361
+ off_t
362
+ pid_t
363
+ pthread_key_t
364
+ ptrdiff_t
365
+ qaddr_t
366
+ quad_t
367
+ register_t
368
+ rlim_t
369
+ rsize_t
370
+ sa_family_t
371
+ sae_associd_t
372
+ sae_connid_t
373
+ segsz_t
374
+ size_t
375
+ socklen_t
376
+ ssize_t
377
+ suseconds_t
378
+ swblk_t
379
+ syscall_arg_t
380
+ time_t
381
+ u_char
382
+ u_int
383
+ u_int16_t
384
+ u_int32_t
385
+ u_int64_t
386
+ u_int8_t
387
+ u_long
388
+ u_quad_t
389
+ u_short
390
+ uid_t
391
+ uint16_t
392
+ uint32_t
393
+ uint64_t
394
+ uint8_t
395
+ uint_fast16_t
396
+ uint_fast32_t
397
+ uint_fast64_t
398
+ uint_fast8_t
399
+ uint_least16_t
400
+ uint_least32_t
401
+ uint_least64_t
402
+ uint_least8_t
403
+ uintmax_t
404
+ uintptr_t
405
+ useconds_t
406
+ user_addr_t
407
+ user_long_t
408
+ user_off_t
409
+ user_size_t
410
+ user_ssize_t
411
+ user_time_t
412
+ user_ulong_t
413
+ wchar_t
414
+ ```
415
+
416
+ ### Windows Types
417
+
418
+ ```
419
+ __time32_t
420
+ __time64_t
421
+ _dev_t
422
+ _ino_t
423
+ _mode_t
424
+ _off64_t
425
+ _off_t
426
+ _pid_t
427
+ _sigset_t
428
+ dev_t
429
+ errno_t
430
+ ino_t
431
+ int16_t
432
+ int32_t
433
+ int64_t
434
+ int8_t
435
+ int_fast16_t
436
+ int_fast32_t
437
+ int_fast64_t
438
+ int_fast8_t
439
+ int_least16_t
440
+ int_least32_t
441
+ int_least64_t
442
+ int_least8_t
443
+ intmax_t
444
+ intptr_t
445
+ long
446
+ mode_t
447
+ off32_t
448
+ off64_t
449
+ off_t
450
+ pid_t
451
+ ptrdiff_t
452
+ rsize_t
453
+ size_t
454
+ ssize_t
455
+ time_t
456
+ uint16_t
457
+ uint64_t
458
+ uint8_t
459
+ uint_fast16_t
460
+ uint_fast32_t
461
+ uint_fast64_t
462
+ uint_fast8_t
463
+ uint_least16_t
464
+ uint_least64_t
465
+ uint_least8_t
466
+ uintmax_t
467
+ uintptr_t
468
+ ulong
469
+ useconds_t
470
+ wchar_t
471
+ wctype_t
472
+ wint_t
473
+ ```
474
+
475
+ ### FreeBSD Types
476
+
477
+ ```
478
+ __clock_t
479
+ __clockid_t
480
+ __cpuid_t
481
+ __dev_t
482
+ __fd_mask
483
+ __fixpt_t
484
+ __gid_t
485
+ __id_t
486
+ __in_addr_t
487
+ __in_port_t
488
+ __ino_t
489
+ __int16_t
490
+ __int32_t
491
+ __int64_t
492
+ __int8_t
493
+ __int_fast16_t
494
+ __int_fast32_t
495
+ __int_fast64_t
496
+ __int_fast8_t
497
+ __int_least16_t
498
+ __int_least32_t
499
+ __int_least64_t
500
+ __int_least8_t
501
+ __intmax_t
502
+ __intptr_t
503
+ __key_t
504
+ __mode_t
505
+ __nlink_t
506
+ __off_t
507
+ __paddr_t
508
+ __pid_t
509
+ __psize_t
510
+ __ptrdiff_t
511
+ __register_t
512
+ __rlim_t
513
+ __rune_t
514
+ __sa_family_t
515
+ __segsz_t
516
+ __size_t
517
+ __socklen_t
518
+ __ssize_t
519
+ __suseconds_t
520
+ __swblk_t
521
+ __time_t
522
+ __timer_t
523
+ __uid_t
524
+ __uint16_t
525
+ __uint32_t
526
+ __uint64_t
527
+ __uint8_t
528
+ __uint_fast16_t
529
+ __uint_fast32_t
530
+ __uint_fast64_t
531
+ __uint_fast8_t
532
+ __uint_least16_t
533
+ __uint_least32_t
534
+ __uint_least64_t
535
+ __uint_least8_t
536
+ __uintmax_t
537
+ __uintptr_t
538
+ __useconds_t
539
+ __vaddr_t
540
+ __vsize_t
541
+ __wchar_t
542
+ __wctrans_t
543
+ __wctype_t
544
+ __wint_t
545
+ caddr_t
546
+ clock_t
547
+ clockid_t
548
+ cpuid_t
549
+ daddr32_t
550
+ daddr64_t
551
+ daddr_t
552
+ dev_t
553
+ fixpt_t
554
+ gid_t
555
+ id_t
556
+ in_addr_t
557
+ in_port_t
558
+ ino_t
559
+ int16_t
560
+ int32_t
561
+ int64_t
562
+ int8_t
563
+ intptr_t
564
+ key_t
565
+ mode_t
566
+ nlink_t
567
+ off_t
568
+ paddr_t
569
+ pid_t
570
+ psize_t
571
+ qaddr_t
572
+ quad_t
573
+ register_t
574
+ rlim_t
575
+ sa_family_t
576
+ segsz_t
577
+ size_t
578
+ socklen_t
579
+ ssize_t
580
+ suseconds_t
581
+ swblk_t
582
+ time_t
583
+ timer_t
584
+ u_char
585
+ u_int
586
+ u_int16_t
587
+ u_int32_t
588
+ u_int64_t
589
+ u_int8_t
590
+ u_long
591
+ u_quad_t
592
+ u_short
593
+ uid_t
594
+ uint16_t
595
+ uint32_t
596
+ uint64_t
597
+ uint8_t
598
+ uintptr_t
599
+ ulong
600
+ unchar
601
+ useconds_t
602
+ vaddr_t
603
+ vsize_t
604
+ ```
605
+
606
+ ### OpenBSD Types
607
+
608
+ ```
609
+ __blkcnt_t
610
+ __blksize_t
611
+ __clock_t
612
+ __clockid_t
613
+ __cpuid_t
614
+ __dev_t
615
+ __fd_mask
616
+ __fixpt_t
617
+ __fsblkcnt_t
618
+ __fsfilcnt_t
619
+ __gid_t
620
+ __id_t
621
+ __in_addr_t
622
+ __in_port_t
623
+ __ino_t
624
+ __int16_t
625
+ __int32_t
626
+ __int64_t
627
+ __int8_t
628
+ __int_fast16_t
629
+ __int_fast32_t
630
+ __int_fast64_t
631
+ __int_fast8_t
632
+ __int_least16_t
633
+ __int_least32_t
634
+ __int_least64_t
635
+ __int_least8_t
636
+ __intmax_t
637
+ __intptr_t
638
+ __key_t
639
+ __mode_t
640
+ __nlink_t
641
+ __off_t
642
+ __paddr_t
643
+ __pid_t
644
+ __psize_t
645
+ __ptrdiff_t
646
+ __register_t
647
+ __rlim_t
648
+ __rune_t
649
+ __sa_family_t
650
+ __segsz_t
651
+ __size_t
652
+ __socklen_t
653
+ __ssize_t
654
+ __suseconds_t
655
+ __swblk_t
656
+ __time_t
657
+ __timer_t
658
+ __uid_t
659
+ __uint16_t
660
+ __uint32_t
661
+ __uint64_t
662
+ __uint8_t
663
+ __uint_fast16_t
664
+ __uint_fast32_t
665
+ __uint_fast64_t
666
+ __uint_fast8_t
667
+ __uint_least16_t
668
+ __uint_least32_t
669
+ __uint_least64_t
670
+ __uint_least8_t
671
+ __uintmax_t
672
+ __uintptr_t
673
+ __useconds_t
674
+ __vaddr_t
675
+ __vsize_t
676
+ __wchar_t
677
+ __wctrans_t
678
+ __wctype_t
679
+ __wint_t
680
+ blkcnt_t
681
+ blksize_t
682
+ caddr_t
683
+ clock_t
684
+ clockid_t
685
+ cpuid_t
686
+ daddr32_t
687
+ daddr_t
688
+ dev_t
689
+ fixpt_t
690
+ fsblkcnt_t
691
+ fsfilcnt_t
692
+ gid_t
693
+ id_t
694
+ in_addr_t
695
+ in_port_t
696
+ ino_t
697
+ int16_t
698
+ int32_t
699
+ int64_t
700
+ int8_t
701
+ key_t
702
+ mode_t
703
+ nlink_t
704
+ off_t
705
+ paddr_t
706
+ pid_t
707
+ psize_t
708
+ qaddr_t
709
+ quad_t
710
+ register_t
711
+ rlim_t
712
+ sa_family_t
713
+ segsz_t
714
+ sigset_t
715
+ size_t
716
+ socklen_t
717
+ ssize_t
718
+ suseconds_t
719
+ swblk_t
720
+ time_t
721
+ timer_t
722
+ u_char
723
+ u_int
724
+ u_int16_t
725
+ u_int32_t
726
+ u_int64_t
727
+ u_int8_t
728
+ u_long
729
+ u_quad_t
730
+ u_short
731
+ uid_t
732
+ uint16_t
733
+ uint32_t
734
+ uint64_t
735
+ uint8_t
736
+ ulong
737
+ unchar
738
+ useconds_t
739
+ vaddr_t
740
+ vsize_t
741
+ ```
742
+
743
+ ### NetBSD Types
744
+
745
+ ```
746
+ __clock_t
747
+ __clockid_t
748
+ __cpuid_t
749
+ __dev_t
750
+ __fd_mask
751
+ __fixpt_t
752
+ __gid_t
753
+ __id_t
754
+ __in_addr_t
755
+ __in_port_t
756
+ __ino_t
757
+ __int16_t
758
+ __int32_t
759
+ __int64_t
760
+ __int8_t
761
+ __int_fast16_t
762
+ __int_fast32_t
763
+ __int_fast64_t
764
+ __int_fast8_t
765
+ __int_least16_t
766
+ __int_least32_t
767
+ __int_least64_t
768
+ __int_least8_t
769
+ __intmax_t
770
+ __intptr_t
771
+ __key_t
772
+ __mode_t
773
+ __nlink_t
774
+ __off_t
775
+ __paddr_t
776
+ __pid_t
777
+ __psize_t
778
+ __ptrdiff_t
779
+ __register_t
780
+ __rlim_t
781
+ __rune_t
782
+ __sa_family_t
783
+ __segsz_t
784
+ __size_t
785
+ __socklen_t
786
+ __ssize_t
787
+ __suseconds_t
788
+ __swblk_t
789
+ __time_t
790
+ __timer_t
791
+ __uid_t
792
+ __uint16_t
793
+ __uint32_t
794
+ __uint64_t
795
+ __uint8_t
796
+ __uint_fast16_t
797
+ __uint_fast32_t
798
+ __uint_fast64_t
799
+ __uint_fast8_t
800
+ __uint_least16_t
801
+ __uint_least32_t
802
+ __uint_least64_t
803
+ __uint_least8_t
804
+ __uintmax_t
805
+ __uintptr_t
806
+ __useconds_t
807
+ __vaddr_t
808
+ __vsize_t
809
+ __wchar_t
810
+ __wctrans_t
811
+ __wctype_t
812
+ __wint_t
813
+ caddr_t
814
+ clock_t
815
+ clockid_t
816
+ cpuid_t
817
+ daddr32_t
818
+ daddr64_t
819
+ daddr_t
820
+ dev_t
821
+ fixpt_t
822
+ gid_t
823
+ id_t
824
+ in_addr_t
825
+ in_port_t
826
+ ino_t
827
+ int16_t
828
+ int32_t
829
+ int64_t
830
+ int8_t
831
+ intptr_t
832
+ key_t
833
+ mode_t
834
+ nlink_t
835
+ off_t
836
+ paddr_t
837
+ pid_t
838
+ psize_t
839
+ qaddr_t
840
+ quad_t
841
+ register_t
842
+ rlim_t
843
+ sa_family_t
844
+ segsz_t
845
+ size_t
846
+ socklen_t
847
+ ssize_t
848
+ suseconds_t
849
+ swblk_t
850
+ time_t
851
+ timer_t
852
+ u_char
853
+ u_int
854
+ u_int16_t
855
+ u_int32_t
856
+ u_int64_t
857
+ u_int8_t
858
+ u_long
859
+ u_quad_t
860
+ u_short
861
+ uid_t
862
+ uint
863
+ uint16_t
864
+ uint32_t
865
+ uint64_t
866
+ uint8_t
867
+ uintptr_t
868
+ ulong
869
+ unchar
870
+ useconds_t
871
+ ushort
872
+ vaddr_t
873
+ vsize_t
874
+ ```
875
+
876
+ ## EXAMPLES
877
+
878
+ Unpacks a single value from a string:
879
+
880
+ $ ronin unpack --string $'\x44\x33\x22\x11' uint32
881
+
882
+ Unpacks a single value from a file:
883
+
884
+ $ ronin unpack --file uint32.dat uint32
885
+
886
+ Unpacks a single value from stdin:
887
+
888
+ $ ronin unpack uint32
889
+
890
+ Unpacks multiple values:
891
+
892
+ $ ronin unpack uint32 int32 char string
893
+
894
+ Unpacks an array of values:
895
+
896
+ $ ronin unpack uint32[10]
897
+
898
+ Unpacks values in big endian:
899
+
900
+ $ ronin unpack --endian big uint32 int32
901
+
902
+ Unpacks values for the ARM (big-endian) architecture:
903
+
904
+ $ ronin unpack --arch arm_be uint32
905
+
906
+ Unpacks values for the ARM (little-endian) architecture:
907
+
908
+ $ ronin unpack --arch arm_le uint32
909
+
910
+ Unpacks values for Windows (x86-64):
911
+
912
+ $ ronin unpack --arch x86_64 --os windows uint
913
+
914
+ ## AUTHOR
915
+
916
+ Postmodern <postmodern.mod3@gmail.com>
917
+
918
+ ## SEE ALSO
919
+
920
+ [ronin-pack](ronin-pack.1.md)