ronin 2.0.0.beta3 → 2.0.0.beta5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ruby.yml +1 -0
  3. data/README.md +613 -1
  4. data/gemspec.yml +4 -4
  5. data/lib/ronin/cli/commands/asn.rb +2 -2
  6. data/lib/ronin/cli/commands/bitflip.rb +1 -1
  7. data/lib/ronin/cli/commands/decode.rb +39 -0
  8. data/lib/ronin/cli/commands/encode.rb +39 -0
  9. data/lib/ronin/cli/commands/escape.rb +7 -0
  10. data/lib/ronin/cli/commands/grep.rb +1 -1
  11. data/lib/ronin/cli/commands/highlight.rb +1 -1
  12. data/lib/ronin/cli/commands/http.rb +23 -13
  13. data/lib/ronin/cli/commands/irb.rb +3 -2
  14. data/lib/ronin/cli/commands/netcat.rb +6 -2
  15. data/lib/ronin/cli/commands/tips.rb +1 -1
  16. data/lib/ronin/cli/commands/typosquat.rb +1 -1
  17. data/lib/ronin/cli/commands/unescape.rb +7 -0
  18. data/lib/ronin/cli/commands/unhexdump.rb +8 -5
  19. data/lib/ronin/cli/http_shell.rb +1 -1
  20. data/lib/ronin/cli/printing/http.rb +9 -8
  21. data/lib/ronin/cli/ruby_shell.rb +47 -0
  22. data/lib/ronin/cli/string_processor_command.rb +2 -2
  23. data/lib/ronin/cli.rb +1 -0
  24. data/lib/ronin/version.rb +1 -1
  25. data/lib/ronin.rb +2 -1
  26. data/man/ronin-asn.1 +2 -2
  27. data/man/ronin-asn.1.md +2 -2
  28. data/man/ronin-cert-dump.1 +6 -6
  29. data/man/ronin-cert-dump.1.md +6 -6
  30. data/man/ronin-cert-gen.1 +5 -5
  31. data/man/ronin-cert-gen.1.md +5 -5
  32. data/man/ronin-cert-grab.1 +3 -3
  33. data/man/ronin-cert-grab.1.md +3 -3
  34. data/man/ronin-decode.1 +24 -0
  35. data/man/ronin-decode.1.md +18 -0
  36. data/man/ronin-email-addr.1 +2 -2
  37. data/man/ronin-email-addr.1.md +2 -2
  38. data/man/ronin-encode.1 +24 -0
  39. data/man/ronin-encode.1.md +18 -0
  40. data/man/ronin-escape.1 +4 -0
  41. data/man/ronin-escape.1.md +3 -0
  42. data/man/ronin-hexdump.1 +189 -0
  43. data/man/ronin-hexdump.1.md +129 -0
  44. data/man/ronin-http.1 +1 -1
  45. data/man/ronin-http.1.md +1 -1
  46. data/man/ronin-ip.1 +1 -1
  47. data/man/ronin-ip.1.md +1 -1
  48. data/man/ronin-netcat.1 +1 -1
  49. data/man/ronin-netcat.1.md +1 -1
  50. data/man/ronin-new-project.1 +30 -0
  51. data/man/ronin-new-project.1.md +18 -0
  52. data/man/ronin-new-script.1 +9 -0
  53. data/man/ronin-new-script.1.md +6 -0
  54. data/man/ronin-new.1 +16 -0
  55. data/man/ronin-new.1.md +10 -0
  56. data/man/ronin-proxy.1 +13 -7
  57. data/man/ronin-proxy.1.md +9 -7
  58. data/man/ronin-unescape.1 +4 -0
  59. data/man/ronin-unescape.1.md +3 -0
  60. data/man/ronin-unhexdump.1 +27 -0
  61. data/man/ronin-unhexdump.1.md +17 -0
  62. metadata +11 -10
@@ -41,23 +41,23 @@ Prints SSL/TLS certificate information for one or more SSL/TLS services,
41
41
 
