From 1203e1e5620216effed44186e2da89002278832c Mon Sep 17 00:00:00 2001 From: Carlos Polop Date: Mon, 11 Oct 2021 17:14:40 +0100 Subject: [PATCH] Update peass.rb --- metasploit/peass.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metasploit/peass.rb b/metasploit/peass.rb index 7107d28..9a1c4bc 100644 --- a/metasploit/peass.rb +++ b/metasploit/peass.rb @@ -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}"