TeslaCrack icon indicating copy to clipboard operation
TeslaCrack copied to clipboard

Save files after decryption

Open ekv88 opened this issue 9 years ago • 2 comments

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

ekv88 avatar Jan 24 '16 17:01 ekv88

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/.

ankostis avatar Jan 27 '16 21:01 ankostis

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

Googulator avatar Jan 29 '16 22:01 Googulator