42
42
  Print the certificate information for the cert file:
43
43
 
44
- ronin cert-dump ssl.crt
44
+ ronin cert-dump ssl.crt
45
45
 
46
46
  Print the certificate information for a SSL/TLS service:
47
47
 
48
- ronin cert-dump github.com:443
48
+ ronin cert-dump github.com:443
49
49
 
50
50
  Print the certificate information for a URL:
51
51
 
52
- ronin cert-dump https://github.com
52
+ ronin cert-dump https://github.com
53
53
 
54
- Only print the Common Nmae (CN) for a SSL/TLS service:
54
+ Only print the Common Name (CN) for a SSL/TLS service:
55
55
 
56
- ronin cert-dump -C 93.184.216.34:443
56
+ ronin cert-dump -C 93.184.216.34:443
57
57
 
58
58
  Only print the `subjectAltName`s for a SSL/TLS service:
59
59
 
60
- ronin cert-dump -A wired.com:443
60
+ ronin cert-dump -A wired.com:443
61
61
 
62
62
  ## AUTHOR
63
63
 
data/man/ronin-cert-gen.1 CHANGED
@@ -92,7 +92,7 @@ Print help information\.
92
92
  Generates self\-signed certificate in \fBcert.crt\fR and a new private key in \fBkey.pem\fR:
93
93
  .LP
94
94
  .nf
95
- ronin cert\[ru]gen \-c test\.com \-O \[dq]Test Co\[dq] \-U \[dq]Test Dept\[dq] \e
95
+ ronin cert\-gen \-c test\.com \-O \[dq]Test Co\[dq] \-U \[dq]Test Dept\[dq] \e
96
96
  \-L \[dq]Test City\[dq] \-S NY \-C US
97
97
  .fi
98
98
  .LP
@@ -101,7 +101,7 @@ Generates a new self\-signed certificate for \fBtest.com\fR in \fBcert.crt\fR us
101
101
  \fBprivate.key\fR:
102
102
  .LP
103
103
  .nf
104
- ronin cert\[ru]gen \-c test\.com \-O \[dq]Test Co\[dq] \-U \[dq]Test Dept\[dq] \e
104
+ ronin cert\-gen \-c test\.com \-O \[dq]Test Co\[dq] \-U \[dq]Test Dept\[dq] \e
105
105
  \-L \[dq]Test City\[dq] \-S NY \-C US \e
106
106
  \-\-key\-file private\.key
107
107
  .fi
@@ -110,7 +110,7 @@ Generates a new self\-signed certificate for \fBtest.com\fR in \fBcert.crt\fR us
110
110
  Generates a new self\-signed certificate with a alternative name \fBwww.test.com\fR:
111
111
  .LP
112
112
  .nf
113
- ronin cert\[ru]gen \-c test\.com \-A www\.test\.com \-O \[dq]Test Co\[dq] \-U \[dq]Test Dept\[dq] \e
113
+ ronin cert\-gen \-c test\.com \-A www\.test\.com \-O \[dq]Test Co\[dq] \-U \[dq]Test Dept\[dq] \e
114
114
  \-L \[dq]Test City\[dq] \-S NY \-C US
115
115
  .fi
116
116
  .LP
@@ -118,7 +118,7 @@ Generates a new self\-signed certificate with a alternative name \fBwww.test.com
118
118
  Generates a new CA certificate which can sign other certificates:
119
119
  .LP
120
120
  .nf
121
- ronin cert\[ru]gen \-\-ca \-c \[dq]Test CA\[dq] \-O \[dq]Test Co\[dq] \-U \[dq]Test Dept\[dq] \e
121
+ ronin cert\-gen \-\-ca \-c \[dq]Test CA\[dq] \-O \[dq]Test Co\[dq] \-U \[dq]Test Dept\[dq] \e
122
122
  \-L \[dq]Test City\[dq] \-S NY \-C US
123
123
  .fi
124
124
  .LP
