mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-28 20:43:49 +03:00
minor update related to r2401
This commit is contained in:
parent
360aff7a4d
commit
ca5125bbe0
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user