Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3579897

Browse files
committed
Minor update (resumed...)
1 parent f0306af commit 3579897

2 files changed

Lines changed: 9 additions & 4 deletions

File tree

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from thirdparty.six import unichr as _unichr
1919

2020
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
21-
VERSION = "1.3.6.0"
21+
VERSION = "1.3.6.1"
2222
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2323
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2424
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

thirdparty/ansistrm/ansistrm.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,14 +187,19 @@ def colorize(self, message, levelno):
187187
string = match.group(1)
188188
message = message.replace("'%s'" % string, "'%s'" % ''.join((self.csi, str(self.color_map["white"] + 30), 'm', string, self._reset(message))), 1)
189189
else:
190-
match = re.search(r" \('(.+)'\)\Z", message)
190+
match = re.search(r"\bresumed: '(.+\.\.\.)", message)
191191
if match:
192192
string = match.group(1)
193-
message = message.replace("'%s'" % string, "'%s'" % ''.join((self.csi, str(self.color_map["white"] + 30), 'm', string, self._reset(message))), 1)
193+
message = message.replace("'%s" % string, "'%s" % ''.join((self.csi, str(self.color_map["white"] + 30), 'm', string, self._reset(message))), 1)
194194
else:
195-
for match in re.finditer(r"[^\w]'([^']+)'", message): # single-quoted
195+
match = re.search(r" \('(.+)'\)\Z", message)
196+
if match:
196197
string = match.group(1)
197198
message = message.replace("'%s'" % string, "'%s'" % ''.join((self.csi, str(self.color_map["white"] + 30), 'm', string, self._reset(message))), 1)
199+
else:
200+
for match in re.finditer(r"[^\w]'([^']+)'", message): # single-quoted
201+
string = match.group(1)
202+
message = message.replace("'%s'" % string, "'%s'" % ''.join((self.csi, str(self.color_map["white"] + 30), 'm', string, self._reset(message))), 1)
198203
else:
199204
message = ''.join((self.csi, ';'.join(params), 'm', message, self.reset))
200205

0 commit comments

Comments
 (0)