-
Notifications
You must be signed in to change notification settings - Fork 459
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
apicall hook snprintf
function and variants
#318
Comments
@mr-tz can I take up this issue and could you guide me to find the example you mentioned |
Of course, unfortunately, I don't have the sample handy anymore, but we can easily create a test C program that uses |
Ok, I will make the test C program and start working on this |
@mr-tz Sorry for the delay. I was using this C code to test the hook #include <stdio.h>
void print_string(char* buffer, int value) {
snprintf(buffer, 100, "The value is: %d", value);
}
int main() {
char buffer[100];
int value = 42;
print_string(buffer, value);
printf("%s\n", buffer);
return 0;
} But the hook wasn't getting triggered. Is there something wrong I am doing ? Here is my code |
That looks good. Does vivisect recognize the |
Ok yes I will check on that |
@mr-tz Yes, vivisect doesn't recognize |
@mr-tz I have gone through the documentation of Vivisect and tried to play around with it. From how much I observe the the only way to find the I can't figure out how to find what set assembly-level code will likely resemble the call we are targeting. Could you guide me through or is my logic behind the implementation wrong? |
Did you try dynamic linking? |
Some decoding routines rely on string formatting routines such as
snprintf
. Example:9dab...106c
The text was updated successfully, but these errors were encountered: