mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 17:46:37 +03:00
proper SQLite 2 library
This commit is contained in:
parent
91c00939f7
commit
5635776173
|
@ -130,7 +130,7 @@ DBMS_DICT = {
|
||||||
DBMS.MYSQL: (MYSQL_ALIASES, "python pymysql", "https://github.com/petehunt/PyMySQL/"),
|
DBMS.MYSQL: (MYSQL_ALIASES, "python pymysql", "https://github.com/petehunt/PyMySQL/"),
|
||||||
DBMS.PGSQL: (PGSQL_ALIASES, "python-psycopg2", "http://initd.org/psycopg/"),
|
DBMS.PGSQL: (PGSQL_ALIASES, "python-psycopg2", "http://initd.org/psycopg/"),
|
||||||
DBMS.ORACLE: (ORACLE_ALIASES, "python cx_Oracle", "http://cx-oracle.sourceforge.net/"),
|
DBMS.ORACLE: (ORACLE_ALIASES, "python cx_Oracle", "http://cx-oracle.sourceforge.net/"),
|
||||||
DBMS.SQLITE: (SQLITE_ALIASES, "python-pysqlite2", "http://pysqlite.googlecode.com/"),
|
DBMS.SQLITE: (SQLITE_ALIASES, "python-sqlite", "http://packages.ubuntu.com/quantal/python-sqlite"),
|
||||||
DBMS.ACCESS: (ACCESS_ALIASES, "python-pyodbc", "http://pyodbc.googlecode.com/"),
|
DBMS.ACCESS: (ACCESS_ALIASES, "python-pyodbc", "http://pyodbc.googlecode.com/"),
|
||||||
DBMS.FIREBIRD: (FIREBIRD_ALIASES, "python-kinterbasdb", "http://kinterbasdb.sourceforge.net/"),
|
DBMS.FIREBIRD: (FIREBIRD_ALIASES, "python-kinterbasdb", "http://kinterbasdb.sourceforge.net/"),
|
||||||
DBMS.MAXDB: (MAXDB_ALIASES, None, None),
|
DBMS.MAXDB: (MAXDB_ALIASES, None, None),
|
||||||
|
|
|
@ -22,10 +22,10 @@ from plugins.generic.connector import Connector as GenericConnector
|
||||||
|
|
||||||
class Connector(GenericConnector):
|
class Connector(GenericConnector):
|
||||||
"""
|
"""
|
||||||
Homepage: http://pysqlite.googlecode.com/
|
Homepage: http://pysqlite.googlecode.com/ and http://packages.ubuntu.com/quantal/python-sqlite
|
||||||
User guide: http://docs.python.org/release/2.5/lib/module-sqlite3.html
|
User guide: http://docs.python.org/release/2.5/lib/module-sqlite3.html
|
||||||
API: http://docs.python.org/library/sqlite3.html
|
API: http://docs.python.org/library/sqlite3.html
|
||||||
Debian package: python-pysqlite2 (SQLite 2), python-pysqlite3 (SQLite 3)
|
Debian package: python-sqlite (SQLite 2), python-pysqlite3 (SQLite 3)
|
||||||
License: MIT
|
License: MIT
|
||||||
|
|
||||||
Possible connectors: http://wiki.python.org/moin/SQLite
|
Possible connectors: http://wiki.python.org/moin/SQLite
|
||||||
|
@ -54,7 +54,7 @@ class Connector(GenericConnector):
|
||||||
try:
|
try:
|
||||||
import sqlite
|
import sqlite
|
||||||
except ImportError:
|
except ImportError:
|
||||||
errMsg = "sqlmap requires 'python-sqlite2' third-party library "
|
errMsg = "sqlmap requires 'python-sqlite' third-party library "
|
||||||
errMsg += "in order to directly connect to the database '%s'" % self.db
|
errMsg += "in order to directly connect to the database '%s'" % self.db
|
||||||
raise SqlmapMissingDependence(errMsg)
|
raise SqlmapMissingDependence(errMsg)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user