File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,10 @@ require 'msf/core/payload_generator'
54
54
opts = { }
55
55
datastore = { }
56
56
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
58
61
opt . separator ( '' )
59
62
opt . separator ( 'Options:' )
60
63
@@ -292,7 +295,14 @@ if __FILE__ == $0
292
295
$stdout. puts dump_encoders
293
296
$stdout. puts dump_nops
294
297
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 } "
296
306
end
297
307
end
298
308
exit ( 0 )
You can’t perform that action at this time.
0 commit comments