From 8c01560ade1fadbfcbd5e1be2d90c37458a2e295 Mon Sep 17 00:00:00 2001 From: HD Moore Date: Fri, 25 Feb 2011 21:48:03 +0000 Subject: [PATCH] Store enumerated data as loot git-svn-id: file:///home/svn/framework3/trunk@11826 4d416f70-5f16-0410-b530-b9f4589650da --- modules/post/windows/gather/enum_applications.rb | 2 ++ modules/post/windows/gather/enum_logged_on_users.rb | 2 ++ 2 files changed, 4 insertions(+) diff --git a/modules/post/windows/gather/enum_applications.rb b/modules/post/windows/gather/enum_applications.rb index 6aaea00a01..b4cd71feb8 100644 --- a/modules/post/windows/gather/enum_applications.rb +++ b/modules/post/windows/gather/enum_applications.rb @@ -66,6 +66,8 @@ class Metasploit3 < Msf::Post end print_line("\n" + tbl.to_s + "\n") + + store_loot("host.applications", "text/plain", session, tbl.to_s, "applications.txt", "Installed Applications") end def run diff --git a/modules/post/windows/gather/enum_logged_on_users.rb b/modules/post/windows/gather/enum_logged_on_users.rb index d609453a63..3df31eedd1 100644 --- a/modules/post/windows/gather/enum_logged_on_users.rb +++ b/modules/post/windows/gather/enum_logged_on_users.rb @@ -54,6 +54,7 @@ class Metasploit3 < Msf::Post tbl << [sid,profile_path] end print_line("\n" + tbl.to_s + "\n") + store_loot("host.users.recent", "text/plain", session, tbl.to_s, "recent_users.txt", "Recent Users") end @@ -81,6 +82,7 @@ class Metasploit3 < Msf::Post end print_line("\n" + tbl.to_s + "\n") + store_loot("host.users.active", "text/plain", session, tbl.to_s, "active_users.txt", "Active Users") end def run