Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e6f0107

Browse files
committed
minor fix for cases when the retrieved output is safe encoded (like for --os-shell)
1 parent 4d4e380 commit e6f0107

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lib/techniques/error/use.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,10 @@ def __oneShotErrorUse(expression, field):
113113
else:
114114
retVal += output if output else ''
115115

116-
if not (output and len(output) == chunk_length):
117-
break
118-
else:
116+
if output and len(output) >= chunk_length:
119117
offset += chunk_length
118+
else:
119+
break
120120
else:
121121
retVal = output
122122
break

0 commit comments

Comments
 (0)