mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 12:41:30 +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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user