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

Skip to content

Commit 7e69cc1

Browse files
committed
Fixes #2235
1 parent 5b14eec commit 7e69cc1

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

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.0.10.42"
22+
VERSION = "1.0.10.43"
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 & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
from lib.core.enums import PAYLOAD
2121
from lib.core.exception import SqlmapConnectionException
2222
from lib.core.exception import SqlmapThreadException
23+
from lib.core.exception import SqlmapUserQuitException
2324
from lib.core.exception import SqlmapValueException
2425
from lib.core.settings import MAX_NUMBER_OF_THREADS
2526
from lib.core.settings import PYVERSION
@@ -166,13 +167,13 @@ def runThreads(numThreads, threadFunction, cleanupFunction=None, forwardExceptio
166167
alive = True
167168
time.sleep(0.1)
168169

169-
except KeyboardInterrupt:
170+
except (KeyboardInterrupt, SqlmapUserQuitException), ex:
170171
print
171172
kb.threadContinue = False
172173
kb.threadException = True
173174

174175
if numThreads > 1:
175-
logger.info("waiting for threads to finish (Ctrl+C was pressed)")
176+
logger.info("waiting for threads to finish%s" % (" (Ctrl+C was pressed)" if isinstance(ex, KeyboardInterrupt) else ""))
176177
try:
177178
while (threading.activeCount() > 1):
178179
pass

txt/checksum.md5

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ e60456db5380840a586654344003d4e6 lib/core/readlineng.py
4545
5ef56abb8671c2ca6ceecb208258e360 lib/core/replication.py
4646
99a2b496b9d5b546b335653ca801153f lib/core/revision.py
4747
7c15dd2777af4dac2c89cab6df17462e lib/core/session.py
48-
49b872986ac8a016a5ec7e378eaac419 lib/core/settings.py
48+
469c00ca02a5d91ca058cfc54cfa7e94 lib/core/settings.py
4949
7af83e4f18cab6dff5e67840eb65be80 lib/core/shell.py
5050
23657cd7d924e3c6d225719865855827 lib/core/subprocessng.py
5151
c3ace7874a536d801f308cf1fd03df99 lib/core/target.py
5252
d43f059747ffd48952922c94152e2a07 lib/core/testing.py
53-
2cafee22d9f8018e7efff0a5e3178596 lib/core/threads.py
53+
95997f8d0b23fed9289b04b85d0e9b64 lib/core/threads.py
5454
53c15b78e0288274f52410db25406432 lib/core/unescaper.py
5555
60100cb265ae8bb903b760c7b7a3a7f3 lib/core/update.py
5656
8485a3cd94c0a5af2718bad60c5f1ae5 lib/core/wordlist.py

0 commit comments

Comments
 (0)