Skip to content
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

[Suggestion] 3 additional CreateCodeCave methods #70

Open
marcusx2 opened this issue Jun 24, 2020 · 1 comment
Open

[Suggestion] 3 additional CreateCodeCave methods #70

marcusx2 opened this issue Jun 24, 2020 · 1 comment

Comments

@marcusx2
Copy link

marcusx2 commented Jun 24, 2020

public UIntPtr CreateCodeCave(string code, string newBytes, int replaceCount, int size = 4096, string file = "");
public UIntPtr CreateCodeCaveCall(string code, string newBytes, int replaceCount, int size = 4096, string file = "");
public UIntPtr CreateCodeCaveCall(string code, byte[] newBytes, int replaceCount, int size = 4096, string file = "");

So the first method is an overload, that accepts a string with the bytes. Similar to how writing a byte array works, for consistency and convenience(on Cheat Engine at least, when you copy bytes it comes on the form of a string, ready to use on the writeMemory function).

The other 2 methods are for creating a code cave using a call instruction instead of a jump instruction, for convenience. Sometimes I will create a trampoline where used to be a call instruction, so I just like to keep it as a call instead of converting to a jump.

@erfg12
Copy link
Owner

erfg12 commented Mar 18, 2021

@hollow87

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants