Jump to content
Tuts 4 You

Users Desktop CrackMe #1


2 Screenshots

This is a demo of the packer. 
Demo is to find a password. (used simple anti-debugging and code-virtualization.)

Thank you :)

 

Edited by 0x777h

#include <stdio.h>
#include <windows.h>

#include <thread>

#define USE_VM_MACRO
#include "vmacro.h"
#include "vmxstr.h"

#include <string>

int main(int argc, char* argv[]) {
    VM_START;

    printf(_A(" > PASSWORD: ").c_str());

    char password[100];
    memset(password, 0, sizeof(password));
    fgets(password, sizeof(password), stdin);

    for (int i = strlen(password); i > 0; --i) {
        if (password[i] == '\n') {
            password[i] = 0;
        }
    }

    unsigned char answer[] = {
        0, 0, 0, 0, 
    };

    unsigned char key = 0;
    int i = 0;
    for (i = 0; i < sizeof(answer); ++i) {
        if (password[i] != (answer[i] ^ key)) {
            break;
        }
    }

    if (i == sizeof(answer)) {
        MessageBox(nullptr, L"WOW  :]", L"", MB_OK);
    }
    else {
        MessageBox(nullptr, L"Opps :|", L"", MB_OK);
    }

    VM_END;

    return 1;
}

User Feedback

Recommended Comments

There are no comments to display.

×
×
  • Create New...