@@ -126,7 +126,7 @@ Generates a new CA certificate which can sign other certificates:
126
126
  Generates a new sub\-certificate using the CA certificate \fBca.crt\fR and signing key \fBca.key\fR:
127
127
  .LP
128
128
  .nf
129
- ronin cert\[ru]gen \-c test\.com \-O \[dq]Test Co\[dq] \-U \[dq]Test Dept\[dq] \e
129
+ ronin cert\-gen \-c test\.com \-O \[dq]Test Co\[dq] \-U \[dq]Test Dept\[dq] \e
130
130
  \-L \[dq]Test City\[dq] \-S NY \-C US \e
131
131
  \-\-ca\-key ca\.key \-\-ca\-cert ca\.crt
132
132
  .fi
@@ -69,29 +69,29 @@ Generates a new X509 certificate.
69
69
 
70
70
  Generates self-signed certificate in `cert.crt` and a new private key in `key.pem`:
71
71
 
72
- ronin cert_gen -c test.com -O "Test Co" -U "Test Dept" \
72
+ ronin cert-gen -c test.com -O "Test Co" -U "Test Dept" \
73
73
  -L "Test City" -S NY -C US
74
74
 
75
75
  Generates a new self-signed certificate for `test.com` in `cert.crt` using the private key in
76
76
  `private.key`:
77
77
 
78
- ronin cert_gen -c test.com -O "Test Co" -U "Test Dept" \
78
+ ronin cert-gen -c test.com -O "Test Co" -U "Test Dept" \
79
79
  -L "Test City" -S NY -C US \
80
80
  --key-file private.key
81
81
 
82
82
  Generates a new self-signed certificate with a alternative name `www.test.com`:
83
83
 
84
- ronin cert_gen -c test.com -A www.test.com -O "Test Co" -U "Test Dept" \
84
+ ronin cert-gen -c test.com -A www.test.com -O "Test Co" -U "Test Dept" \
85
85
  -L "Test City" -S NY -C US
86
86
 
87
87
  Generates a new CA certificate which can sign other certificates:
88
88
 
89
- ronin cert_gen --ca -c "Test CA" -O "Test Co" -U "Test Dept" \
89
+ ronin cert-gen --ca -c "Test CA" -O "Test Co" -U "Test Dept" \
90
90
  -L "Test City" -S NY -C US
91
91
 
92
92
  Generates a new sub-certificate using the CA certificate `ca.crt` and signing key `ca.key`:
93
93
 
94
- ronin cert_gen -c test.com -O "Test Co" -U "Test Dept" \
94
+ ronin cert-gen -c test.com -O "Test Co" -U "Test Dept" \
95
95
  -L "Test City" -S NY -C US \
96
96
  --ca-key ca.key --ca-cert ca.crt
97
97
 
@@ -38,21 +38,21 @@ Print help information\.
38
38
  Downloads the SSL\[sl]TLS certificate for a SSL\[sl]TLS service:
39
39
  .LP
40
40
  .nf
41
- ronin cert\-grab github\.com:443
41
+ ronin cert\-grab github\.com:443
42
42
  .fi
43
43
  .LP
44
44
  .PP
45
45
  Downloads the SSL\[sl]TLS certificate running on the IP and port:
46
46
  .LP
47
47
  .nf
48
- ronin cert\-grab 93\.184\.216\.34:443
48
+ ronin cert\-grab 93\.184\.216\.34:443
49
49
  .fi
50
50
  .LP
51
51
  .PP
52
52
  Downloads the SSL\[sl]TLS certificate used by the URL:
53
53
  .LP
54
54
  .nf
55
- ronin cert\-grab https:\[sl]\[sl]github\.com\[sl]
55
+ ronin cert\-grab https:\[sl]\[sl]github\.com\[sl]
56
56
  .fi
57
57
  .LP
58
58
  .SH AUTHOR
@@ -28,15 +28,15 @@ Downloads SSL/TLS certificates for a SSL/TLS TCP or `https://` URL.
28
28
 
