ronin 2.0.5 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ruby.yml +3 -3
- data/.gitignore +1 -0
- data/.rubocop.yml +5 -1
- data/.ruby-version +1 -1
- data/ChangeLog.md +62 -1
- data/Gemfile +66 -29
- data/README.md +165 -20
- data/Rakefile +9 -0
- data/data/completions/ronin +655 -0
- data/data/templates/dns_proxy.rb.erb +35 -0
- data/gemspec.yml +29 -15
- data/lib/ronin/cli/binary_template.rb +124 -0
- data/lib/ronin/cli/commands/archive.rb +104 -0
- data/lib/ronin/cli/commands/banner_grab.rb +2 -0
- data/lib/ronin/cli/commands/bitflip.rb +1 -1
- data/lib/ronin/cli/commands/bitsquat.rb +119 -0
- data/lib/ronin/cli/commands/cert_dump.rb +20 -4
- data/lib/ronin/cli/commands/cert_gen.rb +9 -19
- data/lib/ronin/cli/commands/cert_grab.rb +4 -3
- data/lib/ronin/cli/commands/completion.rb +115 -0
- data/lib/ronin/cli/commands/dns_proxy.rb +239 -0
- data/lib/ronin/cli/commands/http.rb +80 -8
- data/lib/ronin/cli/commands/ip.rb +101 -0
- data/lib/ronin/cli/commands/iprange.rb +25 -8
- data/lib/ronin/cli/commands/netcat.rb +2 -0
- data/lib/ronin/cli/commands/new/dns_listener.rb +37 -0
- data/lib/ronin/cli/commands/new/dns_proxy.rb +99 -0
- data/lib/ronin/cli/commands/new/exploit.rb +34 -0
- data/lib/ronin/cli/commands/new/http_listener.rb +37 -0
- data/lib/ronin/cli/commands/new/nokogiri.rb +33 -0
- data/lib/ronin/cli/commands/new/payload.rb +34 -0
- data/lib/ronin/cli/commands/new/project.rb +1 -1
- data/lib/ronin/cli/commands/new/script.rb +1 -1
- data/lib/ronin/cli/commands/new/web_app.rb +37 -0
- data/lib/ronin/cli/commands/new/web_server.rb +37 -0
- data/lib/ronin/cli/commands/new/web_spider.rb +37 -0
- data/lib/ronin/cli/commands/new.rb +3 -1
- data/lib/ronin/cli/commands/pack.rb +339 -0
- data/lib/ronin/cli/commands/public_suffix_list.rb +2 -0
- data/lib/ronin/cli/commands/tld_list.rb +2 -0
- data/lib/ronin/cli/commands/unarchive.rb +128 -0
- data/lib/ronin/cli/commands/unhexdump.rb +3 -1
- data/lib/ronin/cli/commands/unpack.rb +195 -0
- data/lib/ronin/cli/commands/url.rb +2 -0
- data/lib/ronin/cli/http_shell.rb +25 -0
- data/lib/ronin/cli.rb +10 -0
- data/lib/ronin/version.rb +1 -1
- data/man/ronin-archive.1.md +49 -0
- data/man/ronin-asn.1 +60 -77
- data/man/ronin-asn.1.md +25 -21
- data/man/ronin-banner-grab.1 +10 -21
- data/man/ronin-banner-grab.1.md +9 -5
- data/man/ronin-bitflip.1 +35 -61
- data/man/ronin-bitflip.1.md +30 -26
- data/man/ronin-bitsquat.1 +40 -0
- data/man/ronin-bitsquat.1.md +43 -0
- data/man/ronin-cert-dump.1 +44 -54
- data/man/ronin-cert-dump.1.md +18 -14
- data/man/ronin-cert-gen.1 +73 -94
- data/man/ronin-cert-gen.1.md +38 -34
- data/man/ronin-cert-grab.1 +29 -37
- data/man/ronin-cert-grab.1.md +12 -8
- data/man/ronin-completion.1 +78 -0
- data/man/ronin-completion.1.md +80 -0
- data/man/ronin-decode.1 +32 -63
- data/man/ronin-decode.1.md +29 -25
- data/man/ronin-decrypt.1 +42 -57
- data/man/ronin-decrypt.1.md +20 -16
- data/man/ronin-dns-proxy.1 +100 -0
- data/man/ronin-dns-proxy.1.md +70 -0
- data/man/ronin-dns.1 +10 -21
- data/man/ronin-dns.1.md +9 -5
- data/man/ronin-email-addr.1 +27 -40
- data/man/ronin-email-addr.1.md +15 -11
- data/man/ronin-encode.1 +93 -63
- data/man/ronin-encode.1.md +64 -26
- data/man/ronin-encrypt.1 +42 -57
- data/man/ronin-encrypt.1.md +20 -16
- data/man/ronin-entropy.1 +11 -21
- data/man/ronin-entropy.1.md +8 -4
- data/man/ronin-escape.1 +22 -46
- data/man/ronin-escape.1.md +22 -18
- data/man/ronin-extract.1 +74 -149
- data/man/ronin-extract.1.md +73 -69
- data/man/ronin-grep.1 +77 -155
- data/man/ronin-grep.1.md +76 -72
- data/man/ronin-help.1 +3 -14
- data/man/ronin-help.1.md +2 -2
- data/man/ronin-hexdump.1 +249 -265
- data/man/ronin-hexdump.1.md +93 -89
- data/man/ronin-highlight.1 +8 -18
- data/man/ronin-highlight.1.md +8 -4
- data/man/ronin-hmac.1 +17 -30
- data/man/ronin-hmac.1.md +14 -10
- data/man/ronin-homoglyph.1 +11 -22
- data/man/ronin-homoglyph.1.md +10 -6
- data/man/ronin-host.1 +23 -47
- data/man/ronin-host.1.md +22 -18
- data/man/ronin-http.1 +40 -69
- data/man/ronin-http.1.md +40 -30
- data/man/ronin-ip.1 +70 -80
- data/man/ronin-ip.1.md +44 -28
- data/man/ronin-iprange.1 +14 -22
- data/man/ronin-iprange.1.md +12 -5
- data/man/ronin-irb.1 +9 -17
- data/man/ronin-irb.1.md +7 -3
- data/man/ronin-md5.1 +13 -24
- data/man/ronin-md5.1.md +11 -7
- data/man/ronin-netcat.1 +25 -51
- data/man/ronin-netcat.1.md +25 -21
- data/man/ronin-new-dns-proxy.1 +45 -0
- data/man/ronin-new-dns-proxy.1.md +44 -0
- data/man/ronin-new-project.1 +32 -45
- data/man/ronin-new-project.1.md +11 -11
- data/man/ronin-new-script.1 +10 -22
- data/man/ronin-new-script.1.md +4 -4
- data/man/ronin-new.1 +56 -31
- data/man/ronin-new.1.md +48 -8
- data/man/ronin-pack.1 +979 -0
- data/man/ronin-pack.1.md +929 -0
- data/man/ronin-proxy.1 +37 -63
- data/man/ronin-proxy.1.md +29 -25
- data/man/ronin-public-suffix-list.1 +16 -32
- data/man/ronin-public-suffix-list.1.md +13 -9
- data/man/ronin-quote.1 +17 -36
- data/man/ronin-quote.1.md +17 -13
- data/man/ronin-rot.1 +26 -39
- data/man/ronin-rot.1.md +15 -11
- data/man/ronin-sha1.1 +13 -24
- data/man/ronin-sha1.1.md +11 -7
- data/man/ronin-sha256.1 +13 -24
- data/man/ronin-sha256.1.md +11 -7
- data/man/ronin-sha512.1 +13 -24
- data/man/ronin-sha512.1.md +11 -7
- data/man/ronin-strings.1 +30 -55
- data/man/ronin-strings.1.md +27 -23
- data/man/ronin-tips.1 +8 -16
- data/man/ronin-tips.1.md +7 -3
- data/man/ronin-tld-list.1 +16 -32
- data/man/ronin-tld-list.1.md +13 -9
- data/man/ronin-typo.1 +14 -28
- data/man/ronin-typo.1.md +13 -9
- data/man/ronin-typosquat.1 +15 -32
- data/man/ronin-typosquat.1.md +15 -11
- data/man/ronin-unarchive.1.md +41 -0
- data/man/ronin-unescape.1 +22 -46
- data/man/ronin-unescape.1.md +22 -18
- data/man/ronin-unhexdump.1 +81 -91
- data/man/ronin-unhexdump.1.md +16 -12
- data/man/ronin-unpack.1 +980 -0
- data/man/ronin-unpack.1.md +920 -0
- data/man/ronin-unquote.1 +17 -36
- data/man/ronin-unquote.1.md +17 -13
- data/man/ronin-url.1 +19 -40
- data/man/ronin-url.1.md +19 -15
- data/man/ronin-xor.1 +14 -28
- data/man/ronin-xor.1.md +13 -9
- data/man/ronin.1 +208 -29
- data/man/ronin.1.md +156 -11
- data/scripts/setup +58 -0
- metadata +157 -67
- data/lib/ronin/config.rb +0 -95
- /data/data/{new → templates}/project/.gitignore +0 -0
- /data/data/{new → templates}/project/.ruby-version.erb +0 -0
- /data/data/{new → templates}/project/Dockerfile.erb +0 -0
- /data/data/{new → templates}/project/Gemfile.erb +0 -0
- /data/data/{new → templates}/project/Rakefile +0 -0
- /data/data/{new → templates}/project/project.rb.erb +0 -0
- /data/data/{new → templates}/script.rb.erb +0 -0
data/lib/ronin/cli/http_shell.rb
CHANGED
@@ -310,6 +310,31 @@ module Ronin
|
|
310
310
|
end
|
311
311
|
end
|
312
312
|
|
313
|
+
command :cookie, summary: 'Prints the Cookie value'
|
314
|
+
|
315
|
+
#
|
316
|
+
# The `cookie` shell command.
|
317
|
+
#
|
318
|
+
def cookie
|
319
|
+
if @http.cookie
|
320
|
+
puts @http.cookie
|
321
|
+
end
|
322
|
+
end
|
323
|
+
|
324
|
+
command :"set-cookie", method_name: :set_cookie,
|
325
|
+
usage: 'NAME=VALUE; ...',
|
326
|
+
summary: 'Sets the Cookie value'
|
327
|
+
|
328
|
+
#
|
329
|
+
# The `set-cookie` shell command.
|
330
|
+
#
|
331
|
+
# @param [Array<String>] params
|
332
|
+
# The `NAME=VALUE` param pairs.
|
333
|
+
#
|
334
|
+
def set_cookie(*params)
|
335
|
+
@http.cookie = params.join(' ')
|
336
|
+
end
|
337
|
+
|
313
338
|
#
|
314
339
|
# Joins the given path with the {#base_url}.
|
315
340
|
#
|
data/lib/ronin/cli.rb
CHANGED
@@ -17,6 +17,7 @@
|
|
17
17
|
#
|
18
18
|
|
19
19
|
require 'ronin/version'
|
20
|
+
require 'ronin/core/cli/help/banner'
|
20
21
|
|
21
22
|
require 'command_kit/commands'
|
22
23
|
require 'command_kit/commands/auto_load'
|
@@ -38,6 +39,7 @@ module Ronin
|
|
38
39
|
namespace: "#{self}::Commands"
|
39
40
|
)
|
40
41
|
include CommandKit::Options::Version
|
42
|
+
include Core::CLI::Help::Banner
|
41
43
|
|
42
44
|
command_name 'ronin'
|
43
45
|
version Ronin::VERSION
|
@@ -46,15 +48,23 @@ module Ronin
|
|
46
48
|
command_aliases['dec'] = 'decode'
|
47
49
|
command_aliases['nc'] = 'netcat'
|
48
50
|
|
51
|
+
command_aliases['tlds'] = 'tld-list'
|
52
|
+
command_aliases['public-suffixes'] = 'public-suffix-list'
|
53
|
+
|
49
54
|
# Additional `ronin-` commands to checkout.
|
50
55
|
ADDITIONAL_RONIN_COMMANDS = %w[
|
51
56
|
ronin-repos
|
57
|
+
ronin-wordlists
|
52
58
|
ronin-db
|
53
59
|
ronin-web
|
54
60
|
ronin-fuzzer
|
61
|
+
ronin-masscan
|
62
|
+
ronin-nmap
|
63
|
+
ronin-recon
|
55
64
|
ronin-payloads
|
56
65
|
ronin-exploits
|
57
66
|
ronin-vulns
|
67
|
+
ronin-app
|
58
68
|
]
|
59
69
|
|
60
70
|
#
|
data/lib/ronin/version.rb
CHANGED
@@ -0,0 +1,49 @@
|
|
1
|
+
# ronin-archive 1 "2024-01-18" Ronin "User Manuals"
|
2
|
+
|
3
|
+
## NAME
|
4
|
+
|
5
|
+
ronin-archive - Archive the files.
|
6
|
+
|
7
|
+
## SYNOPSIS
|
8
|
+
|
9
|
+
`ronin archive` [*options*] {`-o`,`--output` *PATH* } *FILE* ...
|
10
|
+
|
11
|
+
## DESCRIPTION
|
12
|
+
|
13
|
+
Archive the files.
|
14
|
+
|
15
|
+
## ARGUMENTS
|
16
|
+
|
17
|
+
*FILE*
|
18
|
+
: A file to add to the output archive.
|
19
|
+
|
20
|
+
## OPTIONS
|
21
|
+
|
22
|
+
`-f`, `--format` `tar`\|`zip`
|
23
|
+
: The archive format to use. If not specified the archive format will be
|
24
|
+
inferred from the output file's extension.
|
25
|
+
|
26
|
+
`-o`, `--output` *PATH*
|
27
|
+
: Path to the output file.
|
28
|
+
|
29
|
+
## EXAMPLES
|
30
|
+
|
31
|
+
Archive files using tar format:
|
32
|
+
|
33
|
+
$ ronin archive -o archived.tar file1.txt file2.txt
|
34
|
+
|
35
|
+
Archive files using zip format:
|
36
|
+
|
37
|
+
$ ronin archive -o archived.zip file1.txt file2.txt
|
38
|
+
|
39
|
+
Explicitly specify the archive format:
|
40
|
+
|
41
|
+
$ ronin archive -f zip archive.jar file1.txt file2.txt
|
42
|
+
|
43
|
+
## AUTHOR
|
44
|
+
|
45
|
+
Postmodern <postmodern.mod3@gmail.com>
|
46
|
+
|
47
|
+
## SEE ALSO
|
48
|
+
|
49
|
+
[ronin-unarchive](ronin-unarchive.1.md)
|
data/man/ronin-asn.1
CHANGED
@@ -1,134 +1,117 @@
|
|
1
|
-
.\" Generated by kramdown-man 0.1
|
1
|
+
.\" Generated by kramdown-man 1.0.1
|
2
2
|
.\" https://github.com/postmodern/kramdown-man#readme
|
3
3
|
.TH ronin-asn 1 "2023-02-01" Ronin "User Manuals"
|
4
|
-
.
|
4
|
+
.SH NAME
|
5
|
+
.PP
|
6
|
+
ronin\-asn \- Queries or searches for ASN information
|
5
7
|
.SH SYNOPSIS
|
6
|
-
.
|
7
|
-
|
8
|
-
\fBronin asn\fR \[lB]\fIoptions\fP\[rB] \[lB]\fB-v\fR \[or] \fB--enum-ips\fR\[rB] \[lC]\fB-n\fR,\fB--number\fR \fINUMBER\fP \[or] \fB-c\fR,\fB--country\fR \fICOUNTRY\fP \[or] \fB-N\fR,\fB--name\fR \fINAME\fP \[or] \fB-I\fR,\fB--ip\fR \fIIP\fP\[rC]
|
9
|
-
.LP
|
8
|
+
.PP
|
9
|
+
\fBronin asn\fR \[lB]\fIoptions\fP\[rB] \[lB]\fB\-v\fR \[or] \fB\-\-enum\-ips\fR\[rB] \[lC]\fB\-n\fR,\fB\-\-number\fR \fINUMBER\fP \[or] \fB\-c\fR,\fB\-\-country\fR \fICOUNTRY\fP \[or] \fB\-N\fR,\fB\-\-name\fR \fINAME\fP \[or] \fB\-I\fR,\fB\-\-ip\fR \fIIP\fP\[rC]
|
10
10
|
.SH DESCRIPTION
|
11
|
-
.LP
|
12
11
|
.PP
|
13
12
|
Queries ASN information for the given \fIIP\fP or searches for the ASN records for
|
14
13
|
the given \fINUMBER\fP, \fINAME\fP, or \fICOUNTRY\fP code\.
|
15
|
-
.LP
|
16
14
|
.SH OPTIONS
|
17
|
-
.LP
|
18
15
|
.TP
|
19
|
-
\fB
|
16
|
+
\fB\-v\fR, \fB\-\-verbose\fR
|
20
17
|
Prints multi\-line human readable output\.
|
21
|
-
.LP
|
22
18
|
.TP
|
23
|
-
\fB
|
19
|
+
\fB\-U\fR, \fB\-\-url\fR \fIURI\fP
|
24
20
|
Overrides the default ASN list URL\. Defaults to
|
25
|
-
\fBhttps
|
26
|
-
.LP
|
21
|
+
\fBhttps:\[sl]\[sl]iptoasn\.com\[sl]data\[sl]ip2asn\-combined\.tsv\.gz\fR\.
|
27
22
|
.TP
|
28
|
-
\fB
|
23
|
+
\fB\-f\fR, \fB\-\-file\fR \fIFILE\fP
|
29
24
|
Overrides the default ASN list file\. Defaults to
|
30
|
-
\fB
|
31
|
-
.LP
|
25
|
+
\fB\[ti]\[sl]\.cache\[sl]ronin\[sl]ronin\-support\[sl]ip2asn\-combined\.tsv\.gz\fR\.
|
32
26
|
.TP
|
33
|
-
\fB
|
27
|
+
\fB\-u\fR, \fB\-\-update\fR
|
34
28
|
Updates the ASN list file\.
|
35
|
-
.LP
|
36
29
|
.TP
|
37
|
-
\fB
|
30
|
+
\fB\-n\fR, \fB\-\-number\fR \fINUM\fP\[or]AS\fINUM\fP
|
38
31
|
Searches for all ASN records with the AS number\.
|
39
|
-
.LP
|
40
32
|
.TP
|
41
|
-
\fB
|
33
|
+
\fB\-C\fR, \fB\-\-country\-code\fR \fIXX\fP\[or]\fBNone\fR\[or]\fBUnknown\fR
|
42
34
|
Searches for all ASN records with the country code\.
|
43
|
-
.LP
|
44
35
|
.TP
|
45
|
-
\fB
|
36
|
+
\fB\-N\fR, \fB\-\-name\fR \fINAME\fP
|
46
37
|
Searches for all ASN records with the matching name\.
|
47
|
-
.LP
|
48
38
|
.TP
|
49
|
-
\fB
|
39
|
+
\fB\-I\fR, \fB\-\-ip\fR \fIIP\fP
|
50
40
|
Queries the ASN record for the IP\.
|
51
|
-
.LP
|
52
41
|
.TP
|
53
|
-
\fB
|
42
|
+
\fB\-4\fR, \fB\-\-ipv4\fR
|
54
43
|
Filters ASN records for only IPv4 ranges\.
|
55
|
-
.LP
|
56
44
|
.TP
|
57
|
-
\fB
|
45
|
+
\fB\-6\fR, \fB\-\-ipv6\fR
|
58
46
|
Filter ASN records for only IPv6 ranges\.
|
59
|
-
.LP
|
60
47
|
.TP
|
61
|
-
\fB
|
48
|
+
\fB\-E\fR, \fB\-\-enum\-ips\fR
|
62
49
|
Enumerate over the IPs within the ASN ranges\.
|
63
|
-
.LP
|
64
50
|
.TP
|
65
|
-
\fB
|
51
|
+
\fB\-h\fR, \fB\-\-help\fR
|
66
52
|
Print help information
|
67
|
-
.LP
|
68
53
|
.SH EXAMPLES
|
69
|
-
.LP
|
70
54
|
.PP
|
71
55
|
Print verbose output for all ASN records for \fBAS15133\fR:
|
72
|
-
.
|
73
|
-
.
|
74
|
-
|
75
|
-
|
76
|
-
.
|
77
|
-
.
|
78
|
-
|
79
|
-
|
80
|
-
.
|
81
|
-
|
82
|
-
.
|
83
|
-
|
56
|
+
.PP
|
57
|
+
.RS 4
|
58
|
+
.EX
|
59
|
+
\[Do] ronin asn \-v \-n 15133
|
60
|
+
.EE
|
61
|
+
.RE
|
62
|
+
.PP
|
63
|
+
Print verbose output for the ASN record for the IP address \fB93\.184\.216\.34\fR:
|
64
|
+
.PP
|
65
|
+
.RS 4
|
66
|
+
.EX
|
67
|
+
\[Do] ronin asn \-v \-I 93\.184\.216\.34
|
68
|
+
.EE
|
69
|
+
.RE
|
84
70
|
.PP
|
85
71
|
Prints all ASN records for the given country code:
|
86
|
-
.
|
87
|
-
.
|
88
|
-
|
89
|
-
|
90
|
-
.
|
72
|
+
.PP
|
73
|
+
.RS 4
|
74
|
+
.EX
|
75
|
+
\[Do] ronin asn \-C US
|
76
|
+
.EE
|
77
|
+
.RE
|
91
78
|
.PP
|
92
79
|
Prints all ASN records for the given ISP:
|
93
|
-
.
|
94
|
-
.
|
95
|
-
|
96
|
-
|
97
|
-
.
|
80
|
+
.PP
|
81
|
+
.RS 4
|
82
|
+
.EX
|
83
|
+
\[Do] ronin asn \-N EDGECAST
|
84
|
+
.EE
|
85
|
+
.RE
|
98
86
|
.PP
|
99
87
|
Enumerate over the IP addresses in the IP range for \fBAS15133\fR:
|
100
|
-
.
|
101
|
-
.
|
102
|
-
|
103
|
-
|
104
|
-
.
|
88
|
+
.PP
|
89
|
+
.RS 4
|
90
|
+
.EX
|
91
|
+
\[Do] ronin asn \-\-enum\-ips \-n 15133
|
92
|
+
.EE
|
93
|
+
.RE
|
105
94
|
.PP
|
106
95
|
Enumerate over all IP addresses for all ASN records belonging to the given ISP:
|
107
|
-
.
|
108
|
-
.
|
109
|
-
|
110
|
-
|
111
|
-
.
|
96
|
+
.PP
|
97
|
+
.RS 4
|
98
|
+
.EX
|
99
|
+
\[Do] ronin asn \-\-enum\-ips \-N EDGECAST
|
100
|
+
.EE
|
101
|
+
.RE
|
112
102
|
.SH ENVIRONMENT
|
113
|
-
.LP
|
114
103
|
.TP
|
115
104
|
\fIHOME\fP
|
116
105
|
Alternate location for the user\[cq]s home directory\.
|
117
|
-
.LP
|
118
106
|
.TP
|
119
107
|
\fIXDG\[ru]CONFIG\[ru]HOME\fP
|
120
|
-
Alternate location for the \fB
|
121
|
-
.LP
|
108
|
+
Alternate location for the \fB\[ti]\[sl]\.config\fR directory\.
|
122
109
|
.SH FILES
|
123
|
-
.LP
|
124
110
|
.TP
|
125
|
-
\fB
|
111
|
+
\fB\[ti]\[sl]\.cache\[sl]ronin\[sl]ronin\-support\[sl]ip2asn\-combined\.tsv\.gz\fR
|
126
112
|
The location of the downloaded ASN list\.
|
127
|
-
.LP
|
128
113
|
.SH AUTHOR
|
129
|
-
.LP
|
130
114
|
.PP
|
131
115
|
Postmodern
|
132
116
|
.MT postmodern\.mod3\[at]gmail\.com
|
133
117
|
.ME
|
134
|
-
.LP
|
data/man/ronin-asn.1.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# ronin-asn 1 "2023-02-01" Ronin "User Manuals"
|
2
2
|
|
3
|
+
## NAME
|
4
|
+
|
5
|
+
ronin-asn - Queries or searches for ASN information
|
6
|
+
|
3
7
|
## SYNOPSIS
|
4
8
|
|
5
9
|
`ronin asn` [*options*] [`-v` \| `--enum-ips`] {`-n`,`--number` *NUMBER* \| `-c`,`--country` *COUNTRY* \| `-N`,`--name` *NAME* \| `-I`,`--ip` *IP*}
|
@@ -12,81 +16,81 @@ the given *NUMBER*, *NAME*, or *COUNTRY* code.
|
|
12
16
|
## OPTIONS
|
13
17
|
|
14
18
|
`-v`, `--verbose`
|
15
|
-
|
19
|
+
: Prints multi-line human readable output.
|
16
20
|
|
17
21
|
`-U`, `--url` *URI*
|
18
|
-
|
22
|
+
: Overrides the default ASN list URL. Defaults to
|
19
23
|
`https://iptoasn.com/data/ip2asn-combined.tsv.gz`.
|
20
24
|
|
21
25
|
`-f`, `--file` *FILE*
|
22
|
-
|
26
|
+
: Overrides the default ASN list file. Defaults to
|
23
27
|
`~/.cache/ronin/ronin-support/ip2asn-combined.tsv.gz`.
|
24
28
|
|
25
29
|
`-u`, `--update`
|
26
|
-
|
30
|
+
: Updates the ASN list file.
|
27
31
|
|
28
32
|
`-n`, `--number` *NUM*\|AS*NUM*
|
29
|
-
|
33
|
+
: Searches for all ASN records with the AS number.
|
30
34
|
|
31
35
|
`-C`, `--country-code` *XX*|`None`|`Unknown`
|
32
|
-
|
36
|
+
: Searches for all ASN records with the country code.
|
33
37
|
|
34
38
|
`-N`, `--name` *NAME*
|
35
|
-
|
39
|
+
: Searches for all ASN records with the matching name.
|
36
40
|
|
37
41
|
`-I`, `--ip` *IP*
|
38
|
-
|
42
|
+
: Queries the ASN record for the IP.
|
39
43
|
|
40
44
|
`-4`, `--ipv4`
|
41
|
-
|
45
|
+
: Filters ASN records for only IPv4 ranges.
|
42
46
|
|
43
47
|
`-6`, `--ipv6`
|
44
|
-
|
48
|
+
: Filter ASN records for only IPv6 ranges.
|
45
49
|
|
46
50
|
`-E`, `--enum-ips`
|
47
|
-
|
51
|
+
: Enumerate over the IPs within the ASN ranges.
|
48
52
|
|
49
53
|
`-h`, `--help`
|
50
|
-
|
54
|
+
: Print help information
|
51
55
|
|
52
56
|
## EXAMPLES
|
53
57
|
|
54
58
|
Print verbose output for all ASN records for `AS15133`:
|
55
59
|
|
56
|
-
|
60
|
+
$ ronin asn -v -n 15133
|
57
61
|
|
58
62
|
Print verbose output for the ASN record for the IP address `93.184.216.34`:
|
59
63
|
|
60
|
-
|
64
|
+
$ ronin asn -v -I 93.184.216.34
|
61
65
|
|
62
66
|
Prints all ASN records for the given country code:
|
63
67
|
|
64
|
-
|
68
|
+
$ ronin asn -C US
|
65
69
|
|
66
70
|
Prints all ASN records for the given ISP:
|
67
71
|
|
68
|
-
|
72
|
+
$ ronin asn -N EDGECAST
|
69
73
|
|
70
74
|
Enumerate over the IP addresses in the IP range for `AS15133`:
|
71
75
|
|
72
|
-
|
76
|
+
$ ronin asn --enum-ips -n 15133
|
73
77
|
|
74
78
|
Enumerate over all IP addresses for all ASN records belonging to the given ISP:
|
75
79
|
|
76
|
-
|
80
|
+
$ ronin asn --enum-ips -N EDGECAST
|
77
81
|
|
78
82
|
## ENVIRONMENT
|
79
83
|
|
80
84
|
*HOME*
|
81
|
-
|
85
|
+
: Alternate location for the user's home directory.
|
82
86
|
|
83
87
|
*XDG_CONFIG_HOME*
|
84
|
-
|
88
|
+
: Alternate location for the `~/.config` directory.
|
85
89
|
|
86
90
|
## FILES
|
87
91
|
|
88
92
|
`~/.cache/ronin/ronin-support/ip2asn-combined.tsv.gz`
|
89
|
-
|
93
|
+
: The location of the downloaded ASN list.
|
90
94
|
|
91
95
|
## AUTHOR
|
92
96
|
|
data/man/ronin-banner-grab.1
CHANGED
@@ -1,45 +1,34 @@
|
|
1
|
-
.\" Generated by kramdown-man 0.1
|
1
|
+
.\" Generated by kramdown-man 1.0.1
|
2
2
|
.\" https://github.com/postmodern/kramdown-man#readme
|
3
3
|
.TH ronin-banner-grab 1 "2023-02-01" Ronin "User Manuals"
|
4
|
-
.
|
4
|
+
.SH NAME
|
5
|
+
.PP
|
6
|
+
ronin\-banner\-grab \- Fetches the banner from one or more TCP services
|
5
7
|
.SH SYNOPSIS
|
6
|
-
.
|
7
|
-
|
8
|
-
\fBronin banner-grab\fR \[lB]\fIoptions\fP\[rB] \[lC]\fIHOST\fP:\fIPORT\fP\[rC] \.\.\.
|
9
|
-
.LP
|
8
|
+
.PP
|
9
|
+
\fBronin banner\-grab\fR \[lB]\fIoptions\fP\[rB] \[lC]\fIHOST\fP:\fIPORT\fP\[rC] \.\.\.
|
10
10
|
.SH DESCRIPTION
|
11
|
-
.LP
|
12
11
|
.PP
|
13
12
|
Fetches the banner from one or more TCP services\.
|
14
|
-
.LP
|
15
13
|
.SH ARGUMENTS
|
16
|
-
.LP
|
17
14
|
.TP
|
18
15
|
\fIHOST\fP:\fIPORT\fP
|
19
16
|
A TCP service to fetch the banner from\.
|
20
|
-
.LP
|
21
17
|
.SH OPTIONS
|
22
|
-
.LP
|
23
18
|
.TP
|
24
|
-
\fB
|
19
|
+
\fB\-f\fR, \fB\-\-file\fR \fIFILE\fP
|
25
20
|
Optional file to read target values from\.
|
26
|
-
.LP
|
27
21
|
.TP
|
28
|
-
\fB
|
22
|
+
\fB\-\-with\-host\-port\fR
|
29
23
|
Print the service with each banner\.
|
30
|
-
.LP
|
31
24
|
.TP
|
32
|
-
\fB
|
25
|
+
\fB\-h\fR, \fB\-\-help\fR
|
33
26
|
Print help information\.
|
34
|
-
.LP
|
35
27
|
.SH AUTHOR
|
36
|
-
.LP
|
37
28
|
.PP
|
38
29
|
Postmodern
|
39
30
|
.MT postmodern\.mod3\[at]gmail\.com
|
40
31
|
.ME
|
41
|
-
.LP
|
42
32
|
.SH SEE ALSO
|
43
|
-
.LP
|
44
33
|
.PP
|
45
|
-
ronin\-cert\-grab(1)
|
34
|
+
.BR ronin\-cert\-grab (1)
|
data/man/ronin-banner-grab.1.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# ronin-banner-grab 1 "2023-02-01" Ronin "User Manuals"
|
2
2
|
|
3
|
+
## NAME
|
4
|
+
|
5
|
+
ronin-banner-grab - Fetches the banner from one or more TCP services
|
6
|
+
|
3
7
|
## SYNOPSIS
|
4
8
|
|
5
9
|
`ronin banner-grab` [*options*] {*HOST*:*PORT*} ...
|
@@ -11,18 +15,18 @@ Fetches the banner from one or more TCP services.
|
|
11
15
|
## ARGUMENTS
|
12
16
|
|
13
17
|
*HOST*:*PORT*
|
14
|
-
|
18
|
+
: A TCP service to fetch the banner from.
|
15
19
|
|
16
20
|
## OPTIONS
|
17
21
|
|
18
22
|
`-f`, `--file` *FILE*
|
19
|
-
|
23
|
+
: Optional file to read target values from.
|
20
24
|
|
21
25
|
`--with-host-port`
|
22
|
-
|
26
|
+
: Print the service with each banner.
|
23
27
|
|
24
28
|
`-h`, `--help`
|
25
|
-
|
29
|
+
: Print help information.
|
26
30
|
|
27
31
|
## AUTHOR
|
28
32
|
|
@@ -30,4 +34,4 @@ Postmodern <postmodern.mod3@gmail.com>
|
|
30
34
|
|
31
35
|
## SEE ALSO
|
32
36
|
|
33
|
-
ronin-cert-grab(1)
|
37
|
+
[ronin-cert-grab](ronin-cert-grab.1.md)
|