Land #16848, add safe navigation to ensure fs access valid

This commit is contained in:
adfoster-r7 2022-08-01 21:46:05 +01:00 committed by GitHub
commit 6ac0a7c48f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -413,7 +413,7 @@ class Meterpreter < Rex::Post::Meterpreter::Client
def update_session_info
# sys.config.getuid, and fs.dir.getwd cache their results, so update them
fs.dir.getwd
fs&.dir&.getwd
username = self.sys.config.getuid
sysinfo = self.sys.config.sysinfo