mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 20:51:31 +00:00
fix for UPX linux/macos
This commit is contained in:
@@ -1410,7 +1410,11 @@ def decloakToNamedTemporaryFile(filepath, name=None):
|
||||
return retVal
|
||||
|
||||
def decloakToMkstemp(filepath, **kwargs):
|
||||
name = mkstemp(**kwargs)[1]
|
||||
handle, name = mkstemp(**kwargs)
|
||||
|
||||
fptr = os.fdopen(handle)
|
||||
fptr.close() # close low level handle (causing problems latter)
|
||||
|
||||
retVal = open(name, 'w+b')
|
||||
|
||||
retVal.write(decloak(filepath))
|
||||
|
||||
Reference in New Issue
Block a user