Added Amazon Linux enumeration
git-svn-id: file:///home/svn/framework3/trunk@12934 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
d99df297d8
commit
6582d6ee58
|
@ -63,7 +63,7 @@ class Metasploit3 < Msf::Post
|
|||
|
||||
def get_pakages(distro)
|
||||
packages_installed = nil
|
||||
if distro =~ /fedora|redhat|suse|mandrake|oracle/
|
||||
if distro =~ /fedora|redhat|suse|mandrake|oracle|amazon/
|
||||
packages_installed = cmd_exec("rpm -qa")
|
||||
elsif distro =~ /slackware/
|
||||
packages_installed = cmd_exec("ls /var/log/packages")
|
||||
|
|
|
@ -63,7 +63,7 @@ class Metasploit3 < Msf::Post
|
|||
|
||||
def get_services(distro)
|
||||
services_installed = ""
|
||||
if distro =~ /fedora|redhat|suse|mandrake|oracle/
|
||||
if distro =~ /fedora|redhat|suse|mandrake|oracle|amazon/
|
||||
services_installed = cmd_exec("/sbin/chkconfig --list")
|
||||
elsif distro =~ /slackware/
|
||||
services_installed << "\nEnabled:\n*************************\n"
|
||||
|
|
Loading…
Reference in New Issue