Basic Ransomware in Nim
For learning purpose only
ransom e [path] [ip] [port]
ransom d [path] [key]
- the key will be sent in plain text to the server
For each file, the ransom will generate a new key using the master key generated.
KDF(masterKey, filename, filesize) = AES(masterkey, SHA(filename & $(filesize))
- use thread depending on the size of the file
- encrypting only the first 10mb of each files
- send the key to the server via DNS
- encrypt the key before sending to the server
- add the filename + size in the file just in case