Skip to content

Instantly share code, notes, and snippets.

@antichown
Created February 27, 2021 19:26
Show Gist options
  • Save antichown/4ccfd3fb3ac3d6edb78b7efbd120fe5d to your computer and use it in GitHub Desktop.
Save antichown/4ccfd3fb3ac3d6edb78b7efbd120fe5d to your computer and use it in GitHub Desktop.
Game Score Matching - Hacking
var score1=[];
findInMemory(600,score1);
//score1
var score2=[];
findInMemory(900,score2);
//score2
var score1=["0x","0x"];
function findMatchingAdresses(oldResult,newResult,result) {
for(var i=0, len=newResult.length; i<len; i++) {
var addr=newResult[i];
if(oldResult.indexOf(addr) != -1) {
console.log("Matching",addr);
result.push(addr);
}
}
}
var result = [];
findMatchingAdresses(score1,score2,result);
console.log(result);
writeValueAtAdress(result[0],999999);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment