From 866d2501788f6c726163c29df4028d0d134a34df Mon Sep 17 00:00:00 2001 From: Carlos Perez Date: Tue, 19 Jul 2011 21:52:38 +0000 Subject: [PATCH] Fixed double output being saved git-svn-id: file:///home/svn/framework3/trunk@13243 4d416f70-5f16-0410-b530-b9f4589650da --- modules/post/windows/gather/enum_applications.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/post/windows/gather/enum_applications.rb b/modules/post/windows/gather/enum_applications.rb index 8f1c778b66..76fc2c8c0a 100644 --- a/modules/post/windows/gather/enum_applications.rb +++ b/modules/post/windows/gather/enum_applications.rb @@ -71,10 +71,12 @@ class Metasploit3 < Msf::Post end t.map{|x| x.join } end + + results = tbl.to_s - print_line("\n" + tbl.to_s + "\n") + print_line("\n" + results + "\n") - store_loot("host.applications", "text/plain", session, tbl.to_s, "applications.txt", "Installed Applications") + store_loot("host.applications", "text/plain", session, results, "applications.txt", "Installed Applications") end def run