2008-10-15 19:38:22 +04:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
|
|
|
"""
|
2008-10-15 19:56:32 +04:00
|
|
|
$Id$
|
2008-10-15 19:38:22 +04:00
|
|
|
|
2011-07-08 00:10:03 +04:00
|
|
|
Copyright (c) 2006-2011 sqlmap developers (http://www.sqlmap.org/)
|
2010-10-15 03:18:29 +04:00
|
|
|
See the file 'doc/COPYING' for copying permission
|
2008-10-15 19:38:22 +04:00
|
|
|
"""
|
|
|
|
|
|
|
|
import sys
|
2010-03-28 00:50:19 +03:00
|
|
|
|
2011-09-13 02:48:57 +04:00
|
|
|
PYVERSION = sys.version.split()[0]
|
2008-10-15 19:38:22 +04:00
|
|
|
|
2011-09-13 02:48:57 +04:00
|
|
|
if PYVERSION >= "3" or PYVERSION < "2.6":
|
2011-11-28 20:01:01 +04:00
|
|
|
exit("[CRITICAL] incompatible Python version detected ('%s'). For successfully running sqlmap you'll have to use 2.6 <= Python < 3.0" % PYVERSION)
|
2011-09-13 02:48:57 +04:00
|
|
|
else:
|
|
|
|
from _sqlmap import main
|
2011-11-16 20:41:22 +04:00
|
|
|
# import needed for proper working of --profile switch
|
|
|
|
from lib.controller.controller import start
|
2008-10-15 19:38:22 +04:00
|
|
|
main()
|