ERROR MASK is an advanced Android exploitation framework designed to assist security professionals and researchers in generating and binding payloads for Android devices. This tool provides a user-friendly graphical interface, making it suitable for both novice and expert users.
- Generate Standard Payload: Easily create Android payloads using
msfvenom. - Bind Payload to APK: Inject payloads into existing APK files.
- Start Listener: Set up a Metasploit listener to handle incoming connections.
- View Logs: Access detailed logs for troubleshooting and verification.
- Advanced GUI: Enhanced graphical interface using
zenityfor better user experience. - Dependency Check: Automatic check for required dependencies and installation guidance.
- Secure Mode: Ensures all actions are performed in a safe environment, preventing accidental harm to the system.
Ensure the following dependencies are installed on your system:
msfvenom(part of the Metasploit framework)zenityfigletlolcatapktoolopenjdk-11-jdkzipalign
-
Clone the repository:
git clone https://github.com/sisuadami101/Android_Hacking.git cd Android_Hacking -
Make the script executable:
chmod +x an-hack.sh
-
Install the required dependencies:
sudo apt install metasploit-framework zenity figlet lolcat apktool openjdk-11-jdk zipalign
Run the script with the following command:
./an-hack.sh-
Generate Standard Payload:
- Enter connection details (LHOST, LPORT, Payload Type) and save the generated payload APK.
- Default LHOST is automatically detected.
- Validates LPORT to ensure it is within the range 1-65535.
- Displays progress and success/failure messages.
-
Bind Payload to APK:
- Select the original APK and specify the output infected APK file.
- Decompiles the APK, injects the payload, rebuilds, and signs the APK.
- Displays progress and success/failure messages.
-
Start Listener:
- Configure and start a Metasploit listener to handle incoming connections.
- Uses the specified payload type, LHOST, and LPORT.
- Runs in a separate terminal window.
-
Show Logs:
- View detailed logs for all actions performed by the tool.
- Logs are stored in
/tmp/errormask/activity.log.
-
Exit:
- Exit the tool and clean up temporary files.
- Select "Generate Standard Payload" from the main menu.
- Enter the connection details (LHOST, LPORT, Payload Type) in the form.
- Save the generated payload APK to the desired location.
- A progress dialog will show the status of the payload generation.
- Upon completion, a success message will be displayed with the output file path.
- Select "Bind Payload to APK" from the main menu.
- Choose the original APK file.
- Specify the output path for the infected APK.
- The tool will decompile the APK, inject the payload, rebuild and sign the APK.
- A progress dialog will show the status of each step.
- Upon completion, a success message will be displayed with the output file path.
- Select "Start Listener" from the main menu.
- The listener configuration will be created and executed in a new terminal.
- The Metasploit console will start and begin listening for incoming connections.
- Select "Show Logs" from the main menu.
- A text viewer will display the contents of the log file.
- Logs are useful for troubleshooting and verifying actions.
This project is licensed under the MIT License. See the LICENSE file for details.
This tool is intended for educational purposes only. The author is not responsible for any misuse of this tool. Always obtain proper authorization before testing or exploiting systems.
Contributions are welcome! Please fork the repository and submit a pull request with your improvements.
For any questions or issues, please open an issue on the GitHub repository or contact the author at [error.mask.101@gmail.com].
- Enhanced user interface with
zenity. - Improved dependency check mechanism.
- Added detailed progress indicators.
- Included secure mode to prevent accidental harm to the system.
- Enhanced error handling and validation.
- Updated the README with detailed usage instructions.
- Initial release with basic payload generation and binding capabilities.
- Basic error handling and logging.