Add lpwd/getlwd Meterpreter commands
git-svn-id: file:///home/svn/framework3/trunk@5916 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
360bd6d222
commit
19fa03649a
|
@ -43,7 +43,9 @@ class Console::CommandDispatcher::Stdapi::Fs
|
|||
"pwd" => "Print working directory",
|
||||
"rmdir" => "Remove directory",
|
||||
"upload" => "Upload a file or directory",
|
||||
"lcd" => "Change local directory",
|
||||
"lcd" => "Change local working directory",
|
||||
"getlwd" => "Print local working directory",
|
||||
"lpwd" => "Print local working directory"
|
||||
}
|
||||
end
|
||||
|
||||
|
@ -194,6 +196,16 @@ class Console::CommandDispatcher::Stdapi::Fs
|
|||
::File.unlink(temp_path)
|
||||
end
|
||||
|
||||
#
|
||||
# Display the local working directory.
|
||||
#
|
||||
def cmd_lpwd(*args)
|
||||
print_line(::Dir.pwd)
|
||||
return true
|
||||
end
|
||||
|
||||
alias cmd_getlwd cmd_lpwd
|
||||
|
||||
#
|
||||
# Lists files
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue