Skip to content

Commit

Permalink
Fixed nasty bug in Decloakify code, please re-baseline
Browse files Browse the repository at this point in the history
Fixed nasty bug in call to Decloakify(), please re-baseline.
  • Loading branch information
TryCatchHCF authored May 10, 2018
1 parent 64825e8 commit d37975c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cloakifyFactory.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# Filename: cloakifyFactory.py
#
# Version: 1.0.0
# Version: 1.0.1
#
# Author: Joe Gervais (TryCatchHCF)
#
Expand Down Expand Up @@ -158,6 +158,9 @@ def DecloakifyFile():
# Remove Noise, overwrite the source file with the stripped contents
print "Removing noise from noise generator:", gNoiseScripts[ noiseNum ]
os.system( "./removeNoise.py %s %s %s" % ( stripColumns, sourceFile, decloakTempFile ))

# Copy decloak temp filename to sourceFile so that Decloakify() gets the right filename
sourceFile = decloakTempFile
except:
print "!!! Error while removing noise from file. Was calling 'removeNoise.py'.\n"

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

# Call Decloakify()
try:
decloakify.Decloakify( decloakTempFile, "ciphers/" + gCipherFiles[ cipherNum ], decloakedFile )
decloakify.Decloakify( sourceFile, "ciphers/" + gCipherFiles[ cipherNum ], decloakedFile )

print ""
print "Decloaked file", sourceFile, ", saved to", decloakedFile
Expand Down

0 comments on commit d37975c

Please sign in to comment.