Minor drei update

This commit is contained in:
Miroslav Stampar
2019-05-02 17:35:56 +02:00
parent ff968c2331
commit 291b491c3e
9 changed files with 33 additions and 60 deletions

View File

@@ -1758,7 +1758,7 @@ def getFileType(filePath):
"""
try:
desc = magic.from_file(filePath) or ""
desc = getUnicode(magic.from_file(filePath) or "")
except:
return "unknown"

View File

@@ -145,8 +145,8 @@ def utf8decode(value):
"""
Returns UTF-8 representation of the supplied 8-bit string representation
>>> utf8decode(b'foobar')
u'foobar'
>>> utf8decode(b'foobar') == u'foobar'
True
"""
retVal = value

View File

@@ -17,7 +17,7 @@ from lib.core.enums import DBMS_DIRECTORY_NAME
from lib.core.enums import OS
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
VERSION = "1.3.5.4"
VERSION = "1.3.5.5"
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)