mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 20:51:31 +00:00
added support for reusing connections
This commit is contained in:
@@ -47,7 +47,10 @@ class Connector(GenericConnector):
|
||||
def __init__(self):
|
||||
GenericConnector.__init__(self)
|
||||
|
||||
def connect(self):
|
||||
def connect(self, reuse=True):
|
||||
if reuse and self.connector:
|
||||
return
|
||||
|
||||
self.initConnection()
|
||||
|
||||
try:
|
||||
@@ -87,3 +90,4 @@ class Connector(GenericConnector):
|
||||
def close(self):
|
||||
self.cursor.close()
|
||||
self.connector.close()
|
||||
self.closed()
|
||||
|
||||
Reference in New Issue
Block a user