Update Using API Monitor and Frida authored by Pruitt, David R. (S&T-Student)'s avatar Pruitt, David R. (S&T-Student)
......@@ -83,10 +83,6 @@ def main(target_process):
console.log('[+] CmdLine: ' + args[1]);
console.log('[+] CurrentDirectory: ' + args[7]);
dumpAddr('Input', args[1], 147); //146
this.outptr = args[2]; // Store arg2 and arg3 in order to see when we leave the function
var bSlash = '\\\\';
console.log(bSlash);
newAppName = 'F:\\\\Applications\\\\Steam\\\\steamapps\\\\common\\\\mcpixel\\\\McLauncher.exe';
newCmdLine= '"F:\\\\Applications\\\\Steam\\\\steamapps\\\\common\\\\mcpixel\\\\McLauncher.exe"';
......@@ -98,6 +94,7 @@ def main(target_process):
clearMem(args[1],147);
clearMem(args[7],129);
//Write New Strings to Memeory
Memory.writeUtf16String(args[0],newAppName);
Memory.writeUtf16String(args[1],newCmdLine);
Memory.writeUtf16String(args[7],newDir);
......
......