:nigga: on Nostr: Nekobit im not good at words so heres a sloppy drawing, so you find where the symbol ...
Nekobit (npub1csc…kqq2) im not good at words so heres a sloppy drawing, so you find where the symbol "negro" in a.out points to in imhex and replace it with the compiled result of a small shim opener and some extra `pop rbp;ret;` stuff to not spill off the instructions
if you're lucky enough the shim will not be bigger than the original function's binary (and it should be, that's why we're separating the real function from the shim in the first place)
and you have a.so which has the actual real desired function that you wrote and want to inject
if you want parameters or if it's a C++ symbol it can get pretty tricky
Published at
2023-10-15 13:10:52Event JSON
{
"id": "668eec57ebad3613deba44744a7b5bc0ed3b9c3b9c914ef96d2c2bb347b24838",
"pubkey": "961074c16baafbf388dc72cf82b2943ca4efb83868126e4937f60cac210ec386",
"created_at": 1697375452,
"kind": 1,
"tags": [
[
"p",
"c430bc9e4e67a373afc0e41fb3e98672a16c4653cd8c1800a089e61c2c7c19ab",
"wss://relay.mostr.pub"
],
[
"e",
"436b9f8cd3d75e5685238d64b44f464e5510563a37f58afe53a112c151590067",
"wss://relay.mostr.pub",
"reply"
],
[
"proxy",
"https://clubcyberia.co/objects/d55448a0-1bb7-4e50-8eac-579c5d67a0b0",
"activitypub"
]
],
"content": "nostr:npub1cscte8jwv73h8t7qus0m86vxw2skc3jnekxpsq9q38npctrurx4sjckqq2 im not good at words so heres a sloppy drawing, so you find where the symbol \"negro\" in a.out points to in imhex and replace it with the compiled result of a small shim opener and some extra `pop rbp;ret;` stuff to not spill off the instructions\nif you're lucky enough the shim will not be bigger than the original function's binary (and it should be, that's why we're separating the real function from the shim in the first place)\nand you have a.so which has the actual real desired function that you wrote and want to inject\nif you want parameters or if it's a C++ symbol it can get pretty tricky\n\nhttps://media.clubcyberia.co/pleroma/19d9e6f7b30100b60ad97c63fdc0bf5d66f1a6f77c533ba1bd2ebc1600e98bb4.png",
"sig": "672c7d17003e2f1e9267b7958f553a4040487761e95a8fbdbb3d3c2255b34ee8743a4db475a83ac82441e0d5133d8be57d0721adf77a9077ec9de5a0e41d072e"
}