Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # AppInfoCollector
- # Written for Termux Nonroot users, allows you to harvest all redirects and core info that is used in each app on your device.
- ```
- bash
- #!/data/data/com.termux/files/usr/bin/bash && pkg install -y aapt pm && mkdir -p $HOME/app_info && pm list packages -3 -f | cut -d "=" -f 2 > $HOME/app_info/app_list.txt && extract_app_info() { package_name="$1"; app_info_dir="$HOME/app_info"; app_info_file="$app_info_dir/${package_name}_info.txt"; aapt dump badging "$package_name" > "$app_info_file"; }; create_web_redirects() { package_name="$1"; app_info_dir="$HOME/app_info"; web_redirects=("https://example.com" "https://example2.com"); for url in "${web_redirects[@]}"; do echo "$url" >> "$app_info_dir/${package_name}/web_redirects.txt"; done; }; while IFS= read -r package; do package_name="$package"; extract_app_info "$package_name"; mkdir -p "$app_info_dir/${package_name}"; create_web_redirects "$package_name"; done < "$app_info_dir/app_list.txt" && echo "App information and web redirects have been saved in $HOME/app_info."
- ```
- # To use this command, follow these steps:
- # 1. Open the Termux app on your Android device.
- # 2. Copy the entire command provided above.
- # 3. Paste it into the Termux terminal.
- # 4. Press Enter to execute the command.
- # This command will perform all the steps, from installing the required packages to gathering app information and web redirects. After it completes, you will find the collected information in the `$HOME/app_info` directory.
- #WrittenByGhostSec
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement