-
Notifications
You must be signed in to change notification settings - Fork 13.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updates new sessions to have a consistent local file system API #18926
Updates new sessions to have a consistent local file system API #18926
Conversation
lib/rex/post/local_fs.rb
Outdated
# This module provides commands for the local file system | ||
# | ||
### | ||
module LocalFs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
module LocalFs | |
module LocalFileSystem |
Not a blocker, as I know it's consistent with meterpreter's fs
lib/rex/post/local_fs.rb
Outdated
# | ||
# @param [Array] args | ||
# @return [TrueClass] | ||
def cmd_lcat(*args) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not a blocker; we're missing help
commands for some of these
postgresql @ 127.0.0.1:9000 (template1) > help lcat
[-] No help for lcat, try -h
lib/rex/post/meterpreter/ui/console/command_dispatcher/stdapi/fs.rb
Outdated
Show resolved
Hide resolved
lib/rex/post/meterpreter/ui/console/command_dispatcher/stdapi/fs.rb
Outdated
Show resolved
Hide resolved
19bd907
to
a9c013c
Compare
a9c013c
to
64831b6
Compare
Release NotesUpdate sessions to have a consistent set of local file system commands |
This PR takes existing local file system functions from
lib/rex/post/meterpreter/ui/console/command_dispatcher/stdapi/fs.rb
and create a new mixin in order to make these reusable so that we can include them in our new SMB, and all the SQL session types.Local fs commands:
Verification
msfconsole
features set <session type> true
mysql_login
,mssql_login
,postgres_login
andsmb_login