mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-25 11:03:47 +03:00
Minor consistency patch
This commit is contained in:
parent
f9da29284c
commit
5f2c31f8ec
|
@ -9,10 +9,9 @@ import os
|
|||
import posixpath
|
||||
import re
|
||||
import StringIO
|
||||
import tempfile
|
||||
import urlparse
|
||||
|
||||
from tempfile import mkstemp
|
||||
|
||||
from extra.cloak.cloak import decloak
|
||||
from lib.core.agent import agent
|
||||
from lib.core.common import arrayizeValue
|
||||
|
@ -257,7 +256,7 @@ class Web:
|
|||
stagerName = "tmpu%s.%s" % (randomStr(lowercase=True), self.webApi)
|
||||
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)
|
||||
|
||||
with open(filename, "w+") as f:
|
||||
|
|
Loading…
Reference in New Issue
Block a user