1
mirror of https://github.com/carlospolop/PEASS-ng synced 2025-04-01 08:19:19 +02:00

Update peass.rb

This commit is contained in:
Carlos Polop 2021-10-11 17:14:40 +01:00 committed by GitHub
parent b3c37ab8ca
commit 1203e1e562
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -140,7 +140,7 @@ class MetasploitModule < Msf::Post
#Start the cmd, prepare to read from the uploaded file
if session.platform.include?("win")
cmd = "$ProgressPreference = 'SilentlyContinue'; $#{ps_var1} = Get-Content -Path #{temp_path};"
last_cmd += "del #{temp_path};"
last_cmd = "del #{temp_path};"
else
cmd = "cat #{temp_path}"
last_cmd = "rm #{temp_path}"