TeslaCrack
TeslaCrack copied to clipboard
Save files after decryption
After I decrypted files with TeslaDecoder and TeslaCrack i had log of all decrypted files. (HUGE THANKS TO DEVELOPERS) Something like:
Decryption started.
DECRYPTED: C:\FolderToWork\3RDPARTY.TXT DECRYPTED: C:\FolderToWork\APPDATA\AD00001.zip
And because i had whole HDD copied in one folder I wanted to save just restored files, so I can copy them on my friend's computer. So I made a PHP script that can use LOG file from TeslaDecoder and create network of directories and copy restored files. (Not a best solution but I'm a web developer and PHP was best solution for me, and it's pretty fast few seconds for 5,5k files)
Here is my script, if someone wants he can use pattern and create this in python or any other lng. http://pastebin.com/F9KzN3Ra
Without relying on log-messages, I used this command to move all unlocked-files to /some-dir under linux/cygwin:
find . -name '*.vvv' | sed 's/.\w\+$//' | xargs -n1 -I XXX mv "XXX" somedir/.
Also, it's quite easy to decrypt to a different location than where the encrypted files are, it's just a few lines of modification to teslacrack.py