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

Skip to content

Commit 3275d9c

Browse files
committed
Minor patch (in case of continuous DROP)
1 parent f445fbe commit 3275d9c

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

lib/core/settings.py

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

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

lib/request/connect.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ class WebSocketException(Exception):
8282
from lib.core.exception import SqlmapGenericException
8383
from lib.core.exception import SqlmapSyntaxException
8484
from lib.core.exception import SqlmapTokenException
85+
from lib.core.exception import SqlmapUserQuitException
8586
from lib.core.exception import SqlmapValueException
8687
from lib.core.settings import ASTERISK_MARKER
8788
from lib.core.settings import BOUNDARY_BACKSLASH_MARKER
@@ -725,8 +726,11 @@ class _(dict):
725726

726727
kb.connErrorChoice = readInput(message, default='N', boolean=True)
727728

728-
if kb.connErrorChoice is False:
729-
raise SqlmapConnectionException(warnMsg)
729+
if kb.connErrorChoice is not None:
730+
if kb.connErrorChoice:
731+
raise SqlmapConnectionException(warnMsg)
732+
else:
733+
raise SqlmapUserQuitException
730734

731735
if "forcibly closed" in tbMsg:
732736
logger.critical(warnMsg)

0 commit comments

Comments
 (0)