29
29
  Downloads the SSL/TLS certificate for a SSL/TLS service:
30
30
 
31
- ronin cert-grab github.com:443
31
+ ronin cert-grab github.com:443
32
32
 
33
33
  Downloads the SSL/TLS certificate running on the IP and port:
34
34
 
35
- ronin cert-grab 93.184.216.34:443
35
+ ronin cert-grab 93.184.216.34:443
36
36
 
37
37
  Downloads the SSL/TLS certificate used by the URL:
38
38
 
39
- ronin cert-grab https://github.com/
39
+ ronin cert-grab https://github.com/
40
40
 
41
41
  ## AUTHOR
42
42
 
data/man/ronin-decode.1 CHANGED
@@ -38,6 +38,10 @@ Process each line of input separately\.
38
38
  Preserves newlines at the end of each line\.
39
39
  .LP
40
40
  .TP
41
+ \fB--base16\fR
42
+ Base16 decodes the data\.
43
+ .LP
44
+ .TP
41
45
  \fB--base32\fR
42
46
  Base32 decodes the data\.
43
47
  .LP
@@ -46,6 +50,14 @@ Base32 decodes the data\.
46
50
  Base64 decodes the data\. If the \fBstrict\fR or \fBurl\fR option value is given,
47
51
  it will enable \fBstrict\fR or \fBurl\fR Base64 encoding mode, respectively\.
48
52
  .LP
53
+ .TP
54
+ \fB-z\fR, \fB--zlib\fR
55
+ Zlib uncompresses the data\.
56
+ .LP
57
+ .TP
58
+ \fB-g\fR, \fB--gzip\fR
59
+ gzip uncompresses the data\.
60
+ .LP
49
61
  .HP
50
62
  \fB-c, \fR\-\-c\`
51
63
  Decodes the data as a C string\.
@@ -79,10 +91,22 @@ Decodes the data as a Shell String\.
79
91
  Decodes the data as a PowerShell String\.
80
92
  .LP
81
93
  .TP
94
+ \fB--punycode\fR
95
+ Decodes the data as Punycode\.
96
+ .LP
97
+ .TP
98
+ \fB-Q\fR, \fB--quoted-printable\fR
99
+ Decodes the data as Quoted Printable\.
100
+ .LP
101
+ .TP
82
102
  \fB-R\fR, \fB--ruby\fR
83
103
  Ruby decodes the data\.
84
104
  .LP
85
105
  .TP
106
+ \fB--uudecode\fR
107
+ uudecodes the data\.
108
+ .LP
109
+ .TP
86
110
  \fB-x\fR, \fB--xml\fR
87
111
  XML decodes the data\.
88
112
  .LP
@@ -28,6 +28,9 @@ Decodes each character of the given data from a variety of formats.
28
28
  `-n`, `--keep-newlines`
29
29
  Preserves newlines at the end of each line.
30
30
 
31
+ `--base16`
32
+ Base16 decodes the data.
33
+
31
34
  `--base32`
32
35
  Base32 decodes the data.
33
36
 
@@ -35,6 +38,12 @@ Decodes each character of the given data from a variety of formats.
35
38
  Base64 decodes the data. If the `strict` or `url` option value is given,
36
39
  it will enable `strict` or `url` Base64 encoding mode, respectively.
37
40
 
41
+ `-z`, `--zlib`
42
+ Zlib uncompresses the data.
43
+
44
+ `-g`, `--gzip`
45
+ gzip uncompresses the data.
46
+
38
47
  `-c, `--c`
39
48
  Decodes the data as a C string.
40
49
 
@@ -59,9 +68,18 @@ Decodes each character of the given data from a variety of formats.
59
68
  `-P`, `--powershell`
60
69
  Decodes the data as a PowerShell String.
61
70
 
71
+ `--punycode`
72
+ Decodes the data as Punycode.
73
+
74
+ `-Q`, `--quoted-printable`
75
+ Decodes the data as Quoted Printable.
76
+
62
77
  `-R`, `--ruby`
