Skip to content

Commit 0b6e536

Browse files
committed
update urlclean.mixPayload
1 parent 664fe18 commit 0b6e536

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
long_description = fh.read()
88

99
setup(name="wsltools",
10-
version="0.2.3",
10+
version="0.2.4",
1111
description="Web Scan Lazy Tools",
1212
long_description=long_description,
1313
long_description_content_type="text/markdown",

wsltools/urlclean.py

+2
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,8 @@ def mixPayload(url, payloads, scope=[], append=False):
178178

179179

180180
if not scope or 'path' in scope:
181+
if not path_split:
182+
result.add(urlunparse([u.scheme, u.netloc, p, u.params, u.query, u.fragment]))
181183
for i in xrange(len(path_split)):
182184
pathsTmp = copy.copy(path_split)
183185
if pathsTmp[i] == '': continue

0 commit comments

Comments
 (0)