Some notes and tools for reverse engineering / deobfuscating / unminifying obfuscated web app code.
This file contains hidden or 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
| import http.client | |
| import asyncio | |
| import json | |
| class API: | |
| URL = 'hacker-news.firebaseio.com' | |
| async def get(self, *, path: str) -> list | int | dict: | |
| url = f'{self.URL}' |
This file contains hidden or 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
| 15m7FP7U4kDJhAVtjjUdUB8WYswpf7Dtho | |
| 1Nm2TMEFEdyb2BP6tLyuREoKECztibuK6P | |
| 1LJYrTxrQA5pFRRg2bSyJLT6MGezmMBVfX | |
| 1EiCssanXmavzjtffYHzK6aVeQHngUxX1s | |
| 1H65AnxCg7mT4rTZmRzH8cxENk1N12rhkZ | |
| 1CVbdRQQ3TeWaPWqARKP9wvAEPvavJDrKo | |
| 1B9APV4ARm26MUW74ZcGNQE9hBHM5XGPbg | |
| 14u8xH6KdJFoTP93Lep9tpb1KQQvshQaAj | |
| 145V8AXLZpFv1ABVEsMYFsGpaZPwgKNZbf | |
| 1LGBP4iwrwv3GxybQ5QZJ19M3MAP76cw6U |
This file contains hidden or 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
| import csv | |
| import json | |
| import re | |
| data = [] | |
| result = [] | |
| def extract_attrs(kwds_list): | |
| kwds = kwds_list.split(';') | |
| attrs = [] |
This file contains hidden or 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
| import requests | |
| import json | |
| data = {} | |
| with open('nifty.json') as f: | |
| data = json.load(f) | |
| url = "https://api.niftykit.com/v3/collections/tokens" |
This file contains hidden or 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
| // SPDX-License-Identifier: AGPL-3.0-or-later | |
| // The ABI encoder is necessary, but older Solidity versions should work | |
| pragma solidity ^0.7.0; | |
| pragma experimental ABIEncoderV2; | |
| // These definitions are taken from across multiple dydx contracts, and are | |
| // limited to just the bare minimum necessary to make flash loans work. | |
| library Types { | |
| enum AssetDenomination { Wei, Par } |
This file contains hidden or 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
| #!/usr/bin/env bash | |
| # PiVPN: Trivial OpenVPN setup and configuration | |
| # Easiest setup and mangement of OpenVPN on Raspberry Pi | |
| # http://pivpn.io | |
| # Heavily adapted from the pi-hole.net project and... | |
| # https://github.com/StarshipEngineer/OpenVPN-Setup/ | |
| # | |
| # Install with this command (from your Pi): | |
| # | |
| # curl -L https://install.pivpn.io | bash |
- Pfctl man page (apple.com)
- Pf.conf man page (apple.com)
- How to secure your Mac when using it on wireless networks (sarfata.org)
- Pf on OS X 10.7 (zomo.co.uk)
- OpenBSD packet filter (PF): Real life example (daemon-notes.com)
- Firewalling with OpenBSD's PF packet filter (rlworkman.net)
- PF (OpenBSD) (readthedocs.org)
- PF rules (kernel-panic.it)
This file contains hidden or 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
| #!/usr/bin/env bash | |
| progname=$(basename $0) | |
| version="1.0 (2014-08-17)" | |
| step=2 | |
| function create_hash { | |
| openssl dgst -sha1 -binary <<< "$1" | xxd -p | |
| } |