From 56bd60ffeb0113f3f129ae1ff9cfc8bfdfe1a3b1 Mon Sep 17 00:00:00 2001 From: ts Date: Mon, 12 Nov 2018 17:00:12 +0000 Subject: [PATCH] encoder/simple_ssh: decrypting on box successfully --- .../cipher/asymmetric_decrypt/simple_ssh/secgen_local/local.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/encoders/cipher/asymmetric_decrypt/simple_ssh/secgen_local/local.rb b/modules/encoders/cipher/asymmetric_decrypt/simple_ssh/secgen_local/local.rb index 4d0efbad6..f4a3b7f50 100644 --- a/modules/encoders/cipher/asymmetric_decrypt/simple_ssh/secgen_local/local.rb +++ b/modules/encoders/cipher/asymmetric_decrypt/simple_ssh/secgen_local/local.rb @@ -54,7 +54,7 @@ class SimpleSSHDecrypt < StringEncoder self.outputs << {:secgen_leaked_data => {:data => Base64.strict_encode64(File.binread(privkey_path)), :filename => 'id_rsa', :ext => 'txt', :subdirectory => self.subdirectory}}.to_json ensure # Delete the local key files to avoid batch clashes - # FileUtils.rm_r self.tmp_path + FileUtils.rm_r self.tmp_path end end