Add lpwd/getlwd Meterpreter commands

git-svn-id: file:///home/svn/framework3/trunk@5916 4d416f70-5f16-0410-b530-b9f4589650da
unstable
kris 2008-11-13 17:30:24 +00:00
parent 360bd6d222
commit 19fa03649a
1 changed files with 13 additions and 1 deletions

View File

@ -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
#