mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 04:31:30 +00:00
minor update related to r2401
This commit is contained in:
@@ -7,10 +7,7 @@ Copyright (c) 2006-2010 sqlmap developers (http://sqlmap.sourceforge.net/)
|
|||||||
See the file 'doc/COPYING' for copying permission
|
See the file 'doc/COPYING' for copying permission
|
||||||
"""
|
"""
|
||||||
|
|
||||||
try:
|
from lib.core.exception import sqlmapMissingDependence
|
||||||
import sqlite3
|
|
||||||
except ImportError, _:
|
|
||||||
pass
|
|
||||||
|
|
||||||
class Replication:
|
class Replication:
|
||||||
"""
|
"""
|
||||||
@@ -19,6 +16,12 @@ class Replication:
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, dbpath):
|
def __init__(self, dbpath):
|
||||||
|
try:
|
||||||
|
import sqlite3
|
||||||
|
except ImportError, _:
|
||||||
|
errMsg = "missing module 'sqlite3' needed by --replicate switch"
|
||||||
|
raise sqlmapMissingDependence, errMsg
|
||||||
|
|
||||||
self.dbpath = dbpath
|
self.dbpath = dbpath
|
||||||
self.connection = sqlite3.connect(dbpath)
|
self.connection = sqlite3.connect(dbpath)
|
||||||
self.connection.isolation_level = None
|
self.connection.isolation_level = None
|
||||||
|
|||||||
Reference in New Issue
Block a user