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
| #!/bin/bash | |
| # At the beginning of the script, store the original directory | |
| ORIGINAL_DIR=$(pwd) | |
| # Check if at least repository URL is provided | |
| if [ $# -lt 1 ]; then | |
| echo "Usage: $0 <repository_url> [file_extension] [start_date] [end_date] [--csv]" | |
| echo "Dates should be in YYYY-MM-DD format" | |
| echo "--csv: Optional flag to generate detailed CSV output (may be slower)" |
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
| #!/bin/bash | |
| set -e | |
| ##################################### | |
| ### MODERN 2025 VERSION WITH PNPM ### | |
| ##################################### | |
| # Initialize pnpm project | |
| pnpm init |
Translate EVM bytecode into opcodes using pure Regex :)
Demo: https://twitter.com/0x796/status/1608039943582142464
Try here: https://regex101.com/
Use PCRE2 (Perl compatible) Regex flavor.
Search:
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
| (?<!^[\s]*import.*)(?<!^.*\/\/.*)(?<!\/\*(?:(?!\*\/)[\s\S\r])*?)(?<![\.\+\-\/\*])[\-\+\*\/](?![\+\-\/\.\*]) |
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
| @echo off | |
| ECHO Usage: manyFolders.cmd yourfoldername 500 3 | |
| ECHO (where 500 is number of folders to create and 3 is a number of digits in folder number) | |
| ECHO. | |
| set count=%2 | |
| setlocal EnableDelayedExpansion | |
| for /L %%i in (1, 1, %count%) do ( | |
| set "formattedValue=000000%%i" | |
| md %1!formattedValue:~-%3! |
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 sys | |
| import struct | |
| import os | |
| rootdir = "D:/MXF_Day1_Shots" | |
| # MXF Keys | |
| MXF_KEYS = { | |
| '\x06\x0E\x2B\x34\x02\x43\x01\x01\x0D\x01\x03\x01\x04\x01\x02\x02' : 'FRAME' | |
| } |