Hi Iago.
This is a clearly "only Python 3" version of pymsql you are using.
If you go to:
https://github.com/petehunt/PyMySQL/blob/master/pymysql/connections.pyyou'll
see that there "import ConfigParser" is used which is compatible
with required Python v2.
This whole mess is a result of "The ConfigParser module has been renamed to
configparser in Python 3.0" (
http://docs.python.org/library/configparser.html).
Please, go to the: https://github.com/petehunt/PyMySQL/downloads and
download there version for Python 2.x.
Kind regards,
Miroslav Stampar
On Fri, Jan 27, 2012 at 3:38 AM, Iago Sousa <146050...@gmail.com> wrote:
> sqlmap version: 1.0-dev (r4690)
> Python version: 2.6.5
> Operating system: posix
> Command line: sqlmap.py -d
> **************************************************************
> Technique: None
> Back-end DBMS: MySQL (identified)
> Traceback (most recent call last):
> File "/pentest/database/sqlmap/_sqlmap.py", line 83, in main
> start()
> File "/pentest/database/sqlmap/lib/controller/controller.py", line
> 227, in start
> action()
> File "/pentest/database/sqlmap/lib/controller/action.py", line 32, in
> action
> setHandler()
> File "/pentest/database/sqlmap/lib/controller/handler.py", line 98,
> in setHandler
> conf.dbmsConnector.connect()
> File "/pentest/database/sqlmap/plugins/dbms/mysql/connector.py", line
> 39, in connect
> self.connector = pymysql.connect(host=self.hostname,
> user=self.user, passwd=self.password, db=self.db, port=self.port,
> connect_timeout=conf.timeout, use_unicode=True)
> File
>
> "/usr/local/lib/python2.6/dist-packages/PyMySQL3-0.4-py2.6.egg/pymysql/__init__.py",
> line 92, in Connect
> from .connections import Connection
> File
>
> "/usr/local/lib/python2.6/dist-packages/PyMySQL3-0.4-py2.6.egg/pymysql/connections.py",
> line 21, in <module>
> import configparser
> ImportError: No module named configparser
>
> [*] shutting down at 23:37:41
>
>
>
> ------------------------------------------------------------------------------
> Try before you buy = See our experts in action!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-dev2
> _______________________________________________
> sqlmap-users mailing list
> sqlmap-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sqlmap-users
>
--
Miroslav Stampar
http://about.me/stamparm
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
sqlmap-users mailing list
sqlmap-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlmap-users