-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Nop a whole function #2555
Comments
Random thought about this issue which might go a bit off-topic: However, I think that when we'll have a decent python API what could be considered is to provide the users with common python scripts that might be useful in any reverse engineering task. I imagine a list with all kind of scripts and the user would have to look for "nop a function" or "replace instructions", select the script, read briefly its description and its source code, and simply execute it. It's rather common to live with a full set of python scripts alongside a reverse engineering framework because it does not always do what one wants. I think that centralizing all these scripts could be great to share it among reversers and improve the UX overall. |
Love the latter idea :) |
@ITAYC0HEN Does it even make sense to replace all function instructions with NOP? That would likely just crash once CPU reaches the next instruction after the NOPs. If the intention is to have function have no effect then wouldn't the simplest thing be inserting ret at the start of function? It would still not work if function is supposed to return a some nontrivial type but neither would noping or almost anything automatic. |
I am not the one to judge. There is no reason not to provide a generic interface for executing actions on several instructions . There are many reasons to do so and it's up for the user how they want to use it. I don't think providing a "nop a function" functionality is good. But running an action (nop) on multiline selection is fine and trivial. I personally don't remember myself NOPing an entire function but sure did NOP dozens of instructions |
Unfortunately, I didn't know about Cutter's plugin capability, when I opened this issue Providing multiline support (#2601) along a nice python api (as imagined by @xarkes) does not fully solve the given issue, but I agree that this woud be the most favorable solution considering the diverse set of user requirements. In the meantime, P.S. |
I'd be nice to be able to replace all assembly instructions related to a function (or a block in gaph view) with
nops
.Refs
Somewhat related to #2147
The text was updated successfully, but these errors were encountered: