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.3.14 "
21+ VERSION = "1.5.3.15 "
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 1313 from thirdparty .fcrypt .fcrypt import crypt
1414
1515_multiprocessing = None
16- try :
17- import multiprocessing
18-
19- # problems on FreeBSD (Reference: https://web.archive.org/web/20110710041353/http://www.eggheadcafe.com/microsoft/Python/35880259/multiprocessing-on-freebsd.aspx)
20- _ = multiprocessing .Queue ()
21-
22- # problems with ctypes (Reference: https://github.com/sqlmapproject/sqlmap/issues/2952)
23- _ = multiprocessing .Value ('i' )
24- except (ImportError , OSError , AttributeError ):
25- pass
26- else :
27- try :
28- if multiprocessing .cpu_count () > 1 :
29- _multiprocessing = multiprocessing
30- except NotImplementedError :
31- pass
3216
3317import base64
3418import binascii
@@ -983,6 +967,24 @@ def dictionaryAttack(attack_dict):
983967
984968 if conf .disableMulti :
985969 _multiprocessing = None
970+ else :
971+ # Note: https://github.com/sqlmapproject/sqlmap/issues/4367
972+ try :
973+ import multiprocessing
974+
975+ # problems on FreeBSD (Reference: https://web.archive.org/web/20110710041353/http://www.eggheadcafe.com/microsoft/Python/35880259/multiprocessing-on-freebsd.aspx)
976+ _ = multiprocessing .Queue ()
977+
978+ # problems with ctypes (Reference: https://github.com/sqlmapproject/sqlmap/issues/2952)
979+ _ = multiprocessing .Value ('i' )
980+ except (ImportError , OSError , AttributeError ):
981+ pass
982+ else :
983+ try :
984+ if multiprocessing .cpu_count () > 1 :
985+ _multiprocessing = multiprocessing
986+ except NotImplementedError :
987+ pass
986988
987989 for (_ , hashes ) in attack_dict .items ():
988990 for hash_ in hashes :
You can’t perform that action at this time.
0 commit comments