mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 06:50:14 +00:00
Reverting set() brace form because of Python 2.6 compatibility issues
This commit is contained in:
parent
0a8bc52910
commit
10fd004dec
8 changed files with 18 additions and 15 deletions
|
|
@ -126,7 +126,7 @@ def crawl(target):
|
|||
dataToStdout("\r[%s] [INFO] %s" % (time.strftime("%X"), status), True)
|
||||
|
||||
threadData.shared.deeper = set()
|
||||
threadData.shared.unprocessed = {target}
|
||||
threadData.shared.unprocessed = set([target])
|
||||
|
||||
if not conf.sitemapUrl:
|
||||
message = "do you want to check for the existence of "
|
||||
|
|
|
|||
|
|
@ -180,7 +180,7 @@ class Response:
|
|||
"size": len(self.content or "")
|
||||
}
|
||||
|
||||
binary = {'\0', '\1'}
|
||||
binary = set(['\0', '\1'])
|
||||
if any(c in binary for c in self.content):
|
||||
content["encoding"] = "base64"
|
||||
content["text"] = base64.b64encode(self.content)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue