mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-07 13:11:29 +00:00
added --hostname switch to retrieve DBMS server hostname - closes issue #69
This commit is contained in:
@@ -74,7 +74,7 @@ class Dump:
|
||||
def string(self, header, data, sort=True):
|
||||
if isListLike(data):
|
||||
self.lister(header, data, sort)
|
||||
elif data is not None:
|
||||
elif data is not None and len(data) > 0:
|
||||
data = getUnicode(data)
|
||||
|
||||
if data[-1] == '\n':
|
||||
@@ -125,6 +125,9 @@ class Dump:
|
||||
else:
|
||||
self.string("current database", data)
|
||||
|
||||
def hostname(self,data):
|
||||
self.string("hostname", data)
|
||||
|
||||
def dba(self,data):
|
||||
self.string("current user is DBA", data)
|
||||
|
||||
|
||||
@@ -96,6 +96,7 @@ optDict = {
|
||||
"getBanner": ("boolean", "Banners"),
|
||||
"getCurrentUser": ("boolean", "Users"),
|
||||
"getCurrentDb": ("boolean", "Databases"),
|
||||
"getHostname": "boolean",
|
||||
"isDba": "boolean",
|
||||
"getUsers": ("boolean", "Users"),
|
||||
"getPasswordHashes": ("boolean", "Passwords"),
|
||||
|
||||
Reference in New Issue
Block a user