Skip to content

Commit 9af2e68

Browse files
committed
Update for sqlmapproject#4525
1 parent bd59dd4 commit 9af2e68

2 files changed

Lines changed: 7 additions & 1 deletion

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.5.1.9"
21+
VERSION = "1.5.1.10"
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)

lib/request/connect.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,15 @@
66
"""
77

88
import binascii
9+
import inspect
910
import logging
1011
import os
1112
import random
1213
import re
1314
import socket
1415
import string
1516
import struct
17+
import sys
1618
import time
1719
import traceback
1820

@@ -145,6 +147,10 @@ class Connect(object):
145147

146148
@staticmethod
147149
def _getPageProxy(**kwargs):
150+
if (len(inspect.stack()) > sys.getrecursionlimit() // 2): # Note: https://github.com/sqlmapproject/sqlmap/issues/4525
151+
warnMsg = "unable to connect to the target URL"
152+
raise SqlmapConnectionException(warnMsg)
153+
148154
try:
149155
return Connect.getPage(**kwargs)
150156
except RuntimeError:

0 commit comments

Comments
 (0)