Changeset 5535
- Timestamp:
- 06/22/08 14:59:12 (4 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
framework3/trunk/lib/msf/ui/console/command_dispatcher/core.rb
r5532 r5535 51 51 "back" => "Move back from the current context", 52 52 "banner" => "Display an awesome metasploit banner", 53 "cd" => "Change the current working directory", 53 54 "exit" => "Exit the console", 54 55 "help" => "Help menu", … … 61 62 # "persist" => "Persist or restore framework state information", 62 63 64 "loadpath" => "Searches for and loads modules from a path", 63 65 "quit" => "Exit the console", 66 "resource" => "Run the commands stored in a file", 64 67 "route" => "Route traffic through a session", 65 68 "save" => "Saves the active datastores", 66 "loadpath" => "Searches for and loads modules from a path",67 69 "search" => "Searches module names and descriptions", 68 70 "sessions" => "Dump session listings and display information about sessions", … … 70 72 "setg" => "Sets a global variable to a value", 71 73 "show" => "Displays modules of a given type, or all modules", 74 "sleep" => "Do nothing for the specified number of seconds", 72 75 "unload" => "Unload a framework plugin", 73 76 "unset" => "Unsets one or more variables", … … 75 78 "use" => "Selects a module by name", 76 79 "version" => "Show the console library version number", 77 "sleep" => "Do nothing for the specified number of seconds",78 "cd" => "Change the current working directory",79 80 } 80 81 end … … 95 96 "Core" 96 97 end 98 99 def cmd_resource(*args) 100 driver.load_resource(*args) 101 end 102 97 103 98 104 # … … 278 284 def cmd_jobs_tabs(str, words) 279 285 if(not words[1]) 280 return %w{-l -k - h}286 return %w{-l -k -K -h} 281 287 end 282 288 if (words[1] == '-k') 283 289 # XXX return the list of job values 290 ret = [] 291 framework.jobs.each_key do |i| 292 ret.push i 293 end 294 return ret 284 295 end 285 296 end
