We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8aff50a commit 7a900ccCopy full SHA for 7a900cc
lib/msf/ui/console/command_dispatcher/core.rb
@@ -2318,21 +2318,19 @@ def cmd_get(*args)
2318
end
2319
2320
# Determine which data store we're operating on
2321
- if (active_module and global == false)
+ if (active_module && !global)
2322
datastore = active_module.datastore
2323
else
2324
datastore = framework.datastore
2325
2326
2327
# No arguments? No cookie.
2328
- if (args.length == 0)
+ if args.empty?
2329
global ? cmd_getg_help : cmd_get_help
2330
return false
2331
2332
2333
- while ((val = args.shift))
2334
- print_line("#{val} => #{datastore[val]}")
2335
- end
+ args.each { |var| print_line("#{var} => #{datastore[var]}") }
2336
2337
2338
#
0 commit comments