Skip to content

Commit d37975c

Browse files
authored
Fixed nasty bug in Decloakify code, please re-baseline
Fixed nasty bug in call to Decloakify(), please re-baseline.
1 parent 64825e8 commit d37975c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

cloakifyFactory.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# Filename: cloakifyFactory.py
44
#
5-
# Version: 1.0.0
5+
# Version: 1.0.1
66
#
77
# Author: Joe Gervais (TryCatchHCF)
88
#
@@ -158,6 +158,9 @@ def DecloakifyFile():
158158
# Remove Noise, overwrite the source file with the stripped contents
159159
print "Removing noise from noise generator:", gNoiseScripts[ noiseNum ]
160160
os.system( "./removeNoise.py %s %s %s" % ( stripColumns, sourceFile, decloakTempFile ))
161+
162+
# Copy decloak temp filename to sourceFile so that Decloakify() gets the right filename
163+
sourceFile = decloakTempFile
161164
except:
162165
print "!!! Error while removing noise from file. Was calling 'removeNoise.py'.\n"
163166

@@ -167,7 +170,7 @@ def DecloakifyFile():
167170

168171
# Call Decloakify()
169172
try:
170-
decloakify.Decloakify( decloakTempFile, "ciphers/" + gCipherFiles[ cipherNum ], decloakedFile )
173+
decloakify.Decloakify( sourceFile, "ciphers/" + gCipherFiles[ cipherNum ], decloakedFile )
171174

172175
print ""
173176
print "Decloaked file", sourceFile, ", saved to", decloakedFile

0 commit comments

Comments
 (0)