Minor code refactoring

This commit is contained in:
Bernardo Damele committed 2010-05-21 12:09:31 +00:00
1 parent f6bffb61d3
commit a21a7fc56d
5 files changed
+42 -33

No files matched your search

+3 -3
View File
@@ -46,15 +46,15 @@ class UPX:
"""
def __initialize(self, srcFile, dstFile=None):
if "darwin" in PLATFORM:
if PLATFORM == "mac":
self.__upxPath = "%s/upx/macosx/upx" % paths.SQLMAP_CONTRIB_PATH
elif "win" in PLATFORM:
elif PLATFORM in ( "ce", "nt" ):
self.__upxTempExe = decloakToMkstemp("%s\upx\windows\upx.exe_" % paths.SQLMAP_CONTRIB_PATH, suffix=".exe")
self.__upxPath = self.__upxTempExe.name
self.__upxTempExe.close() #needed for execution rights
elif "linux" in PLATFORM:
elif PLATFORM == "posix":
self.__upxPath = "%s/upx/linux/upx" % paths.SQLMAP_CONTRIB_PATH
else: