mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 20:51:31 +00:00
applying contributed patch for DB2
This commit is contained in:
31
plugins/dbms/db2/connector.py
Normal file
31
plugins/dbms/db2/connector.py
Normal file
@@ -0,0 +1,31 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
"""
|
||||
$Id: connector.py 3678 2011-04-15 12:33:18Z stamparm $
|
||||
|
||||
Copyright (c) 2006-2011 sqlmap developers (http://sqlmap.sourceforge.net/)
|
||||
See the file 'doc/COPYING' for copying permission
|
||||
"""
|
||||
|
||||
try:
|
||||
import pyodbc
|
||||
except ImportError, _:
|
||||
pass
|
||||
|
||||
from lib.core.data import logger
|
||||
from lib.core.exception import sqlmapConnectionException
|
||||
from lib.core.exception import sqlmapUnsupportedFeatureException
|
||||
|
||||
from plugins.generic.connector import Connector as GenericConnector
|
||||
|
||||
class Connector(GenericConnector):
|
||||
"""
|
||||
Homepage: http://pyodbc.googlecode.com/
|
||||
User guide: http://code.google.com/p/pyodbc/wiki/GettingStarted
|
||||
API: http://code.google.com/p/pyodbc/w/list
|
||||
Debian package: python-pyodbc
|
||||
License: MIT
|
||||
"""
|
||||
|
||||
def __init__(self):
|
||||
GenericConnector.__init__(self)
|
||||
Reference in New Issue
Block a user