Make easy method comments

bug/bundler_fix
jvazquez-r7 2014-10-09 10:48:00 -05:00
parent dd03e5fd7d
commit 615b8e5f4a
1 changed files with 3 additions and 12 deletions

View File

@ -88,9 +88,7 @@ class Metasploit3 < Msf::Auxiliary
return
end
# ----------------------------------------------
# Method to check if user is already sysadmin
# ----------------------------------------------
# Checks if user is already sysadmin
def check_sysadmin
# Setup query to check for sysadmin
sql = "select is_srvrolemember('sysadmin') as IsSysAdmin"
@ -106,9 +104,7 @@ class Metasploit3 < Msf::Auxiliary
return mystatus
end
# ----------------------------------------------
# Method to get trusted databases owned by sysadmins
# ----------------------------------------------
# Gets trusted databases owned by sysadmins
def check_trustdbs
# Setup query
sql = "SELECT d.name AS DATABASENAME
@ -137,9 +133,7 @@ class Metasploit3 < Msf::Auxiliary
end
# ----------------------------------------------
# Method to check if user has the db_owner role
# ----------------------------------------------
# Checks if user has the db_owner role
def check_db_owner(trustdb_list)
# Check if the user has the db_owner role is any databases
trustdb_list.each { |db|
@ -168,9 +162,6 @@ class Metasploit3 < Msf::Auxiliary
}
end
# ----------------------------------------------
# Method to escalate privileges
# ----------------------------------------------
def escalate_privs(dbowner_db)
# Create the evil stored procedure WITH EXECUTE AS OWNER
# Setup query