mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-18 04:20:35 +03:00
Minor consistency patch
This commit is contained in:
parent
f9da29284c
commit
5f2c31f8ec
|
@ -9,10 +9,9 @@ import os
|
||||||
import posixpath
|
import posixpath
|
||||||
import re
|
import re
|
||||||
import StringIO
|
import StringIO
|
||||||
|
import tempfile
|
||||||
import urlparse
|
import urlparse
|
||||||
|
|
||||||
from tempfile import mkstemp
|
|
||||||
|
|
||||||
from extra.cloak.cloak import decloak
|
from extra.cloak.cloak import decloak
|
||||||
from lib.core.agent import agent
|
from lib.core.agent import agent
|
||||||
from lib.core.common import arrayizeValue
|
from lib.core.common import arrayizeValue
|
||||||
|
@ -257,7 +256,7 @@ class Web:
|
||||||
stagerName = "tmpu%s.%s" % (randomStr(lowercase=True), self.webApi)
|
stagerName = "tmpu%s.%s" % (randomStr(lowercase=True), self.webApi)
|
||||||
self.webStagerFilePath = posixpath.join(ntToPosixSlashes(directory), stagerName)
|
self.webStagerFilePath = posixpath.join(ntToPosixSlashes(directory), stagerName)
|
||||||
|
|
||||||
handle, filename = mkstemp()
|
handle, filename = tempfile.mkstemp()
|
||||||
os.fdopen(handle).close() # close low level handle (causing problems later)
|
os.fdopen(handle).close() # close low level handle (causing problems later)
|
||||||
|
|
||||||
with open(filename, "w+") as f:
|
with open(filename, "w+") as f:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user