Encrypter

#include "Windows.h"
#include <iostream>

using namespace std;


int main(int argc, char** argv)
{
    unsigned char eShellcode[] =
        

    string key = "zyvdx";
    unsigned char shellcode[sizeof(eShellcode)];
    for (int ii = 0; ii < key.length(); ii++) {
        for (int i = 0; i < sizeof eShellcode; i++) {
            shellcode[i] = eShellcode[i] ^ key[ii];
            eShellcode[i] = shellcode[i];
        }
    }
    int i = 0;
    for (auto val : shellcode)
    {
        i++;
        printf("\\x%.2x", val);
        if (i == 9) {
            printf("\"");
            printf("\n");
            printf("\"");
            i = 0;
        }
 
    }
    return 0;
}

Last updated

Was this helpful?