mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-07-29 17:39:56 +03:00
Avoid NULL bytes when writing to file
This commit is contained in:
parent
e03b2df58f
commit
e5f974bd2d
|
@ -746,6 +746,10 @@ class Agent(object):
|
|||
if intoRegExp:
|
||||
intoRegExp = intoRegExp.group(1)
|
||||
query = query[:query.index(intoRegExp)]
|
||||
# The position is irrelevant when writing into a file,
|
||||
# so bump the payload to the first position to avoid
|
||||
# NULL bytes written into the file
|
||||
position = 0
|
||||
|
||||
for element in xrange(0, count):
|
||||
if element > 0:
|
||||
|
|
Loading…
Reference in New Issue
Block a user