Skip to content

Instantly share code, notes, and snippets.

View BreezeRo's full-sized avatar

Vincent J. BreezeRo

  • Blockchain
  • New York City
View GitHub Profile
// Report on "stuck" ether in empty contracts
// https://github.com/ethereum/EIPs/issues/156
// Usage: node find-stuck-ether.js [startBlock] [endBlock] > report.txt
let Eth = require('ethjs');
let eth = new Eth(new Eth.HttpProvider('http://localhost:8545'));
let ethutil = require('ethereumjs-util')
async function main() {
@michaelnicholsy
michaelnicholsy / main.php
Created December 4, 2019 14:59
De-Obfuscate PHP File 1 of 3
This file has been truncated, but you can view the full file.
<?php
$O = array(442, function($owB, $slD = array()) use (&$O) {
$owB = preg_replace($O[227](7080), ' ', $owB);
if (preg_match_all('/<[^>]*\\s([^>]*)\\/*>/msiU', $owB, $oo1, PREG_SET_ORDER)) {
foreach ($oo1 as $eEb) {
$Dx9 = $eEb[0];
$oE8 = array();
preg_match_all('/\\s.*=([' . "'" . '"])?.*\\1/msiU', ' ' . $eEb[1], $e6i, PREG_SET_ORDER);