Skip to content

Instantly share code, notes, and snippets.

@p-g-krish
Forked from harshitm98/flag2.js
Created May 15, 2020 13:46
Show Gist options
  • Save p-g-krish/d5b7e3638dd982894cbb8d1cd0184375 to your computer and use it in GitHub Desktop.
Save p-g-krish/d5b7e3638dd982894cbb8d1cd0184375 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