Skip to content

Instantly share code, notes, and snippets.

View 5z1punch's full-sized avatar
🦔
Diggggggggi

RonnyX 5z1punch

🦔
Diggggggggi
View GitHub Profile
@5z1punch
5z1punch / analyse.py
Created February 6, 2023 04:56
binance futures transaction history csv dump analyse
import csv
from enum import Enum
import decimal
# dump data for one year from https://www.binance.com/my/orders/futures/transactionhistory Big Data Dump
data = []
with open(r'/your/dump/data/path/0.csv', newline='') as csvfile:
spamreader = csv.reader(csvfile)
@5z1punch
5z1punch / recover.py
Created December 23, 2022 04:15
recover public key from eth tx
import web3
from eth_account._utils.typed_transactions import TypedTransaction
from eth_account._utils.signing import (
hash_of_signed_transaction,
to_standard_v,
extract_chain_id,
)
from eth_account._utils.legacy_transactions import (
Transaction,
@5z1punch
5z1punch / poc.js
Created July 5, 2019 05:13
poc for frida v8 crash
// frida -U --enable-jit -l poc.js -p [pid]
var hook_replace_handle = Module.findExportByName("libmylib.so","hook_replace");
var hook_replace_Call = new NativeFunction(hook_replace_handle, 'void', ['int']);
var libc_write_handle = Module.findExportByName("libc.so","write");
Interceptor.replace(hook_replace_handle,new NativeCallback(function (iii) {
console.log("gc entering");
gc();
console.log("gc left");
}, 'void', ['int'])
);