2008-10-15 15:38:22 +00:00
#!/usr/bin/env python
"""
2012-07-12 18:38:03 +01:00
Copyright (c) 2006-2012 sqlmap developers (http://sqlmap.org/)
2010-10-14 23:18:29 +00:00
See the file ' doc/COPYING ' for copying permission
2008-10-15 15:38:22 +00:00
"""
import sys
2010-03-27 21:50:19 +00:00
2011-09-12 22:48:57 +00:00
PYVERSION = sys . version . split ( ) [ 0 ]
2008-10-15 15:38:22 +00:00
2011-09-12 22:48:57 +00:00
if PYVERSION > = " 3 " or PYVERSION < " 2.6 " :
2012-08-22 15:05:17 +02:00
exit ( " [CRITICAL] incompatible Python version detected ( ' %s ' ). For successfully running sqlmap you ' ll have to use version 2.6 or 2.7 (visit ' http://www.python.org/download/ ' ) " % PYVERSION )
2012-03-28 13:46:31 +00:00
elif __name__ == " __main__ " :
2011-09-12 22:48:57 +00:00
from _sqlmap import main
2012-04-03 12:35:19 +00:00
from lib . controller . controller import start # needed for proper working of --profile switch
2008-10-15 15:38:22 +00:00
main ( )