File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818from thirdparty .six import unichr as _unichr
1919
2020# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
21- VERSION = "1.3.6.26 "
21+ VERSION = "1.3.6.27 "
2222TYPE = "dev" if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] != '0' else "stable"
2323TYPE_COLORS = {"dev" : 33 , "stable" : 90 , "pip" : 34 }
2424VERSION_STRING = "sqlmap/%s#%s" % ('.' .join (VERSION .split ('.' )[:- 1 ]) if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] == '0' else VERSION , TYPE )
Original file line number Diff line number Diff line change 1313
1414import logging
1515import optparse
16+ import os
1617import warnings
1718
1819warnings .filterwarnings (action = "ignore" , message = ".*was already imported" , category = UserWarning )
1920warnings .filterwarnings (action = "ignore" , category = DeprecationWarning )
2021
21- from sqlmap import modulePath
22+ from lib . core . common import getUnicode
2223from lib .core .common import setPaths
2324from lib .core .data import logger
2425from lib .core .patch import dirtyPatches
2526from lib .core .patch import resolveCrossReferences
2627from lib .core .settings import RESTAPI_DEFAULT_ADAPTER
2728from lib .core .settings import RESTAPI_DEFAULT_ADDRESS
2829from lib .core .settings import RESTAPI_DEFAULT_PORT
30+ from lib .core .settings import UNICODE_ENCODING
2931from lib .utils .api import client
3032from lib .utils .api import server
3133
34+ try :
35+ from sqlmap import modulePath
36+ except ImportError :
37+ def modulePath ():
38+ return getUnicode (os .path .dirname (os .path .realpath (__file__ )), encoding = sys .getfilesystemencoding () or UNICODE_ENCODING )
39+
3240def main ():
3341 """
3442 REST-JSON API main function
You can’t perform that action at this time.
0 commit comments