Skip to content

Instantly share code, notes, and snippets.

@harshitm98
Created January 1, 2020 14:56
Show Gist options
  • Save harshitm98/1f2fb75da5cb86abb259c48abd937805 to your computer and use it in GitHub Desktop.
Save harshitm98/1f2fb75da5cb86abb259c48abd937805 to your computer and use it in GitHub Desktop.
Java.perform(function (){
var Challenge2 = Java.use('org.nowsecure.cybertruck.keygenerators.a');
Challenge2.a.overload('[B', '[B').implementation = function(b1, b2){
var returnEncryptedText = this.a(b1, b2);
console.log("[->] Flag2 Captured...");
send(returnEncryptedText);
return returnEncryptedText;
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment