File tree Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -3842,7 +3842,12 @@ def checkSameHost(*urls):
3842
3842
False
3843
3843
"""
3844
3844
3845
- return all (urlparse .urlparse (url or "" ).netloc .split (':' )[0 ] == urlparse .urlparse (urls [0 ] or "" ).netloc .split (':' )[0 ] for url in urls )
3845
+ if not urls :
3846
+ return None
3847
+ elif len (urls ) == 1 :
3848
+ return True
3849
+ else :
3850
+ return all (urlparse .urlparse (url or "" ).netloc .split (':' )[0 ] == urlparse .urlparse (urls [0 ] or "" ).netloc .split (':' )[0 ] for url in urls [1 :])
3846
3851
3847
3852
def getHostHeader (url ):
3848
3853
"""
Original file line number Diff line number Diff line change 19
19
from lib .core .enums import OS
20
20
21
21
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22
- VERSION = "1.0.12.12 "
22
+ VERSION = "1.0.12.13 "
23
23
TYPE = "dev" if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] != '0' else "stable"
24
24
TYPE_COLORS = {"dev" : 33 , "stable" : 90 , "pip" : 34 }
25
25
VERSION_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 @@ -26,7 +26,7 @@ ec007a1424da78cfdae90da6ae49ed9b lib/controller/handler.py
26
26
cc9c82cfffd8ee9b25ba3af6284f057e lib/controller/__init__.py
27
27
cdffff6260c40ccb4e4092fc21d9d63f lib/core/agent.py
28
28
eb0bd28b0bd9fbf67dcc3119116df377 lib/core/bigarray.py
29
- 88578e4e2dd5f01cf0098dcd276ca598 lib/core/common.py
29
+ 55f6745ac8157ba1b6b0ba1b4ce78d78 lib/core/common.py
30
30
ab5ef8fe4e4beaef4016d458d0fdefe3 lib/core/convert.py
31
31
e77cca1cb063016f71f6e6bdebf4ec73 lib/core/data.py
32
32
1d042f0bc0557d3fd564ea5a46deb77e lib/core/datatype.py
@@ -45,7 +45,7 @@ e60456db5380840a586654344003d4e6 lib/core/readlineng.py
45
45
b3a62d41a5af6cd7fa733b6227febb0c lib/core/replication.py
46
46
dfb664b223ac3585d51e58839b777d9b lib/core/revision.py
47
47
7c15dd2777af4dac2c89cab6df17462e lib/core/session.py
48
- 0e55924e1cd0e5ecdf0173e16ebefd5b lib/core/settings.py
48
+ 731e3372164a2d0283444f90bbbb150b lib/core/settings.py
49
49
7af83e4f18cab6dff5e67840eb65be80 lib/core/shell.py
50
50
23657cd7d924e3c6d225719865855827 lib/core/subprocessng.py
51
51
c3ace7874a536d801f308cf1fd03df99 lib/core/target.py
You can’t perform that action at this time.
0 commit comments