ronin 2.1.0 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/ruby.yml +1 -0
- data/ChangeLog.md +15 -1
- data/README.md +1 -1
- data/data/completions/ronin +204 -164
- data/gemspec.yml +1 -1
- data/lib/ronin/cli/binary_template.rb +1 -1
- data/lib/ronin/cli/char_set_options.rb +1 -1
- data/lib/ronin/cli/cipher_command.rb +4 -4
- data/lib/ronin/cli/command.rb +1 -1
- data/lib/ronin/cli/commands/archive.rb +2 -2
- data/lib/ronin/cli/commands/asn.rb +2 -2
- data/lib/ronin/cli/commands/banner_grab.rb +3 -3
- data/lib/ronin/cli/commands/bitflip.rb +3 -3
- data/lib/ronin/cli/commands/bitsquat.rb +2 -2
- data/lib/ronin/cli/commands/cert_dump.rb +3 -3
- data/lib/ronin/cli/commands/cert_gen.rb +2 -2
- data/lib/ronin/cli/commands/cert_grab.rb +3 -3
- data/lib/ronin/cli/commands/completion.rb +1 -1
- data/lib/ronin/cli/commands/decode.rb +16 -13
- data/lib/ronin/cli/commands/decrypt.rb +2 -2
- data/lib/ronin/cli/commands/dns.rb +3 -3
- data/lib/ronin/cli/commands/dns_proxy.rb +2 -2
- data/lib/ronin/cli/commands/email_addr.rb +2 -2
- data/lib/ronin/cli/commands/encode.rb +15 -12
- data/lib/ronin/cli/commands/encrypt.rb +2 -2
- data/lib/ronin/cli/commands/entropy.rb +2 -2
- data/lib/ronin/cli/commands/escape.rb +10 -10
- data/lib/ronin/cli/commands/extract.rb +3 -3
- data/lib/ronin/cli/commands/grep.rb +3 -3
- data/lib/ronin/cli/commands/hexdump.rb +2 -2
- data/lib/ronin/cli/commands/highlight.rb +3 -3
- data/lib/ronin/cli/commands/hmac.rb +3 -3
- data/lib/ronin/cli/commands/homoglyph.rb +2 -2
- data/lib/ronin/cli/commands/host.rb +3 -3
- data/lib/ronin/cli/commands/http.rb +9 -7
- data/lib/ronin/cli/commands/ip.rb +2 -2
- data/lib/ronin/cli/commands/iprange.rb +2 -2
- data/lib/ronin/cli/commands/irb.rb +3 -3
- data/lib/ronin/cli/commands/md5.rb +2 -2
- data/lib/ronin/cli/commands/netcat.rb +2 -2
- data/lib/ronin/cli/commands/new/dns_listener.rb +3 -2
- data/lib/ronin/cli/commands/new/dns_proxy.rb +3 -2
- data/lib/ronin/cli/commands/new/exploit.rb +3 -2
- data/lib/ronin/cli/commands/new/http_listener.rb +3 -2
- data/lib/ronin/cli/commands/new/nokogiri.rb +3 -2
- data/lib/ronin/cli/commands/new/payload.rb +3 -2
- data/lib/ronin/cli/commands/new/project.rb +3 -2
- data/lib/ronin/cli/commands/new/script.rb +3 -2
- data/lib/ronin/cli/commands/new/web_app.rb +3 -2
- data/lib/ronin/cli/commands/new/web_server.rb +3 -2
- data/lib/ronin/cli/commands/new/web_spider.rb +3 -2
- data/lib/ronin/cli/commands/new.rb +2 -2
- data/lib/ronin/cli/commands/pack.rb +3 -3
- data/lib/ronin/cli/commands/proxy.rb +3 -3
- data/lib/ronin/cli/commands/public_suffix_list.rb +2 -2
- data/lib/ronin/cli/commands/quote.rb +10 -10
- data/lib/ronin/cli/commands/rot.rb +2 -2
- data/lib/ronin/cli/commands/sha1.rb +2 -2
- data/lib/ronin/cli/commands/sha256.rb +2 -2
- data/lib/ronin/cli/commands/sha512.rb +2 -2
- data/lib/ronin/cli/commands/strings.rb +3 -3
- data/lib/ronin/cli/commands/tips.rb +2 -2
- data/lib/ronin/cli/commands/tld_list.rb +2 -2
- data/lib/ronin/cli/commands/typo.rb +3 -3
- data/lib/ronin/cli/commands/typosquat.rb +3 -3
- data/lib/ronin/cli/commands/unarchive.rb +2 -2
- data/lib/ronin/cli/commands/unescape.rb +10 -10
- data/lib/ronin/cli/commands/unhexdump.rb +2 -2
- data/lib/ronin/cli/commands/unpack.rb +3 -3
- data/lib/ronin/cli/commands/unquote.rb +10 -10
- data/lib/ronin/cli/commands/url.rb +7 -3
- data/lib/ronin/cli/commands/xor.rb +3 -3
- data/lib/ronin/cli/dns.rb +1 -1
- data/lib/ronin/cli/file_processor_command.rb +3 -3
- data/lib/ronin/cli/host_and_port.rb +1 -1
- data/lib/ronin/cli/http_shell.rb +2 -2
- data/lib/ronin/cli/key_options.rb +1 -1
- data/lib/ronin/cli/method_options.rb +1 -1
- data/lib/ronin/cli/pattern_options.rb +1 -1
- data/lib/ronin/cli/printing/http.rb +2 -2
- data/lib/ronin/cli/printing/syntax_highlighting.rb +1 -1
- data/lib/ronin/cli/ruby_shell.rb +1 -1
- data/lib/ronin/cli/string_methods_command.rb +3 -3
- data/lib/ronin/cli/string_processor_command.rb +2 -2
- data/lib/ronin/cli/typo_options.rb +1 -1
- data/lib/ronin/cli/value_processor_command.rb +2 -2
- data/lib/ronin/cli.rb +10 -8
- data/lib/ronin/root.rb +1 -1
- data/lib/ronin/version.rb +2 -2
- data/lib/ronin.rb +2 -2
- data/man/ronin-decode.1 +3 -3
- data/man/ronin-decode.1.md +4 -4
- data/man/ronin-encode.1 +4 -4
- data/man/ronin-encode.1.md +4 -4
- data/man/ronin-escape.1 +4 -4
- data/man/ronin-escape.1.md +5 -5
- data/man/ronin-quote.1 +4 -4
- data/man/ronin-quote.1.md +5 -5
- data/man/ronin-unescape.1 +4 -4
- data/man/ronin-unescape.1.md +5 -5
- data/man/ronin-unquote.1 +3 -3
- data/man/ronin-unquote.1.md +4 -4
- data/ronin.gemspec +1 -0
- metadata +10 -6
- data/lib/ronin/ui.rb +0 -22
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
#
|
|
3
|
-
# Copyright (c) 2006-
|
|
3
|
+
# Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
|
|
4
4
|
#
|
|
5
5
|
# Ronin is free software: you can redistribute it and/or modify
|
|
6
6
|
# it under the terms of the GNU General Public License as published by
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
# along with Ronin. If not, see <https://www.gnu.org/licenses/>.
|
|
17
17
|
#
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
require_relative '../value_processor_command'
|
|
20
|
+
require_relative '../typo_options'
|
|
21
21
|
|
|
22
22
|
module Ronin
|
|
23
23
|
class CLI
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
#
|
|
3
|
-
# Copyright (c) 2006-
|
|
3
|
+
# Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
|
|
4
4
|
#
|
|
5
5
|
# Ronin is free software: you can redistribute it and/or modify
|
|
6
6
|
# it under the terms of the GNU General Public License as published by
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
# along with Ronin. If not, see <https://www.gnu.org/licenses/>.
|
|
17
17
|
#
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
require_relative '../value_processor_command'
|
|
20
|
+
require_relative '../typo_options'
|
|
21
21
|
|
|
22
22
|
require 'ronin/support/network/domain'
|
|
23
23
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
#
|
|
3
|
-
# Copyright (c) 2006-
|
|
3
|
+
# Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
|
|
4
4
|
#
|
|
5
5
|
# Ronin is free software: you can redistribute it and/or modify
|
|
6
6
|
# it under the terms of the GNU General Public License as published by
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
# along with Ronin. If not, see <https://www.gnu.org/licenses/>.
|
|
17
17
|
#
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
require_relative '../file_processor_command'
|
|
20
20
|
require 'ronin/support/archive'
|
|
21
21
|
|
|
22
22
|
module Ronin
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
#
|
|
3
|
-
# Copyright (c) 2006-
|
|
3
|
+
# Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
|
|
4
4
|
#
|
|
5
5
|
# Ronin is free software: you can redistribute it and/or modify
|
|
6
6
|
# it under the terms of the GNU General Public License as published by
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
# along with Ronin. If not, see <https://www.gnu.org/licenses/>.
|
|
17
17
|
#
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
require_relative '../string_methods_command'
|
|
20
20
|
|
|
21
21
|
module Ronin
|
|
22
22
|
class CLI
|
|
@@ -39,10 +39,10 @@ module Ronin
|
|
|
39
39
|
# -H, --html HTML unescapes the data
|
|
40
40
|
# -u, --uri URI unescapes the data
|
|
41
41
|
# --http HTTP unescapes the data
|
|
42
|
-
# -j, --js
|
|
43
|
-
# -S, --shell Unescapes the data as a Shell
|
|
44
|
-
# -P, --powershell Unescapes the data as a PowerShell
|
|
45
|
-
# -R, --ruby Unescapes the data as a Ruby
|
|
42
|
+
# -j, --js Unescapes the data as a JavaScript string
|
|
43
|
+
# -S, --shell Unescapes the data as a Shell string
|
|
44
|
+
# -P, --powershell Unescapes the data as a PowerShell string
|
|
45
|
+
# -R, --ruby Unescapes the data as a Ruby string
|
|
46
46
|
# -Q, --quoted-printable Unescapes the data as Quoted Printable
|
|
47
47
|
# -x, --xml XML unescapes the data
|
|
48
48
|
# -h, --help Print help information
|
|
@@ -83,19 +83,19 @@ module Ronin
|
|
|
83
83
|
end
|
|
84
84
|
|
|
85
85
|
option :js, short: '-j',
|
|
86
|
-
desc: '
|
|
86
|
+
desc: 'Unescapes the data as a JavaScript string' do
|
|
87
87
|
require 'ronin/support/encoding/js'
|
|
88
88
|
@method_calls << :js_unescape
|
|
89
89
|
end
|
|
90
90
|
|
|
91
91
|
option :shell, short: '-S',
|
|
92
|
-
desc: 'Unescapes the data as a Shell
|
|
92
|
+
desc: 'Unescapes the data as a Shell string' do
|
|
93
93
|
require 'ronin/support/encoding/shell'
|
|
94
94
|
@method_calls << :shell_unescape
|
|
95
95
|
end
|
|
96
96
|
|
|
97
97
|
option :powershell, short: '-P',
|
|
98
|
-
desc: 'Unescapes the data as a PowerShell
|
|
98
|
+
desc: 'Unescapes the data as a PowerShell string' do
|
|
99
99
|
require 'ronin/support/encoding/powershell'
|
|
100
100
|
@method_calls << :powershell_unescape
|
|
101
101
|
end
|
|
@@ -107,7 +107,7 @@ module Ronin
|
|
|
107
107
|
end
|
|
108
108
|
|
|
109
109
|
option :ruby, short: '-R',
|
|
110
|
-
desc: 'Unescapes the data as a Ruby
|
|
110
|
+
desc: 'Unescapes the data as a Ruby string' do
|
|
111
111
|
require 'ronin/support/encoding/ruby'
|
|
112
112
|
@method_calls << :ruby_unescape
|
|
113
113
|
end
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
#
|
|
3
|
-
# Copyright (c) 2006-
|
|
3
|
+
# Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
|
|
4
4
|
#
|
|
5
5
|
# Ronin is free software: you can redistribute it and/or modify
|
|
6
6
|
# it under the terms of the GNU General Public License as published by
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
# along with Ronin. If not, see <https://www.gnu.org/licenses/>.
|
|
17
17
|
#
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
require_relative '../command'
|
|
20
20
|
require 'ronin/support/binary/unhexdump/parser'
|
|
21
21
|
|
|
22
22
|
module Ronin
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
#
|
|
3
|
-
# Copyright (c) 2006-
|
|
3
|
+
# Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
|
|
4
4
|
#
|
|
5
5
|
# Ronin is free software: you can redistribute it and/or modify
|
|
6
6
|
# it under the terms of the GNU General Public License as published by
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
# along with Ronin. If not, see <https://www.gnu.org/licenses/>.
|
|
17
17
|
#
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
require_relative '../command'
|
|
20
|
+
require_relative '../binary_template'
|
|
21
21
|
|
|
22
22
|
module Ronin
|
|
23
23
|
class CLI
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
#
|
|
3
|
-
# Copyright (c) 2006-
|
|
3
|
+
# Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
|
|
4
4
|
#
|
|
5
5
|
# Ronin is free software: you can redistribute it and/or modify
|
|
6
6
|
# it under the terms of the GNU General Public License as published by
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
# along with Ronin. If not, see <https://www.gnu.org/licenses/>.
|
|
17
17
|
#
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
require_relative '../string_methods_command'
|
|
20
20
|
|
|
21
21
|
module Ronin
|
|
22
22
|
class CLI
|
|
@@ -36,10 +36,10 @@ module Ronin
|
|
|
36
36
|
# -n, --keep-newlines Preserves newlines at the end of each line
|
|
37
37
|
# -X, --hex Unquotes the Hex string
|
|
38
38
|
# -c, --c Unquotes the C string
|
|
39
|
-
# -j, --js Unquotes the JavaScript
|
|
40
|
-
# -S, --shell Unquotes the Shell
|
|
41
|
-
# -P, --powershell Unquotes the PowerShell
|
|
42
|
-
# -R, --ruby Unquotes the Ruby
|
|
39
|
+
# -j, --js Unquotes the JavaScript string
|
|
40
|
+
# -S, --shell Unquotes the Shell string
|
|
41
|
+
# -P, --powershell Unquotes the PowerShell string
|
|
42
|
+
# -R, --ruby Unquotes the Ruby string
|
|
43
43
|
# -h, --help Print help information
|
|
44
44
|
#
|
|
45
45
|
# ## Arguments
|
|
@@ -61,25 +61,25 @@ module Ronin
|
|
|
61
61
|
end
|
|
62
62
|
|
|
63
63
|
option :js, short: '-j',
|
|
64
|
-
desc: 'Unquotes the JavaScript
|
|
64
|
+
desc: 'Unquotes the JavaScript string' do
|
|
65
65
|
require 'ronin/support/encoding/js'
|
|
66
66
|
@method_calls << :js_unquote
|
|
67
67
|
end
|
|
68
68
|
|
|
69
69
|
option :shell, short: '-S',
|
|
70
|
-
desc: 'Unquotes the Shell
|
|
70
|
+
desc: 'Unquotes the Shell string' do
|
|
71
71
|
require 'ronin/support/encoding/shell'
|
|
72
72
|
@method_calls << :shell_unquote
|
|
73
73
|
end
|
|
74
74
|
|
|
75
75
|
option :powershell, short: '-P',
|
|
76
|
-
desc: 'Unquotes the PowerShell
|
|
76
|
+
desc: 'Unquotes the PowerShell string' do
|
|
77
77
|
require 'ronin/support/encoding/powershell'
|
|
78
78
|
@method_calls << :powershell_unquote
|
|
79
79
|
end
|
|
80
80
|
|
|
81
81
|
option :ruby, short: '-R',
|
|
82
|
-
desc: 'Unquotes the Ruby
|
|
82
|
+
desc: 'Unquotes the Ruby string' do
|
|
83
83
|
require 'ronin/support/encoding/ruby'
|
|
84
84
|
@method_calls << :ruby_unquote
|
|
85
85
|
end
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
#
|
|
3
|
-
# Copyright (c) 2006-
|
|
3
|
+
# Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
|
|
4
4
|
#
|
|
5
5
|
# Ronin is free software: you can redistribute it and/or modify
|
|
6
6
|
# it under the terms of the GNU General Public License as published by
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
# along with Ronin. If not, see <https://www.gnu.org/licenses/>.
|
|
17
17
|
#
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
require_relative '../value_processor_command'
|
|
20
20
|
|
|
21
21
|
require 'uri'
|
|
22
22
|
require 'uri/query_params'
|
|
@@ -141,7 +141,11 @@ module Ronin
|
|
|
141
141
|
elsif options[:fragment]
|
|
142
142
|
puts uri.fragment
|
|
143
143
|
elsif options[:status]
|
|
144
|
-
|
|
144
|
+
begin
|
|
145
|
+
puts "#{uri.status} #{uri}"
|
|
146
|
+
rescue StandardError => error
|
|
147
|
+
print_error "#{uri}: #{error.message}"
|
|
148
|
+
end
|
|
145
149
|
else
|
|
146
150
|
puts uri
|
|
147
151
|
end
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
#
|
|
3
|
-
# Copyright (c) 2006-
|
|
3
|
+
# Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
|
|
4
4
|
#
|
|
5
5
|
# Ronin is free software: you can redistribute it and/or modify
|
|
6
6
|
# it under the terms of the GNU General Public License as published by
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
# along with Ronin. If not, see <https://www.gnu.org/licenses/>.
|
|
17
17
|
#
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
require_relative '../string_processor_command'
|
|
20
|
+
require_relative '../key_options'
|
|
21
21
|
|
|
22
22
|
require 'ronin/support/crypto'
|
|
23
23
|
|
data/lib/ronin/cli/dns.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
#
|
|
3
|
-
# Copyright (c) 2006-
|
|
3
|
+
# Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
|
|
4
4
|
#
|
|
5
5
|
# Ronin is free software: you can redistribute it and/or modify
|
|
6
6
|
# it under the terms of the GNU General Public License as published by
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
#
|
|
3
|
-
# Copyright (c) 2006-
|
|
3
|
+
# Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
|
|
4
4
|
#
|
|
5
5
|
# Ronin is free software: you can redistribute it and/or modify
|
|
6
6
|
# it under the terms of the GNU General Public License as published by
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
# along with Ronin. If not, see <https://www.gnu.org/licenses/>.
|
|
17
17
|
#
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
require_relative 'command'
|
|
20
20
|
|
|
21
21
|
module Ronin
|
|
22
22
|
class CLI
|
|
@@ -46,7 +46,7 @@ module Ronin
|
|
|
46
46
|
#
|
|
47
47
|
# Opens a file for reading.
|
|
48
48
|
#
|
|
49
|
-
# @param [
|
|
49
|
+
# @param [String] path
|
|
50
50
|
# The path to the file to open.
|
|
51
51
|
#
|
|
52
52
|
# @param [String] mode
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
#
|
|
3
|
-
# Copyright (c) 2006-
|
|
3
|
+
# Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
|
|
4
4
|
#
|
|
5
5
|
# Ronin is free software: you can redistribute it and/or modify
|
|
6
6
|
# it under the terms of the GNU General Public License as published by
|
data/lib/ronin/cli/http_shell.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
#
|
|
3
|
-
# Copyright (c) 2006-
|
|
3
|
+
# Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
|
|
4
4
|
#
|
|
5
5
|
# Ronin is free software: you can redistribute it and/or modify
|
|
6
6
|
# it under the terms of the GNU General Public License as published by
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
#
|
|
18
18
|
|
|
19
19
|
require 'ronin/core/cli/command_shell'
|
|
20
|
-
|
|
20
|
+
require_relative 'printing/http'
|
|
21
21
|
|
|
22
22
|
require 'ronin/support/network/http'
|
|
23
23
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
#
|
|
3
|
-
# Copyright (c) 2006-
|
|
3
|
+
# Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
|
|
4
4
|
#
|
|
5
5
|
# Ronin is free software: you can redistribute it and/or modify
|
|
6
6
|
# it under the terms of the GNU General Public License as published by
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
#
|
|
3
|
-
# Copyright (c) 2006-
|
|
3
|
+
# Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
|
|
4
4
|
#
|
|
5
5
|
# Ronin is free software: you can redistribute it and/or modify
|
|
6
6
|
# it under the terms of the GNU General Public License as published by
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
#
|
|
3
|
-
# Copyright (c) 2006-
|
|
3
|
+
# Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
|
|
4
4
|
#
|
|
5
5
|
# Ronin is free software: you can redistribute it and/or modify
|
|
6
6
|
# it under the terms of the GNU General Public License as published by
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
#
|
|
3
|
-
# Copyright (c) 2006-
|
|
3
|
+
# Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
|
|
4
4
|
#
|
|
5
5
|
# Ronin is free software: you can redistribute it and/or modify
|
|
6
6
|
# it under the terms of the GNU General Public License as published by
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
# along with Ronin. If not, see <https://www.gnu.org/licenses/>.
|
|
17
17
|
#
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
require_relative 'syntax_highlighting'
|
|
20
20
|
|
|
21
21
|
module Ronin
|
|
22
22
|
class CLI
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
#
|
|
3
|
-
# Copyright (c) 2006-
|
|
3
|
+
# Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
|
|
4
4
|
#
|
|
5
5
|
# Ronin is free software: you can redistribute it and/or modify
|
|
6
6
|
# it under the terms of the GNU General Public License as published by
|
data/lib/ronin/cli/ruby_shell.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
#
|
|
3
|
-
# Copyright (c) 2006-
|
|
3
|
+
# Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
|
|
4
4
|
#
|
|
5
5
|
# Ronin is free software: you can redistribute it and/or modify
|
|
6
6
|
# it under the terms of the GNU General Public License as published by
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
#
|
|
3
|
-
# Copyright (c) 2006-
|
|
3
|
+
# Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
|
|
4
4
|
#
|
|
5
5
|
# Ronin is free software: you can redistribute it and/or modify
|
|
6
6
|
# it under the terms of the GNU General Public License as published by
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
# along with Ronin. If not, see <https://www.gnu.org/licenses/>.
|
|
17
17
|
#
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
require_relative 'string_processor_command'
|
|
20
|
+
require_relative 'method_options'
|
|
21
21
|
|
|
22
22
|
module Ronin
|
|
23
23
|
class CLI
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
#
|
|
3
|
-
# Copyright (c) 2006-
|
|
3
|
+
# Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
|
|
4
4
|
#
|
|
5
5
|
# Ronin is free software: you can redistribute it and/or modify
|
|
6
6
|
# it under the terms of the GNU General Public License as published by
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
# along with Ronin. If not, see <https://www.gnu.org/licenses/>.
|
|
17
17
|
#
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
require_relative 'file_processor_command'
|
|
20
20
|
|
|
21
21
|
module Ronin
|
|
22
22
|
class CLI
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
#
|
|
3
|
-
# Copyright (c) 2006-
|
|
3
|
+
# Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
|
|
4
4
|
#
|
|
5
5
|
# Ronin is free software: you can redistribute it and/or modify
|
|
6
6
|
# it under the terms of the GNU General Public License as published by
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
#
|
|
3
|
-
# Copyright (c) 2006-
|
|
3
|
+
# Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
|
|
4
4
|
#
|
|
5
5
|
# Ronin is free software: you can redistribute it and/or modify
|
|
6
6
|
# it under the terms of the GNU General Public License as published by
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
# along with Ronin. If not, see <https://www.gnu.org/licenses/>.
|
|
17
17
|
#
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
require_relative 'command'
|
|
20
20
|
|
|
21
21
|
module Ronin
|
|
22
22
|
class CLI
|
data/lib/ronin/cli.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
#
|
|
3
|
-
# Copyright (c) 2006-
|
|
3
|
+
# Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
|
|
4
4
|
#
|
|
5
5
|
# Ronin is free software: you can redistribute it and/or modify
|
|
6
6
|
# it under the terms of the GNU General Public License as published by
|
|
@@ -16,13 +16,14 @@
|
|
|
16
16
|
# along with Ronin. If not, see <https://www.gnu.org/licenses/>.
|
|
17
17
|
#
|
|
18
18
|
|
|
19
|
-
require 'ronin/version'
|
|
20
19
|
require 'ronin/core/cli/help/banner'
|
|
21
20
|
|
|
22
21
|
require 'command_kit/commands'
|
|
23
22
|
require 'command_kit/commands/auto_load'
|
|
24
23
|
require 'command_kit/options/version'
|
|
25
24
|
|
|
25
|
+
require_relative 'version'
|
|
26
|
+
|
|
26
27
|
module Ronin
|
|
27
28
|
#
|
|
28
29
|
# The main CLI logic for the `ronin` command.
|
|
@@ -53,18 +54,19 @@ module Ronin
|
|
|
53
54
|
|
|
54
55
|
# Additional `ronin-` commands to checkout.
|
|
55
56
|
ADDITIONAL_RONIN_COMMANDS = %w[
|
|
56
|
-
ronin-
|
|
57
|
-
ronin-wordlists
|
|
57
|
+
ronin-app
|
|
58
58
|
ronin-db
|
|
59
|
-
ronin-
|
|
59
|
+
ronin-exploits
|
|
60
60
|
ronin-fuzzer
|
|
61
|
+
ronin-listener
|
|
61
62
|
ronin-masscan
|
|
62
63
|
ronin-nmap
|
|
63
|
-
ronin-recon
|
|
64
64
|
ronin-payloads
|
|
65
|
-
ronin-
|
|
65
|
+
ronin-recon
|
|
66
|
+
ronin-repos
|
|
66
67
|
ronin-vulns
|
|
67
|
-
ronin-
|
|
68
|
+
ronin-web
|
|
69
|
+
ronin-wordlists
|
|
68
70
|
]
|
|
69
71
|
|
|
70
72
|
#
|
data/lib/ronin/root.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
#
|
|
3
|
-
# Copyright (c) 2006-
|
|
3
|
+
# Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
|
|
4
4
|
#
|
|
5
5
|
# Ronin is free software: you can redistribute it and/or modify
|
|
6
6
|
# it under the terms of the GNU General Public License as published by
|
data/lib/ronin/version.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
#
|
|
3
|
-
# Copyright (c) 2006-
|
|
3
|
+
# Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
|
|
4
4
|
#
|
|
5
5
|
# Ronin is free software: you can redistribute it and/or modify
|
|
6
6
|
# it under the terms of the GNU General Public License as published by
|
|
@@ -18,5 +18,5 @@
|
|
|
18
18
|
|
|
19
19
|
module Ronin
|
|
20
20
|
# ronin version
|
|
21
|
-
VERSION = '2.1.
|
|
21
|
+
VERSION = '2.1.1'
|
|
22
22
|
end
|
data/lib/ronin.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
#
|
|
3
|
-
# Copyright (c) 2006-
|
|
3
|
+
# Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
|
|
4
4
|
#
|
|
5
5
|
# Ronin is free software: you can redistribute it and/or modify
|
|
6
6
|
# it under the terms of the GNU General Public License as published by
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
# Loads up the full Ronin environment.
|
|
21
21
|
#
|
|
22
22
|
require 'ronin/support'
|
|
23
|
-
|
|
23
|
+
require_relative 'ronin/version'
|
|
24
24
|
|
|
25
25
|
require 'open_namespace'
|
|
26
26
|
|
data/man/ronin-decode.1
CHANGED
|
@@ -64,10 +64,10 @@ HTTP decodes the data\.
|
|
|
64
64
|
JavaScript decodes the data\.
|
|
65
65
|
.TP
|
|
66
66
|
\fB\-S\fR, \fB\-\-shell\fR
|
|
67
|
-
Decodes the data as a Shell
|
|
67
|
+
Decodes the data as a Shell string\.
|
|
68
68
|
.TP
|
|
69
69
|
\fB\-P\fR, \fB\-\-powershell\fR
|
|
70
|
-
Decodes the data as a PowerShell
|
|
70
|
+
Decodes the data as a PowerShell string\.
|
|
71
71
|
.TP
|
|
72
72
|
\fB\-\-punycode\fR
|
|
73
73
|
Decodes the data as Punycode\.
|
|
@@ -76,7 +76,7 @@ Decodes the data as Punycode\.
|
|
|
76
76
|
Decodes the data as Quoted Printable\.
|
|
77
77
|
.TP
|
|
78
78
|
\fB\-R\fR, \fB\-\-ruby\fR
|
|
79
|
-
|
|
79
|
+
Decodes the data as a Ruby string\.
|
|
80
80
|
.TP
|
|
81
81
|
\fB\-\-uudecode\fR
|
|
82
82
|
uudecodes the data\.
|
data/man/ronin-decode.1.md
CHANGED
|
@@ -67,10 +67,10 @@ Decodes each character of the given data from a variety of formats.
|
|
|
67
67
|
: JavaScript decodes the data.
|
|
68
68
|
|
|
69
69
|
`-S`, `--shell`
|
|
70
|
-
: Decodes the data as a Shell
|
|
70
|
+
: Decodes the data as a Shell string.
|
|
71
71
|
|
|
72
72
|
`-P`, `--powershell`
|
|
73
|
-
: Decodes the data as a PowerShell
|
|
73
|
+
: Decodes the data as a PowerShell string.
|
|
74
74
|
|
|
75
75
|
`--punycode`
|
|
76
76
|
: Decodes the data as Punycode.
|
|
@@ -79,7 +79,7 @@ Decodes each character of the given data from a variety of formats.
|
|
|
79
79
|
: Decodes the data as Quoted Printable.
|
|
80
80
|
|
|
81
81
|
`-R`, `--ruby`
|
|
82
|
-
:
|
|
82
|
+
: Decodes the data as a Ruby string.
|
|
83
83
|
|
|
84
84
|
`--uudecode`
|
|
85
85
|
: uudecodes the data.
|
|
@@ -96,4 +96,4 @@ Postmodern <postmodern.mod3@gmail.com>
|
|
|
96
96
|
|
|
97
97
|
## SEE ALSO
|
|
98
98
|
|
|
99
|
-
[ronin-encode](ronin-encode.1.md)
|
|
99
|
+
[ronin-encode](ronin-encode.1.md)
|
data/man/ronin-encode.1
CHANGED
|
@@ -61,13 +61,13 @@ URI encodes the data\.
|
|
|
61
61
|
HTTP encodes the data\.
|
|
62
62
|
.TP
|
|
63
63
|
\fB\-j\fR, \fB\-\-js\fR
|
|
64
|
-
|
|
64
|
+
Encodes the data as a JavaScript string\.
|
|
65
65
|
.TP
|
|
66
66
|
\fB\-S\fR, \fB\-\-shell\fR
|
|
67
|
-
Encodes the data as a Shell
|
|
67
|
+
Encodes the data as a Shell string\.
|
|
68
68
|
.TP
|
|
69
69
|
\fB\-P\fR, \fB\-\-powershell\fR
|
|
70
|
-
Encodes the data as a PowerShell
|
|
70
|
+
Encodes the data as a PowerShell string\.
|
|
71
71
|
.TP
|
|
72
72
|
\fB\-\-punycode\fR
|
|
73
73
|
Encodes the data as Punycode\.
|
|
@@ -79,7 +79,7 @@ Decodes the data as Quoted Printable\.
|
|
|
79
79
|
uuencodes the data\.
|
|
80
80
|
.TP
|
|
81
81
|
\fB\-R\fR, \fB\-\-ruby\fR
|
|
82
|
-
Encodes the data as a Ruby
|
|
82
|
+
Encodes the data as a Ruby string\.
|
|
83
83
|
.TP
|
|
84
84
|
\fB\-x\fR, \fB\-\-xml\fR
|
|
85
85
|
XML encodes the data\.
|
data/man/ronin-encode.1.md
CHANGED
|
@@ -64,13 +64,13 @@ Encodes each character of the given data into a variety of formats.
|
|
|
64
64
|
: HTTP encodes the data.
|
|
65
65
|
|
|
66
66
|
`-j`, `--js`
|
|
67
|
-
:
|
|
67
|
+
: Encodes the data as a JavaScript string.
|
|
68
68
|
|
|
69
69
|
`-S`, `--shell`
|
|
70
|
-
: Encodes the data as a Shell
|
|
70
|
+
: Encodes the data as a Shell string.
|
|
71
71
|
|
|
72
72
|
`-P`, `--powershell`
|
|
73
|
-
: Encodes the data as a PowerShell
|
|
73
|
+
: Encodes the data as a PowerShell string.
|
|
74
74
|
|
|
75
75
|
`--punycode`
|
|
76
76
|
: Encodes the data as Punycode.
|
|
@@ -82,7 +82,7 @@ Encodes each character of the given data into a variety of formats.
|
|
|
82
82
|
: uuencodes the data.
|
|
83
83
|
|
|
84
84
|
`-R`, `--ruby`
|
|
85
|
-
: Encodes the data as a Ruby
|
|
85
|
+
: Encodes the data as a Ruby string.
|
|
86
86
|
|
|
87
87
|
`-x`, `--xml`
|
|
88
88
|
: XML encodes the data.
|