Skip to content

Commit

Permalink
v1.4 Update
Browse files Browse the repository at this point in the history
  • Loading branch information
AzeemIdrisi committed Feb 11, 2023
1 parent ee35818 commit c4a6c32
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 13 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ The goal of this project is to make penetration testing on Android devices easy.

* Mirror and Control the target device.

## v1.4

* Power off the target device.

# Requirements
* [`python3`](https://www.python.org/) : Python 3.10 or Newer
* [`adb`](https://developer.android.com/studio/command-line/adb) : Android Debug Bridge (ADB) from `Android SDK Platform Tools`
Expand Down
1 change: 1 addition & 0 deletions docs/SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ currently being supported with security updates. -->

| Version | Supported |
| ------- | ------------------ |
| v1.4 ||
| v1.3 ||
| v1.2 ||
| v1.1 ||
Expand Down
Binary file modified docs/Screenshot-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/Screenshot-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/Screenshot-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 10 additions & 10 deletions modules/banner.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
menu3 = f'''
{color.WHITE}31. {color.GREEN}Unlock Device {color.WHITE}36. {color.GREEN}Extract APK from Installed App {color.WHITE} {color.GREEN}
{color.WHITE}32. {color.GREEN}Lock Device {color.WHITE}37. {color.GREEN}Stop ADB Server {color.WHITE} {color.GREEN}
{color.WHITE}33. {color.GREEN}Dump All SMS {color.WHITE} {color.GREEN} {color.WHITE} {color.GREEN}
{color.WHITE}32. {color.GREEN}Lock Device {color.WHITE}37. {color.GREEN}Stop ADB Server {color.WHITE} {color.GREEN}
{color.WHITE}33. {color.GREEN}Dump All SMS {color.WHITE}38. {color.GREEN}Power Off Device {color.WHITE} {color.GREEN}
{color.WHITE}34. {color.GREEN}Dump All Contacts {color.WHITE} {color.GREEN} {color.WHITE} {color.GREEN}
{color.WHITE}35. {color.GREEN}Dump Call Logs {color.WHITE} {color.GREEN} {color.WHITE} {color.GREEN}
Expand Down Expand Up @@ -72,7 +72,7 @@
░█─── ▀──▀ ▀▀▀▀ ▀──▀ ▀▀▀ ░█▄▄▄█ █▀▀▀ ▀▀▀ ▀▀▀▀ ▀▀▀ ──▀──   ░█─── ▀─▀▀ ▀▀▀▀
{color.RED}v1.3{color.WHITE} {color.WHITE}By github.com/AzeemIdrisi
{color.RED}v1.4{color.WHITE} {color.WHITE}By github.com/AzeemIdrisi
'''

banner3 = f'''
Expand All @@ -81,7 +81,7 @@
█▀▀ █▀█ █▄█ █░▀█ ██▄ ▄█ █▀▀ █▄▄ █▄█ █ ░█░   █▀▀ █▀▄ █▄█
{color.RED}v1.3{color.WHITE} {color.WHITE}By github.com/AzeemIdrisi
{color.RED}v1.4{color.WHITE} {color.WHITE}By github.com/AzeemIdrisi
'''

banner4 = f'''
Expand All @@ -93,7 +93,7 @@
\/ \/ \/ \/|__|
{color.RED}v1.3{color.WHITE} {color.WHITE}By github.com/AzeemIdrisi
{color.RED}v1.4{color.WHITE} {color.WHITE}By github.com/AzeemIdrisi
'''
banner5 = f'''
___ __ ____ __ _ __ ___
Expand All @@ -102,7 +102,7 @@
/_/ /_//_/\___/_//_/\__/___/ .__/_/\___/_/\__/ /_/ /_/ \___/
/_/
{color.RED}v1.3{color.WHITE} {color.WHITE}By github.com/AzeemIdrisi
{color.RED}v1.4{color.WHITE} {color.WHITE}By github.com/AzeemIdrisi
'''

banner6 = f'''
Expand All @@ -113,7 +113,7 @@
/_/ /_/ /_/\____/_/ /_/\___/____/ .___/_/\____/_/\__/ /_/ /_/ \____/
/_/
{color.RED}v1.3{color.WHITE} {color.WHITE}By github.com/AzeemIdrisi
{color.RED}v1.4{color.WHITE} {color.WHITE}By github.com/AzeemIdrisi
'''

Expand All @@ -128,7 +128,7 @@
\ \_\
\/_/
{color.RED}v1.3{color.WHITE} {color.WHITE}By github.com/AzeemIdrisi
{color.RED}v1.4{color.WHITE} {color.WHITE}By github.com/AzeemIdrisi
'''

Expand All @@ -141,7 +141,7 @@
/_/
{color.RED}v1.3{color.WHITE} {color.WHITE}By github.com/AzeemIdrisi
{color.RED}v1.4{color.WHITE} {color.WHITE}By github.com/AzeemIdrisi
'''

Expand All @@ -152,7 +152,7 @@
▒█░░░ ▀░░▀ ▀▀▀▀ ▀░░▀ ▀▀▀ ▒█▄▄▄█ █▀▀▀ ▀▀▀ ▀▀▀▀ ▀▀▀ ░░▀░░   ▒█░░░ ▀░▀▀ ▀▀▀▀
{color.RED}v1.3{color.WHITE} {color.WHITE}By github.com/AzeemIdrisi
{color.RED}v1.4{color.WHITE} {color.WHITE}By github.com/AzeemIdrisi
'''
banner_list = [banner2, banner3, banner4, banner5,
Expand Down
31 changes: 28 additions & 3 deletions phonesploitpro.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,13 @@ def connect():
return
else:
# Restart ADB on new connection.
os.system(
'adb kill-server > hidden.txt 2>&1&&adb start-server > hidden.txt 2>&1')
os.system("adb connect " + ip + ":5555")
if ip.count('.') == 3:
os.system(
'adb kill-server > hidden.txt 2>&1&&adb start-server > hidden.txt 2>&1')
os.system("adb connect " + ip + ":5555")
else:
print(
f'\n{color.RED} Invalid IP Address\n{color.GREEN} Going back to Main Menu{color.WHITE}')


def list_devices():
Expand Down Expand Up @@ -1073,6 +1077,25 @@ def mirror():
print('\n')


def power_off():
print(
f'\n{color.RED}[Warning]{color.YELLOW} Powering off device will disconnect the device{color.WHITE}')
choice = input('\nDo you want to continue? Y / N > ').lower()
if choice == 'y' or choice == '':
pass
elif choice == 'n':
return
else:
while choice != 'y' and choice != 'n' and choice != '':
choice = input('\nInvalid choice!, Press Y or N > ').lower()
if choice == 'y' or choice == '':
pass
elif choice == 'n':
return
os.system(f'adb shell reboot -p')
print('\n')


def main():
# Clearing the screen and presenting the menu
# taking selection input from user
Expand Down Expand Up @@ -1163,6 +1186,8 @@ def main():
extract_apk()
case '37':
stop_adb()
case '38':
power_off()
case other:
print("\nInvalid selection!\n")

Expand Down

1 comment on commit c4a6c32

@AzeemIdrisi
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Smart Update: Added IP address checking before connection.

Added Power off option.

v1.4

Please sign in to comment.