This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package burp; | |
import java.awt.*; | |
import java.io.PrintWriter; | |
import java.util.List; | |
public class BurpExtender implements IBurpExtender, IMessageEditorTabFactory { | |
private IBurpExtenderCallbacks callbacks; | |
private PrintWriter stdout; | |
private IExtensionHelpers helpers; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Prototype Pollution</title> | |
<style> | |
table, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Java.perform(function(){ | |
var cipher = Java.use("javax.crypto.Cipher") | |
cipher.init.overload('int', 'java.security.Key', 'java.security.spec.AlgorithmParameterSpec').implementation = function(opmode,key,algorithmParameter){ | |
var base64 = Java.use('java.util.Base64'); | |
console.log("Key "+base64.getEncoder().encodeToString(key.getEncoded())); | |
console.log("Opmode String: "+ this.getOpmodeString(opmode)); | |
console.log("Algorithm: "+this.getAlgorithm()) | |
this.init.overload('int', 'java.security.Key', 'java.security.spec.AlgorithmParameterSpec').call(this,opmode,key,algorithmParameter) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Java.perform(function(){ | |
var cipher = Java.use("javax.crypto.Cipher") | |
cipher.init.overload('int', 'java.security.Key', 'java.security.spec.AlgorithmParameterSpec').implementation = function(opmode,key,ivkey){ | |
this.init.overload('int', 'java.security.Key', 'java.security.spec.AlgorithmParameterSpec').call(this, opmode,key,ivkey) | |
} | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict;' | |
Java.perform(() => { | |
const cipher = Java.use('javax.crypto.Cipher'); | |
cipher.init.overload('int','java.security.Key').implementation = function(opmode,key) { | |
var base64 = Java.use('java.util.Base64'); | |
console.log("Opmode "+opmode); | |
console.log("Key "+base64.getEncoder().encodeToString(key.getEncoded())); | |
console.log("Opmode String: "+ this.getOpmodeString(opmode)); | |
console.log("Algorithm: "+this.getAlgorithm()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict;' | |
Java.perform(() => { | |
const cipher = Java.use('javax.crypto.Cipher'); | |
cipher.init.overload('int','java.security.Key').implementation = function(opmode,key) { | |
console.log("Opmode "+opmode); | |
console.log("Key "+key.getEncoded()); | |
console.log("Opmode String: "+ this.getOpmodeString(opmode)); | |
console.log("Algorithm: "+this.getAlgorithm()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict;' | |
Java.perform(() => { | |
const cipher = Java.use('javax.crypto.Cipher'); | |
cipher.init.overload('int','java.security.Key').implementation = function(opmode,key) { | |
console.log("Opmode "+opmode); | |
console.log("Key "+key); | |
console.log("Opmode String: "+ this.getOpmodeString(opmode)); | |
this.init.overload('int', 'java.security.Key').call(this, opmode, key); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict;' | |
Java.perform(() => { | |
const cipher = Java.use('javax.crypto.Cipher'); | |
cipher.init.overload('int','java.security.Key').implementation = function(opmode,key) { | |
console.log("Opmode "+opmode); | |
console.log("Key "+key); | |
this.init.overload('int', 'java.security.Key').call(this, opmode, key); | |
} | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict;' | |
Java.perform(() => { | |
const cipher = Java.use('javax.crypto.Cipher'); | |
cipher.init.overload('int','java.security.Key').implementation = function(opmode,key) { | |
console.log("Opmode "+opmode); | |
console.log("Key "+key); | |
} | |
}) |