remove options not in 4.x

4.x
Jeffrey Martin 2018-06-08 15:55:01 -05:00
parent e6a9421e35
commit 43ae360e15
No known key found for this signature in database
GPG Key ID: 0CD9BBC2AF15F171
1 changed files with 2 additions and 34 deletions

View File

@ -68,7 +68,7 @@ def parse_args(args)
opt.separator('') opt.separator('')
opt.separator('Options:') opt.separator('Options:')
opt.on('-l', '--list <type>', Array, 'List all modules for [type]. Types are: payloads, encoders, nops, platforms, encrypt, formats, all') do |l| opt.on('-l', '--list <type>', Array, 'List all modules for [type]. Types are: payloads, encoders, nops, platforms, formats, all') do |l|
if l.to_s.empty? if l.to_s.empty?
l = ["all"] l = ["all"]
end end
@ -100,18 +100,6 @@ def parse_args(args)
opts[:smallest] = true opts[:smallest] = true
end end
opt.on('--encrypt <value>', String, 'The type of encryption or encoding to apply to the shellcode (use --list encrypt to list)') do |e|
opts[:encryption_format] = e
end
opt.on('--encrypt-key <value>', String, 'A key to be used for --encrypt') do |e|
opts[:encryption_key] = e
end
opt.on('--encrypt-iv <value>', String, 'An initialization vector for --encrypt') do |e|
opts[:encryption_iv] = e
end
opt.on('-a', '--arch <arch>', String, 'The architecture to use for --payload and --encoders') do |a| opt.on('-a', '--arch <arch>', String, 'The architecture to use for --payload and --encoders') do |a|
opts[:arch] = a opts[:arch] = a
end end
@ -244,23 +232,6 @@ def dump_platforms
"\n" + tbl.to_s + "\n" "\n" + tbl.to_s + "\n"
end end
def dump_encrypt
init_framework(:module_types => [])
tbl = Rex::Text::Table.new(
'Indent' => 4,
'Header' => "Framework Encryption Formats [--encrypt <value>]",
'Columns' =>
[
"Name",
])
::Msf::Simple::Buffer.encryption_formats.each do |name|
tbl << [ name]
end
"\n" + tbl.to_s + "\n"
end
def dump_formats def dump_formats
init_framework(:module_types => []) init_framework(:module_types => [])
tbl1 = Rex::Text::Table.new( tbl1 = Rex::Text::Table.new(
@ -370,8 +341,6 @@ if generator_opts[:list]
$stdout.puts dump_nops $stdout.puts dump_nops
when "platforms", "dump_platform" when "platforms", "dump_platform"
$stdout.puts dump_platforms $stdout.puts dump_platforms
when "encrypts", "encrypt", "encryption"
$stdout.puts dump_encrypt
when "formats", "format", "f" when "formats", "format", "f"
$stdout.puts dump_formats $stdout.puts dump_formats
when "all", "a" when "all", "a"
@ -382,10 +351,9 @@ if generator_opts[:list]
$stdout.puts dump_encoders $stdout.puts dump_encoders
$stdout.puts dump_nops $stdout.puts dump_nops
$stdout.puts dump_platforms $stdout.puts dump_platforms
$stdout.puts dump_encrypt
$stdout.puts dump_formats $stdout.puts dump_formats
else else
$stderr.puts "Invalid type (#{mod}). These are valid: payloads, encoders, nops, platforms, encrypt, formats, all" $stderr.puts "Invalid type (#{mod}). These are valid: payloads, encoders, nops, platforms, formats, all"
end end
end end
exit(0) exit(0)