Executing Shellcode with Inline Assembly in C/C++
Execution
choco install mingw#include <Windows.h>
#include <stdio.h>
int main() {
printf("spotless");
asm(".byte 0x90,0x90,0x90,0x90\n\t"
"ret\n\t");
return 0;
}gcc -c .\inline-shellcode.c -o main.o; g++.exe .\main.o -o .\main.exe
References
PreviousFinding Kernel32 Base and Function Addresses in ShellcodeNextWriting Custom Shellcode Encoders and Decoders
Last updated