Some notes, tools, and techniques for reverse engineering Golang binaries.
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 | |
| if [ -z "$1" ]; then | |
| printf "No Input. Exiting...\n" | |
| exit 1 | |
| fi | |
| final_path=$(sed -e 's/\\/\//g' -e 's/C:\//\/mnt\/c\//g' <<<"$1") | |
| printf "\"%s\"\n" "$final_path" |
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 | |
| if [ -z "$1" ] || [ -z "$2" ]; then | |
| echo "Usage: $0 <main_directory> <output_directory>" | |
| exit 1 | |
| fi | |
| main_dir="$1" | |
| output_dir="$2" |
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 | |
| # Check if the directory path is provided | |
| if [ -z "$1" ]; then | |
| echo "Please provide the directory path containing the APK files." | |
| exit 1 | |
| fi | |
| apk_dir="$1" |
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
| #!/data/data/com.termux/files/usr/bin/bash | |
| if ! command -v termux-setup-storage; then | |
| echo "This script can be executed only on Termux" | |
| exit 1 | |
| fi | |
| termux-setup-storage | |
| cd "$HOME" || exit |