Skip to content

Commit

Permalink
lowercase session types
Browse files Browse the repository at this point in the history
lowercase session types

lowercase session types
  • Loading branch information
dwelch-r7 committed Feb 14, 2024
1 parent 0d4e1ed commit d73293d
Show file tree
Hide file tree
Showing 16 changed files with 13 additions and 24 deletions.
2 changes: 1 addition & 1 deletion lib/msf/base/sessions/mssql.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def type
# Returns the type of session.
#
def self.type
'MSSQL'
'mssql'
end

def self.can_cleanup_files
Expand Down
2 changes: 1 addition & 1 deletion lib/msf/base/sessions/mysql.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def type

# @return [String] The type of the session
def self.type
'MySQL'
'mysql'
end

# @return [Boolean] Can the session clean up after itself
Expand Down
2 changes: 1 addition & 1 deletion lib/msf/base/sessions/postgresql.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def type
# @return [String] The type of the session
#
def self.type
'PostgreSQL'
'postgresql'
end

#
Expand Down
2 changes: 1 addition & 1 deletion lib/msf/base/sessions/smb.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def type
# Returns the type of session.
#
def self.type
'SMB'
'smb'
end

def self.can_cleanup_files
Expand Down
2 changes: 1 addition & 1 deletion lib/msf/core/optional_session/mssql.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def initialize(info = {})
super(
update_info(
info,
'SessionTypes' => %w[MSSQL]
'SessionTypes' => %w[mssql]
)
)

Expand Down
3 changes: 1 addition & 2 deletions modules/auxiliary/admin/mssql/mssql_escalate_execute_as.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ def initialize(info = {})
},
'Author' => ['nullbind <scott.sutherland[at]netspi.com>'],
'License' => MSF_LICENSE,
'References' => [['URL','http://msdn.microsoft.com/en-us/library/ms178640.aspx']],
'SessionTypes' => %w[MSSQL]
'References' => [['URL','http://msdn.microsoft.com/en-us/library/ms178640.aspx']]
))
end

Expand Down
1 change: 0 additions & 1 deletion modules/auxiliary/admin/mssql/mssql_exec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ def initialize(info = {})
[ 'URL', 'http://msdn.microsoft.com/en-us/library/cc448435(PROT.10).aspx'],
[ 'URL', 'https://docs.microsoft.com/en-us/sql/relational-databases/system-stored-procedures/sp-oacreate-transact-sql'],
],
'SessionTypes' => %w[MSSQL],
)
)

Expand Down
1 change: 0 additions & 1 deletion modules/auxiliary/admin/mysql/mysql_sql.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ def initialize(info = {})
},
'Author' => [ 'Bernardo Damele A. G. <bernardo.damele[at]gmail.com>' ],
'License' => MSF_LICENSE,
'SessionTypes' => %w[MySQL]
))

register_options(
Expand Down
3 changes: 1 addition & 2 deletions modules/auxiliary/admin/postgres/postgres_readfile.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ def initialize(info = {})
as well as read privileges to the target file.
},
'Author' => [ 'todb' ],
'License' => MSF_LICENSE,
'SessionTypes' => %w[PostgreSQL]
'License' => MSF_LICENSE
))

register_options(
Expand Down
3 changes: 1 addition & 2 deletions modules/auxiliary/admin/postgres/postgres_sql.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ def initialize(info = {})
'References' =>
[
[ 'URL', 'www.postgresql.org' ]
],
'SessionTypes' => %w[PostgreSQL]
]
))
end

Expand Down
3 changes: 1 addition & 2 deletions modules/auxiliary/scanner/mysql/mysql_version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ def initialize
Enumerates the version of MySQL servers.
},
'Author' => 'kris katterjohn',
'License' => MSF_LICENSE,
'SessionTypes' => %w[MySQL],
'License' => MSF_LICENSE
)

register_options([
Expand Down
3 changes: 1 addition & 2 deletions modules/auxiliary/scanner/postgres/postgres_version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ def initialize(info = {})
'References' =>
[
[ 'URL', 'https://www.postgresql.org/' ]
],
'SessionTypes' => %w[PostgreSQL]
]
))

register_options([ ]) # None needed.
Expand Down
3 changes: 1 addition & 2 deletions modules/exploits/linux/postgres/postgres_payload.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ def initialize(info = {})
],
],
'DefaultTarget' => 0,
'DisclosureDate' => '2007-06-05',
'SessionTypes' => %w[PostgreSQL]
'DisclosureDate' => '2007-06-05'
))

deregister_options('SQL', 'RETURN_ROWSET')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@ def initialize(info = {})
}
],
],
'DisclosureDate' => '2019-03-20',
'SessionTypes' => %w[PostgreSQL]
'DisclosureDate' => '2019-03-20'
))

register_options([
Expand Down
3 changes: 1 addition & 2 deletions modules/exploits/multi/postgres/postgres_createlang.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ def initialize(info = {})
['Automatic', {}]
],
'DefaultTarget' => 0,
'DisclosureDate' => '2016-01-01',
'SessionTypes' => %w[PostgreSQL]
'DisclosureDate' => '2016-01-01'
))

deregister_options('SQL', 'RETURN_ROWSET', 'VERBOSE')
Expand Down
1 change: 0 additions & 1 deletion modules/exploits/windows/postgres/postgres_payload.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ def initialize(info = {})
],
'DefaultTarget' => 0,
'DisclosureDate' => '2009-04-10', # Date of Bernardo's BH Europe paper.
'SessionTypes' => %w[PostgreSQL]
))

deregister_options('SQL', 'RETURN_ROWSET')
Expand Down

0 comments on commit d73293d

Please sign in to comment.