Skip to content

Instantly share code, notes, and snippets.

View Serhatcck's full-sized avatar

Serhat ÇİÇEK Serhatcck

View GitHub Profile
@Serhatcck
Serhatcck / BurpExtender.java
Created November 2, 2023 14:41
Burp Suite base64 encoder gist
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;
@Serhatcck
Serhatcck / client-side-prototype-pollution.html
Last active March 5, 2023 21:06
Client Side Prototype Pollution Challenge
<!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,
@Serhatcck
Serhatcck / analyze_android_encryption_7.js
Created August 6, 2022 13:15
Analyzing Android Encryption Processes with Frida
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)
}
@Serhatcck
Serhatcck / analyze_android_encryption_6.js
Created August 6, 2022 13:14
Analyzing Android Encryption Processes with Frida
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)
}
})
@Serhatcck
Serhatcck / analyze_android_encryption_5.js
Created August 6, 2022 13:03
Analyzing Android Encryption Processes with Frida
'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())
@Serhatcck
Serhatcck / analyze_android_encryption_4.js
Created August 6, 2022 13:01
Analyzing Android Encryption Processes with Frida
'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())
@Serhatcck
Serhatcck / analyze_android_encryption_3.js
Created August 6, 2022 12:57
Analyzing Android Encryption Processes with Frida
'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);
@Serhatcck
Serhatcck / analyze_android_encryption_2.js
Created August 6, 2022 12:56
Analyzing Android Encryption Processes with Frida
'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);
}
})
@Serhatcck
Serhatcck / analyze_android_encryption_1.js
Created August 6, 2022 12:52
Analyzing Android Encryption Processes with Frida
'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);
}
})