File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818from 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 "
2222TYPE = "dev" if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] != '0' else "stable"
2323TYPE_COLORS = {"dev" : 33 , "stable" : 90 , "pip" : 34 }
2424VERSION_STRING = "sqlmap/%s#%s" % ('.' .join (VERSION .split ('.' )[:- 1 ]) if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] == '0' else VERSION , TYPE )
Original file line number Diff line number Diff line change 66"""
77
88import binascii
9+ import inspect
910import logging
1011import os
1112import random
1213import re
1314import socket
1415import string
1516import struct
17+ import sys
1618import time
1719import 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 :
You can’t perform that action at this time.
0 commit comments