updates, fixes and stuff

This commit is contained in:
Miroslav Stampar
2010-03-30 11:06:30 +00:00
parent f04449be03
commit 87d8c6719e
7 changed files with 82 additions and 14 deletions

View File

@@ -74,8 +74,8 @@ class Connector(GenericConnector):
self.connector.commit()
def select(self, query):
self.execute(query)
return self.fetchall()
self.cursor.execute(query)
return self.cursor.fetchall()
def setCursor(self):
self.cursor = self.connector.cursor()

View File

@@ -127,6 +127,9 @@ class Fingerprint(GenericFingerprint):
logMsg = "testing Firebird"
logger.info(logMsg)
if conf.direct:
conf.dbmsConnector.connect()
randInt = randomInt()
payload = agent.fullPayload(" AND EXISTS(SELECT * FROM RDB$DATABASE WHERE %d=%d)" % (randInt, randInt))