From 68578c15a38aed557739320ba5356f6cccf5662a Mon Sep 17 00:00:00 2001 From: Roberto Soares Espreto Date: Tue, 11 Feb 2014 10:08:12 -0200 Subject: [PATCH] find command modified --- modules/post/linux/gather/enum_system.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/post/linux/gather/enum_system.rb b/modules/post/linux/gather/enum_system.rb index 7f0c7d57d9..9c2b676892 100644 --- a/modules/post/linux/gather/enum_system.rb +++ b/modules/post/linux/gather/enum_system.rb @@ -60,8 +60,8 @@ class Metasploit3 < Msf::Post crons = get_crons(users, user) diskspace = execute("/bin/df -ahT") disks = (mount +"\n\/"+ diskspace) - logfiles = execute("/usr/bin/find /var/log -type f -perm -0004 2>/dev/null") - uidgid = execute("/usr/bin/find / -xdev -type f -perm +ug=s -print 2>/dev/null") + logfiles = execute("find /var/log -type f -perm -4 2> /dev/null") + uidgid = execute("find / -xdev -type f -perm +6000 -perm -1 2> /dev/null") save("Linux version", distro) save("User accounts", users)