I think there's a way to import a whole new binary over the existing one you were reversing, so I guess I could patch it outside of ghidra and then do a full reimport, which hopefully shouldn't lose any of my labels and such
Top-level
I think there's a way to import a whole new binary over the existing one you were reversing, so I guess I could patch it outside of ghidra and then do a full reimport, which hopefully shouldn't lose any of my labels and such 11 comments
wait. paste and ctrl-v both fail, but ctrl-shift-v brings up an ARE YOU SURE? and then ignores the highlight and pastes it at the cursor? what?! fuck me, it's just a completely confused error message: motherfucker. @foone oh, right, yes. you have to hit C on the instructions to clear them first, then overwrite. it's rather tedious. I guess I could always write a python script. It does have that. Still, it seems like this sort of thing should be easier. Maybe this is an unusual need? I dunno. I'm patching a game as I go. to be clear, the clipboard-binary viewer thing does work, it's just tedious. You have to clear existing decompilation for the area you're writing to, then re-decompile it. @foone Never used ghidra, but you're describing the most basic hex editor functionality I can imagine. 🤔 @jens yeah. it's really that it's not a hex editor, it just has some very basic hex editing abilities in it. and they're not good. @foone I actually already did that for the same exact reason. My solution is utter ass, but it is marginally faster to use than Ghidra is. I couldn't figure out the Ghidra API in my blind rage, so it's standalone, and worse for it. https://github.com/ParzivalWolfram/RapidRelinker |
note: in theory it supports copy/paste out of the binary view. in reality, I don't think I've ever gotten it to successfully paste more than one byte, as it always says the size is wrong