Skip to content

Commit 36782af

Browse files
committed
Resolve rapid7#4889, Improve msfvenom -h
Resolve rapid7#4889
1 parent bb444a8 commit 36782af

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

msfvenom

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,10 @@ require 'msf/core/payload_generator'
5454
opts = {}
5555
datastore = {}
5656
opt = OptionParser.new
57-
opt.banner = "Usage: #{$0} [options] <var=val>"
57+
banner = "MsfVenom - a Metasploit standalone payload generator.\n"
58+
banner << "Also a replacement for msfpayload and msfencode.\n"
59+
banner << "Usage: #{$0} [options] <var=val>"
60+
opt.banner = banner
5861
opt.separator('')
5962
opt.separator('Options:')
6063

@@ -292,7 +295,14 @@ if __FILE__ == $0
292295
$stdout.puts dump_encoders
293296
$stdout.puts dump_nops
294297
else
295-
$stderr.puts "Invalid module type"
298+
if mod == 'payload'
299+
question = ". Do you mean 'payloads'?"
300+
elsif mod == 'encoder'
301+
question = ". Do you mean 'encoders'?"
302+
elsif mod == 'nop'
303+
quesetion = ". Do you mean 'nops'?"
304+
end
305+
$stderr.puts "Invalid module type#{question}"
296306
end
297307
end
298308
exit(0)

0 commit comments

Comments
 (0)