Skip to content

Commit dc53057

Browse files
David MaloneyDavid Maloney
authored andcommitted
more bcook fixes
the rebase lost some of these
1 parent c8f6ac9 commit dc53057

File tree

1 file changed

+7
-5
lines changed
  • lib/msf/ui/console/command_dispatcher

1 file changed

+7
-5
lines changed

lib/msf/ui/console/command_dispatcher/jobs.rb

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ class Jobs
2626
"-P" => [ true, "The RPORT/LPORT to configure the handler for"],
2727
"-H" => [ true, "The RHOST/LHOST to configure the handler for"],
2828
"-e" => [ true, "An Encoder to use for Payload Stage Encoding"],
29-
"-n" => [ true, "The custom name to give the handler job"])
29+
"-n" => [ true, "The custom name to give the handler job"]
30+
)
3031

3132

3233

@@ -36,7 +37,8 @@ class Jobs
3637
"-K" => [ false, "Terminate all running jobs." ],
3738
"-i" => [ true, "Lists detailed information about a running job."],
3839
"-l" => [ false, "List all running jobs." ],
39-
"-v" => [ false, "Print more detailed info. Use with -i and -l" ])
40+
"-v" => [ false, "Print more detailed info. Use with -i and -l" ]
41+
)
4042

4143
def commands
4244
{
@@ -102,7 +104,7 @@ def cmd_jobs_help
102104
print_line "Usage: jobs [options]"
103105
print_line
104106
print_line "Active job manipulation and interaction."
105-
print @@jobs_opts.usage()
107+
print @@jobs_opts.usage
106108
end
107109

108110
#
@@ -174,7 +176,7 @@ def cmd_jobs(*args)
174176
show_options(mod) if mod.options.has_options?
175177

176178
if verbose
177-
mod_opt = Serializer::ReadableText.dump_advanced_options(mod,' ')
179+
mod_opt = Serializer::ReadableText.dump_advanced_options(mod, ' ')
178180
if mod_opt && mod_opt.length > 0
179181
print_line("\nModule advanced options:\n\n#{mod_opt}\n")
180182
end
@@ -197,7 +199,7 @@ def cmd_jobs_tabs(str, words)
197199
return @@jobs_opts.fmt.keys
198200
end
199201

200-
if words.length == 2 and (@@jobs_opts.fmt[words[1]] || [false])[0]
202+
if words.length == 2 && (@@jobs_opts.fmt[words[1]] || [false])[0]
201203
return framework.jobs.keys
202204
end
203205

0 commit comments

Comments
 (0)