63
78
  Ruby decodes the data.
64
79
 
80
+ `--uudecode`
81
+ uudecodes the data.
82
+
65
83
  `-x`, `--xml`
66
84
  XML decodes the data.
67
85
 
@@ -57,14 +57,14 @@ Print help information
57
57
  Deobfuscates an email address:
58
58
  .LP
59
59
  .nf
60
- \[Do] ronin email\-addr \-\-deobfuscate \[dq]john\[lC]DOT\[rC]smith\[lC]AT\[rC]example\[lC]DOT\[rC]com\[dq]\(aq
60
+ ronin email\-addr \-\-deobfuscate \[dq]john\[lC]DOT\[rC]smith\[lC]AT\[rC]example\[lC]DOT\[rC]com\[dq]\(aq
61
61
  .fi
62
62
  .LP
63
63
  .PP
64
64
  Extracts the domain name from a list of email addresses:
65
65
  .LP
66
66
  .nf
67
- \[Do] ronin email\-addr \-\-input emails\.txt \-\-domain
67
+ ronin email\-addr \-\-input emails\.txt \-\-domain
68
68
  .fi
69
69
  .LP
70
70
  .SH AUTHOR
@@ -42,11 +42,11 @@ Processes one or more email addresses.
42
42
 
43
43
  Deobfuscates an email address:
44
44
 
45
- $ ronin email-addr --deobfuscate "john{DOT}smith{AT}example{DOT}com"'
45
+ ronin email-addr --deobfuscate "john{DOT}smith{AT}example{DOT}com"'
46
46
 
47
47
  Extracts the domain name from a list of email addresses:
48
48
 
49
- $ ronin email-addr --input emails.txt --domain
49
+ ronin email-addr --input emails.txt --domain
50
50
 
51
51
  ## AUTHOR
52
52
 
data/man/ronin-encode.1 CHANGED
@@ -38,6 +38,10 @@ Process each line of input separately\.
38
38
  Preserves newlines at the end of each line\.
39
39
  .LP
40
40
  .TP
41
+ \fB--base16\fR
42
+ Base16 encodes the data\.
43
+ .LP
44
+ .TP
41
45
  \fB--base32\fR
42
46
  Base32 encodes the data\.
43
47
  .LP
@@ -46,6 +50,14 @@ Base32 encodes the data\.
46
50
  Base64 encodes the data\. If the \fBstrict\fR or \fBurl\fR option value is given,
47
51
  it will enable \fBstrict\fR or \fBurl\fR Base64 encoding mode, respectively\.
48
52
  .LP
53
+ .TP
54
+ \fB-z\fR, \fB--zlib\fR
55
+ Zlib compresses the data\.
56
+ .LP
57
+ .TP
58
+ \fB-g\fR, \fB--gzip\fR
59
+ gzip compresses the data\.
60
+ .LP
49
61
  .HP
50
62
  \fB-c, \fR\-\-c\`
51
63
  Encodes the data as a C string\.
@@ -79,6 +91,18 @@ Encodes the data as a Shell String\.
79
91
  Encodes the data as a PowerShell String\.
80
92
  .LP
81
93
  .TP
94
+ \fB--punycode\fR
95
+ Encodes the data as Punycode\.
96
+ .LP
97
+ .TP
98
+ \fB-Q\fR, \fB--quoted-printable\fR
99
+ Decodes the data as Quoted Printable\.
100
+ .LP
101
+ .TP
102
+ \fB--uuencode\fR
103
+ uuencodes the data\.
104
+ .LP
105
+ .TP
82
106
  \fB-R\fR, \fB--ruby\fR
83
107
  Encodes the data as a Ruby String\.
84
108
  .LP
@@ -28,6 +28,9 @@ Encodes each character of the given data into a variety of formats.
28
28
  `-n`, `--keep-newlines`
29
29
  Preserves newlines at the end of each line.
30
30
 
31
+ `--base16`
32
+ Base16 encodes the data.
33
+
31
34
  `--base32`
32
35
  Base32 encodes the data.
33
36
 
@@ -35,6 +38,12 @@ Encodes each character of the given data into a variety of formats.
35
38
  Base64 encodes the data. If the `strict` or `url` option value is given,
36
39
  it will enable `strict` or `url` Base64 encoding mode, respectively.
37
40
 
41
+ `-z`, `--zlib`
42
+ Zlib compresses the data.
43
+
44
+ `-g`, `--gzip`
45
+ gzip compresses the data.
46
+
38
47
  `-c, `--c`
39
48
  Encodes the data as a C string.
40
49
 
@@ -59,6 +68,15 @@ Encodes each character of the given data into a variety of formats.
59
68
  `-P`, `--powershell`
60
69
  Encodes the data as a PowerShell String.
61
70
 
71
+ `--punycode`
72
+ Encodes the data as Punycode.
73
+
74
+ `-Q`, `--quoted-printable`
75
+ Decodes the data as Quoted Printable.
76
+
77
+ `--uuencode`
78
+ uuencodes the data.
79
+
62
80
  `-R`, `--ruby`
63
81
  Encodes the data as a Ruby String.
64
82
 
data/man/ronin-escape.1 CHANGED
@@ -70,6 +70,10 @@ Escapes the data as a Shell String\.
70
70
  Escapes the data as a PowerShell String\.
71
71
  .LP
72
72
  .TP
73
+ \fB-Q\fR, \fB--quoted-printable\fR
74
+ Escapes the data as Quoted Printable\.
75
+ .LP
76
+ .TP
73
77
  \fB-R\fR, \fB--ruby\fR
74
78
  Escapes the data as a Ruby String\.
75
79
  .LP
@@ -52,6 +52,9 @@ Escapes each special character for a variety of encodings.
52
52
  `-P`, `--powershell`
53
53
  Escapes the data as a PowerShell String.
54
54
 
55
+ `-Q`, `--quoted-printable`
56
+ Escapes the data as Quoted Printable.
57
+
55
58
  `-R`, `--ruby`
56
59
  Escapes the data as a Ruby String.
57
60
 
data/man/ronin-hexdump.1 CHANGED
@@ -310,6 +310,195 @@ Background colors:
310
310
  \fBon_white\fR
311
311
  .RE
312
312
  .LP
313
+ .SH EXAMPLES
314
+ .LP
315
+ .PP
316
+ Hexdump a file:
317
+ .LP
318
+ .nf
319
+ \[Do] ronin hexdump \[sl]bin\[sl]ls
320
+ 00000000 7f 45 4c 46 02 01 01 00 00 00 00 00 00 00 00 00 \[or]\.ELF\.\.\.\.\.\.\.\.\.\.\.\.\[or]
321
+ 00000010 03 00 3e 00 01 00 00 00 d0 6b 00 00 00 00 00 00 \[or]\.\.>\.\.\.\.\.\.k\.\.\.\.\.\.\[or]
322
+ 00000020 40 00 00 00 00 00 00 00 18 23 02 00 00 00 00 00 \[or]\[at]\.\.\.\.\.\.\.\.\[sh]\.\.\.\.\.\.\[or]
323
+ 00000030 00 00 00 00 40 00 38 00 0d 00 40 00 20 00 1f 00 \[or]\.\.\.\.\[at]\.8\.\.\.\[at]\. \.\.\.\[or]
324
+ 00000040 06 00 00 00 04 00 00 00 40 00 00 00 00 00 00 00 \[or]\.\.\.\.\.\.\.\.\[at]\.\.\.\.\.\.\.\[or]
325
+ 00000050 40 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 \[or]\[at]\.\.\.\.\.\.\.\[at]\.\.\.\.\.\.\.\[or]
326
+ \.\.\.
327
+ .fi
328
+ .LP
329
+ .PP
330
+ Hexdump a UTF\-8 data:
331
+ .LP
332
+ .nf
333
+ \[Do] ronin hexdump \-\-encoding utf8 file\.txt
334
+ 00000000 e8 80 80 e8 80 80 e8 80 80 e8 80 80 e8 80 80 e8 \[or]耀耀耀耀耀\.\[or]
335
+ 00000010 80 80 e8 80 80 e8 80 80 \[or]\.\.耀耀\[or]
336
+ 00000018
337
+ .fi
338
+ .LP
339
+ .PP
340
+ Control the number of columns:
341
+ .LP
342
+ .nf
343
+ \[Do] ronin hexdump \-\-columns 10 a\.txt
344
+ 00000000 41 41 41 41 41 41 41 41 41 41 \[or]AAAAAAAAAA\[or]
345
+ \.\.\.
346
+ .fi
347
+ .LP
348
+ .PP
349
+ Show repeating data instead of omitting them with a \fB*\fR:
350
+ .LP
351
+ .nf
352
+ \[Do] ronin hexdump \-\-repeating a\.txt
353
+ 00000000 41 41 41 41 41 41 41 41 41 41 \[or]AAAAAAAAAA\[or]
354
+ 0000000a 41 41 41 41 41 41 41 41 41 41 \[or]AAAAAAAAAA\[or]
355
+ 00000014 41 41 41 41 41 41 41 41 41 41 \[or]AAAAAAAAAA\[or]
356
+ .fi
357
+ .LP
358
+ .PP
359
+ Grouping columns together:
360
+ .LP
361
+ .nf
362
+ \[Do] ronin hexdump \-\-group\-columns 4 \-\-columns 16 abcd\.txt
363
+ 00000000 41 42 43 44 41 42 43 44 41 42 43 44 41 42 43 44 \[or]ABCDABCDABCDABCD\[or]
364
+ \.\.\.
365
+ .fi
366
+ .LP
367
+ .PP
368
+ Grouping the characters together:
369
+ .LP
370
+ .nf
371
+ \[Do] ronin hexdump \-\-group\-chars 4 abcd\.txt
372
+ 00000000 41 42 43 44 41 42 43 44 41 42 43 44 41 42 43 44 \[or]ABCD\[or]ABCD\[or]ABCD\[or]ABCD\[or]
373
+ \.\.\.
374
+ .fi
375
+ .LP
376
+ .PP
377
+ Disabling the characters column:
378
+ .LP
379
+ .nf
380
+ \[Do] ronin hexdump \-\-no\-chars\-column a\.txt
381
+ 00000000 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41
382
+ \.\.\.
383
+ .fi
384
+ .LP
385
+ .PP
386
+ Print the numbers as decimals (base 10):
387
+ .LP
388
+ .nf
389
+ \[Do] ronin hexdump \-\-base 10 hello\.txt
390
+ 00000000 104 101 108 108 111 0 \[or]hello\.\[or]
391
+ .fi
392
+ .LP
393
+ .PP
394
+ Print the numbers as octals (base 8):
395
+ .LP
396
+ .nf
397
+ \[Do] ronin hexdump \-\-base 8 hello\.txt
398
+ 00000000 0150 0145 0154 0154 0157 0000 \[or]hello\.\[or]
399
+ .fi
400
+ .LP
401
+ .PP
402
+ Print the numbers as binary (base 2):
403
+ .LP
404
+ .nf
405
+ \[Do] ronin hexdump \-\-base 2 hello\.txt
406
+ 00000000 01101000 01100101 01101100 01101100 01101111 00000000 \[or]hello\.\[or]
407
+ .fi
408
+ .LP
409
+ .PP
410
+ Decode \fBuint32\fR values:
411
+ .LP
412
+ .nf
413
+ \[Do] ronin hexdump \-\-type uint32 abcd\.txt
414
+ 00000000 44434241 44434241 44434241 44434241 \[or]ABCDABCDABCDABCD\[or]
415
+ \.\.\.
416
+ .fi
417
+ .LP
418
+ .PP
419
+ Decode \fBuint32\fR (little\-endian) values:
420
+ .LP
421
+ .nf
422
+ \[Do] ronin hexdump \-\-type uint32\[ru]le abcd\.txt
423
+ 00000000 44434241 44434241 44434241 44434241 \[or]ABCDABCDABCDABCD\[or]
424
+ \.\.\.
425
+ .fi
426
+ .LP
427
+ .PP
428
+ Decode \fBuint32\fR (big\-endian) values:
429
+ .LP
430
+ .nf
431
+ \[Do] ronin hexdump \-\-type uint32\[ru]be abcd\.txt
432
+ 00000000 41424344 41424344 41424344 41424344 \[or]ABCDABCDABCDABCD\[or]
433
+ \.\.\.
434
+ .fi
435
+ .LP
436
+ .PP
437
+ Decode \fBint32\fR values:
438
+ .LP
439
+ .nf
440
+ \[Do] ronin hexdump \-\-type int32 \-\-base 10 data\.bin
441
+ 00000000 65535 \-1 \[or]\.\.\.\.\.\.\.\.\[or]
442
+ 00000008
443
+ .fi
444
+ .LP
445
+ .PP
446
+ Decode characters:
447
+ .LP
448
+ .nf
449
+ \[Do] ronin hexdump \-\-type char hello\.txt
450
+ 00000000 h e l l o \e0 \[or]hello\.\[or]
451
+ 00000006
452
+ .fi
453
+ .LP
454
+ .PP
455
+ Decode \fBfloat\fR values:
456
+ .LP
457
+ .nf
458
+ \[Do] ronin hexdump \-\-type float64\[ru]le floats\.bin
459
+ 00000000 0\.000000e\[pl]00 1\.000000e\[pl]00 \[or]\.\.\.\.\.\.\.\.\.\.\.\.\.\.\.?\[or]
460
+ 00000010 \-1\.000000e\[pl]00 NaN \[or]\.\.\.\.\.\.\.\.\.\.\.\.\.\.\.\.\[or]
461
+ \.\.\.
462
+ .fi
463
+ .LP
464
+ .PP
465
+ Skipping to an offset:
466
+ .LP
467
+ .nf
468
+ \[Do] ronin hexdump \-\-offset 7 data\.bin
469
+ .fi
470
+ .LP
471
+ .PP
472
+ Zero\-pad the data:
473
+ .LP
474
+ .nf
475
+ \[Do] ronin hexdump \-\-type uint32\[ru]be \-\-zero\-pad abcd\.txt
476
+ 00000000 41424344 41424344 41424344 41424344 \[or]ABCDABCDABCDABCD\[or]
477
+ 00000010 41420000 \[or]AB\.\.\[or]
478
+ 00000014
479
+ .fi
480
+ .LP
481
+ .PP
482
+ ANSI coloring:
483
+ .LP
484
+ .nf
485
+ \[Do] ronin hexdump \-\-style\-index white \e
486
+ \-\-style\-numeric green \e
487
+ \-\-style\-chars cyan \e
488
+ data\.bin
489
+ .fi
490
+ .LP
491
+ .PP
492
+ ANSI highlighting:
493
+ .LP
494
+ .nf
495
+ \[Do] ronin hexdump \-\-highlight\-index \[sl]00\[Do]\[sl]:white,bold \e
496
+ \-\-highlight\-numeric \[sl]\(ha\[lB]8\-f\[rB]\[lB]0\-9a\-f\[rB]\[Do]\[sl]:faint \e
497
+ \-\-highlight\-numeric \[sl]f\[sl]:cyan \e
498
+ \-\-highlight\-numeric 00:black,on\[ru]red \e
499
+ \-\-highlight\-chars \[sl]\[lB]\(ha\e\.\[rB]\[pl]\[sl]:green data\.bin
500
+ .fi
501
+ .LP
313
502
  .SH AUTHOR
314
503
  .LP
315
504
  .PP