From 5635776173a149c90e4ead0b39b124da05ac7d9d Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Tue, 22 Jan 2013 18:56:25 +0000 Subject: [PATCH] proper SQLite 2 library --- lib/core/dicts.py | 2 +- plugins/dbms/sqlite/connector.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/core/dicts.py b/lib/core/dicts.py index 9ce1fe2d1..4901d016e 100644 --- a/lib/core/dicts.py +++ b/lib/core/dicts.py @@ -130,7 +130,7 @@ DBMS_DICT = { DBMS.MYSQL: (MYSQL_ALIASES, "python pymysql", "https://github.com/petehunt/PyMySQL/"), DBMS.PGSQL: (PGSQL_ALIASES, "python-psycopg2", "http://initd.org/psycopg/"), 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.FIREBIRD: (FIREBIRD_ALIASES, "python-kinterbasdb", "http://kinterbasdb.sourceforge.net/"), DBMS.MAXDB: (MAXDB_ALIASES, None, None), diff --git a/plugins/dbms/sqlite/connector.py b/plugins/dbms/sqlite/connector.py index c3d627e8f..7352cc733 100644 --- a/plugins/dbms/sqlite/connector.py +++ b/plugins/dbms/sqlite/connector.py @@ -22,10 +22,10 @@ from plugins.generic.connector import Connector as 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 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 Possible connectors: http://wiki.python.org/moin/SQLite @@ -54,7 +54,7 @@ class Connector(GenericConnector): try: import sqlite 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 raise SqlmapMissingDependence(errMsg)