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

Skip to content

Commit dddff45

Browse files
committed
Patch for --update progress
1 parent b377799 commit dddff45

4 files changed

Lines changed: 10 additions & 7 deletions

File tree

lib/core/common.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -884,8 +884,11 @@ def setColor(message, color=None, bold=False):
884884
retVal = colored(message, color=color, on_color=None, attrs=("bold",) if bold else None)
885885
elif level:
886886
level = getattr(logging, level, None) if isinstance(level, basestring) else level
887-
retVal = LOGGER_HANDLER.colorize(message, level)
888-
kb.stickyLevel = level if message and message[-1] != "\n" and message != '.' else None
887+
if message != '.':
888+
retVal = LOGGER_HANDLER.colorize(message, level)
889+
kb.stickyLevel = level if message and message[-1] != "\n" else None
890+
else:
891+
kb.stickyLevel = None
889892

890893
return retVal
891894

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from lib.core.enums import OS
2020

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

lib/core/update.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def update():
103103
debugMsg = "sqlmap will try to update itself using 'git' command"
104104
logger.debug(debugMsg)
105105

106-
dataToStdout("\r[%s] [INFO] update in progress " % time.strftime("%X"))
106+
dataToStdout("\r[%s] [INFO] update in progress" % time.strftime("%X"))
107107

108108
try:
109109
process = subprocess.Popen("git checkout . && git pull %s HEAD" % GIT_REPOSITORY, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, cwd=paths.SQLMAP_ROOT_PATH.encode(sys.getfilesystemencoding() or UNICODE_ENCODING))

txt/checksum.md5

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ c1da277517c7ec4c23e953a51b51e203 lib/controller/handler.py
3030
fb6be55d21a70765e35549af2484f762 lib/controller/__init__.py
3131
ed7874be0d2d3802f3d20184f2b280d5 lib/core/agent.py
3232
a932126e7d80e545c5d44af178d0bc0c lib/core/bigarray.py
33-
20e2ae9aaa173586d49f9e4c0baa5fb6 lib/core/common.py
33+
f97e6dc62b453cc787ef7f801ee1af5b lib/core/common.py
3434
de8d27ae6241163ff9e97aa9e7c51a18 lib/core/convert.py
3535
abcb1121eb56d3401839d14e8ed06b6e lib/core/data.py
3636
db60c6ebb63b72ed119e304b359fc1a6 lib/core/datatype.py
@@ -50,14 +50,14 @@ fe370021c6bc99daf44b2bfc0d1effb3 lib/core/patch.py
5050
7d8a22c582ad201f65b73225e4456170 lib/core/replication.py
5151
3179d34f371e0295dd4604568fb30bcd lib/core/revision.py
5252
d6269c55789f78cf707e09a0f5b45443 lib/core/session.py
53-
67ddffec8291af66e1eb0c10cc1161bf lib/core/settings.py
53+
22d863656bbd0c35477126043a0110f3 lib/core/settings.py
5454
4483b4a5b601d8f1c4281071dff21ecc lib/core/shell.py
5555
10fd19b0716ed261e6d04f311f6f527c lib/core/subprocessng.py
5656
9c7b5c6397fb3da33e7a4d7876d159c6 lib/core/target.py
5757
7857b24b7865ccb4a05283faa596974d lib/core/testing.py
5858
e9788d2992f842cf91ab67389bf4372a lib/core/threads.py
5959
2c263c8610667fdc593c50a35ab20f57 lib/core/unescaper.py
60-
ff45c74515fecc95277f7b9ad945f17c lib/core/update.py
60+
54e9cd1968adea11283d44631f0ca400 lib/core/update.py
6161
5b3f08208be0579356f78ce5805d37b2 lib/core/wordlist.py
6262
fb6be55d21a70765e35549af2484f762 lib/__init__.py
6363
4881480d0c1778053908904e04570dc3 lib/parse/banner.py

0 commit comments

Comments
 (0)