4 votes
Accepted

How to load shellcode into Ghidra

you have a string you cant load a string as is into a disassembler you may need to un-escape them into binary for example "\x48" is "H" if you have a compiler compile and call it ...
user avatar
  • 15k
4 votes

How to load shellcode into Ghidra

Compile and load: #include <stdio.h> char shellcode[] = "\x48\x83\xEC\x28\x48\x83\xE4\xF0\x48\x8D\x15\x66\x00\x00\x00" "\x48\x8D\x0D\x52\x00\x00\x00\xE8\x9E\x00\...
user avatar
2 votes

ShellCode not running as expected - showing segmentation fault core dump

The argument -z execstack only allows stack to execute code, but the code is a global variable, which is not on stack, so you can do some simple changes to make your code work. For example, #include &...
user avatar
  • 21
2 votes

ShellCode not running as expected - showing segmentation fault core dump

A simple HACK for gcc would be to make the char array as const That makes the bytes go in .rodata which is usally mapped within the same pages as .text and has the same rx permission. This worked for ...
user avatar
  • 2,389

Only top scored, non community-wiki answers of a minimum length are eligible