Added Amazon Linux enumeration

git-svn-id: file:///home/svn/framework3/trunk@12934 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Carlos Perez 2011-06-13 01:46:54 +00:00
parent d99df297d8
commit 6582d6ee58
2 changed files with 2 additions and 2 deletions

View File

@ -63,7 +63,7 @@ class Metasploit3 < Msf::Post
def get_pakages(distro) def get_pakages(distro)
packages_installed = nil packages_installed = nil
if distro =~ /fedora|redhat|suse|mandrake|oracle/ if distro =~ /fedora|redhat|suse|mandrake|oracle|amazon/
packages_installed = cmd_exec("rpm -qa") packages_installed = cmd_exec("rpm -qa")
elsif distro =~ /slackware/ elsif distro =~ /slackware/
packages_installed = cmd_exec("ls /var/log/packages") packages_installed = cmd_exec("ls /var/log/packages")

View File

@ -63,7 +63,7 @@ class Metasploit3 < Msf::Post
def get_services(distro) def get_services(distro)
services_installed = "" services_installed = ""
if distro =~ /fedora|redhat|suse|mandrake|oracle/ if distro =~ /fedora|redhat|suse|mandrake|oracle|amazon/
services_installed = cmd_exec("/sbin/chkconfig --list") services_installed = cmd_exec("/sbin/chkconfig --list")
elsif distro =~ /slackware/ elsif distro =~ /slackware/
services_installed << "\nEnabled:\n*************************\n" services_installed << "\nEnabled:\n*************************\n"