Skip to content

Commit 81e3395

Browse files
committed
Minor update
1 parent 0340ecd commit 81e3395

File tree

4 files changed

+17
-12
lines changed

4 files changed

+17
-12
lines changed

lib/core/common.py

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3450,11 +3450,16 @@ def _(value):
34503450

34513451
_retVal = [retVal]
34523452
def _thread(regex):
3453-
_retVal[0] = re.sub(r"(?i)%s" % regex, REFLECTED_VALUE_MARKER, _retVal[0])
3454-
3455-
if len(parts) > 2:
3456-
regex = REFLECTED_REPLACEMENT_REGEX.join(parts[1:])
3457-
_retVal[0] = re.sub(r"(?i)\b%s\b" % regex, REFLECTED_VALUE_MARKER, _retVal[0])
3453+
try:
3454+
_retVal[0] = re.sub(r"(?i)%s" % regex, REFLECTED_VALUE_MARKER, _retVal[0])
3455+
3456+
if len(parts) > 2:
3457+
regex = REFLECTED_REPLACEMENT_REGEX.join(parts[1:])
3458+
_retVal[0] = re.sub(r"(?i)\b%s\b" % regex, REFLECTED_VALUE_MARKER, _retVal[0])
3459+
except KeyboardInterrupt:
3460+
raise
3461+
except:
3462+
pass
34583463

34593464
thread = threading.Thread(target=_thread, args=(regex,))
34603465
thread.daemon = True

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.1.4.34"
22+
VERSION = "1.1.4.35"
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/threads.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,16 +87,16 @@ def getCurrentThreadName():
8787

8888
return threading.current_thread().getName()
8989

90-
def exceptionHandledFunction(threadFunction):
90+
def exceptionHandledFunction(threadFunction, silent=False):
9191
try:
9292
threadFunction()
9393
except KeyboardInterrupt:
9494
kb.threadContinue = False
9595
kb.threadException = True
9696
raise
9797
except Exception, ex:
98-
# thread is just going to be silently killed
99-
logger.error("thread %s: %s" % (threading.currentThread().getName(), ex.message))
98+
if not silent:
99+
logger.error("thread %s: %s" % (threading.currentThread().getName(), ex.message))
100100

101101
def setDaemon(thread):
102102
# Reference: http://stackoverflow.com/questions/190010/daemon-threads-explanation

txt/checksum.md5

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ fc89abe14a48b8232feba692bde992be lib/controller/controller.py
2727
310efc965c862cfbd7b0da5150a5ad36 lib/controller/__init__.py
2828
d3b4e1139bf117fe4cf6451d43d8253c lib/core/agent.py
2929
6cc95a117fbd34ef31b9aa25520f0e31 lib/core/bigarray.py
30-
1ec36b759f46d8ccb1f4e1434d86b115 lib/core/common.py
30+
dd39007e2dd0da81c712995a16775d0f lib/core/common.py
3131
5065a4242a8cccf72f91e22e1007ae63 lib/core/convert.py
3232
a8143dab9d3a27490f7d49b6b29ea530 lib/core/data.py
3333
7936d78b1a7f1f008ff92bf2f88574ba lib/core/datatype.py
@@ -46,12 +46,12 @@ ede9841e7cbbe841f41588f149e85789 lib/core/option.py
4646
d8e9250f3775119df07e9070eddccd16 lib/core/replication.py
4747
785f86e3f963fa3798f84286a4e83ff2 lib/core/revision.py
4848
40c80b28b3a5819b737a5a17d4565ae9 lib/core/session.py
49-
95062a1d8876adc28b63bb987f6c0c57 lib/core/settings.py
49+
60546a5ba1d6021b0216ec756df4192c lib/core/settings.py
5050
d91291997d2bd2f6028aaf371bf1d3b6 lib/core/shell.py
5151
2ad85c130cc5f2b3701ea85c2f6bbf20 lib/core/subprocessng.py
5252
92e35ddfdf0e9676dd51565bcf4fa5cf lib/core/target.py
5353
8970b88627902239d695280b1160e16c lib/core/testing.py
54-
52f2ec61f7df0c4f66452ad14b4ee525 lib/core/threads.py
54+
40881e63d516d8304fc19971049cded0 lib/core/threads.py
5555
ad74fc58fc7214802fd27067bce18dd2 lib/core/unescaper.py
5656
1f1fa616b5b19308d78c610ec8046399 lib/core/update.py
5757
4d13ed693401a498b6d073a2a494bd83 lib/core/wordlist.py

0 commit comments

Comments
 (0)