Advertisement
xGHOSTSECx

Android App Info Collector Tool

Jan 5th, 2024
1,016
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.53 KB | None | 0 0
  1. #    AppInfoCollector
  2.  
  3. #    Written for Termux Nonroot users, allows you to harvest all redirects and core info that is used in each app on your device.
  4. ```
  5. bash
  6.  
  7. #!/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."
  8. ```
  9.  
  10. #    To use this command, follow these steps:
  11.  
  12. #    1. Open the Termux app on your Android device.
  13.  
  14. #    2. Copy the entire command provided above.
  15.  
  16. #    3. Paste it into the Termux terminal.
  17.  
  18. #    4. Press Enter to execute the command.
  19.  
  20. #    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.
  21.  
  22. #WrittenByGhostSec
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement