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
how can I access to the bytes returned by ReadByteArray? #329
Comments
Hey @frapik99 I don't know if you solved this already or not, but wanted to give you a way of doing that. Try this code: 'use strict';
var memory_regions = new Array();
var ranges = Process.enumerateRangesSync("r--");
for(var i = 0; i < ranges.length; i++) {
memory_regions.push(ranges[i]);
}
console.log("Reading from address: " + ranges[0].base);
var a = Memory.readByteArray(ranges[0].base, 64);
console.log(a);
var b = new Uint8Array(a);
var str = "";
for(var i = 0; i < b.length; i++) {
str += (b[i].toString(16) + " ");
}
console.log(str);
Hope that helps. |
Alternatively, simply use |
I have another related question:
I know it won't work,how should I make it ? Can someone help me? |
@3xp10it Please don't tag random people. |
@typoon Would you please tell me can how can I get an Array(bug not Uint8Array) from ReadByteArray? I want to get an Array from ReadByteArray, because I want to |
Hi,
how can I access to the bytes returned by
ReadByteArray
?Example code:
My goal is to identify the position of the first 0 in the array.
Thanks
The text was updated successfully, but these errors were encountered: