Skip to content

Commit

Permalink
v1.52
Browse files Browse the repository at this point in the history
  • Loading branch information
AzeemIdrisi committed May 14, 2023
1 parent a10a53d commit effdb1a
Show file tree
Hide file tree
Showing 6 changed files with 64 additions and 57 deletions.
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.
76 changes: 42 additions & 34 deletions modules/banner.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@

from modules import color

version = 'v1.51'
version = "v1.52"

menu1 = f'''
menu1 = f"""
{color.WHITE}1. {color.GREEN}Connect a Device {color.WHITE}6. {color.GREEN}Get Screenshot {color.WHITE}11. {color.GREEN}Install an APK
{color.WHITE}2. {color.GREEN}List Connected Devices {color.WHITE}7. {color.GREEN}Screen Record {color.WHITE}12. {color.GREEN}Uninstall an App
Expand All @@ -17,9 +17,9 @@
{color.YELLOW}
N : Next Page (Page : 1 / 3)'''
N : Next Page (Page : 1 / 3)"""

menu2 = f'''
menu2 = f"""
{color.WHITE}16. {color.GREEN}List All Folders/Files {color.WHITE}21. {color.GREEN}Anonymous Screenshot {color.WHITE}26. {color.GREEN}Play a Video on Device
{color.WHITE}17. {color.GREEN}Send SMS {color.WHITE}22. {color.GREEN}Anonymous Screen Record {color.WHITE}27. {color.GREEN}Get Device Information
Expand All @@ -29,9 +29,9 @@
{color.YELLOW}
P : Previous Page N : Next Page (Page : 2 / 3)'''
P : Previous Page N : Next Page (Page : 2 / 3)"""

menu3 = f'''
menu3 = f"""
{color.WHITE}31. {color.GREEN}Unlock Device {color.WHITE}36. {color.GREEN}Extract APK from Installed App {color.WHITE}41. {color.GREEN}Visit PhoneSploit-Pro on GitHub
{color.WHITE}32. {color.GREEN}Lock Device {color.WHITE}37. {color.GREEN}Stop ADB Server {color.WHITE} {color.GREEN}
Expand All @@ -41,11 +41,11 @@
{color.YELLOW}
P : Previous Page (Page : 3 / 3)'''
P : Previous Page (Page : 3 / 3)"""

menu = [menu1, menu2, menu3]

instruction = f'''
instruction = f"""
This attack will launch Metasploit-Framework (msfconsole)
Expand All @@ -66,28 +66,28 @@
{color.GREEN}msf6 > {color.YELLOW}exit -y {color.WHITE}
{color.RED}[PhoneSploit Pro] {color.WHITE}Press 'Enter' to continue attack / '0' to Go Back to Main Menu
'''
"""

banner2 = f'''
banner2 = f"""
░█▀▀█ █──█ █▀▀█ █▀▀▄ █▀▀ ░█▀▀▀█ █▀▀█ █── █▀▀█ ─▀─ ▀▀█▀▀   ░█▀▀█ █▀▀█ █▀▀█
░█▄▄█ █▀▀█ █──█ █──█ █▀▀ ─▀▀▀▄▄ █──█ █── █──█ ▀█▀ ──█──   ░█▄▄█ █▄▄▀ █──█
░█─── ▀──▀ ▀▀▀▀ ▀──▀ ▀▀▀ ░█▄▄▄█ █▀▀▀ ▀▀▀ ▀▀▀▀ ▀▀▀ ──▀──   ░█─── ▀─▀▀ ▀▀▀▀
{color.RED}{version}{color.WHITE} {color.WHITE}By github.com/AzeemIdrisi
'''
"""

banner3 = f'''
banner3 = f"""
█▀█ █░█ █▀█ █▄░█ █▀▀ █▀ █▀█ █░░ █▀█ █ ▀█▀   █▀█ █▀█ █▀█
█▀▀ █▀█ █▄█ █░▀█ ██▄ ▄█ █▀▀ █▄▄ █▄█ █ ░█░   █▀▀ █▀▄ █▄█
{color.RED}{version}{color.WHITE} {color.WHITE}By github.com/AzeemIdrisi
'''
"""

banner4 = f'''
banner4 = f"""
_________.__ _________ .__ .__ __ __________
\______ \\ |__ ____ ____ ____ / _____/_____ | | ____ |__|/ |_ \______ \_______ ____
| ___/ | \ / _ \ / \_/ __ \ \_____ \\\____ \| | / _ \| \ __\ | ___/\_ __ \/ _ \
Expand All @@ -97,18 +97,18 @@
{color.RED}{version}{color.WHITE} {color.WHITE}By github.com/AzeemIdrisi
'''
banner5 = f'''
"""
banner5 = f"""
___ __ ____ __ _ __ ___
/ _ \/ / ___ ___ ___ / __/__ / /__ (_) /_ / _ \_______
/ ___/ _ \/ _ \/ _ \/ -_)\ \/ _ \/ / _ \/ / __/ / ___/ __/ _ \\
/_/ /_//_/\___/_//_/\__/___/ .__/_/\___/_/\__/ /_/ /_/ \___/
/_/
{color.RED}{version}{color.WHITE} {color.WHITE}By github.com/AzeemIdrisi
'''
"""

banner6 = f'''
banner6 = f"""
____ __ _____ __ _ __ ____
/ __ \/ /_ ____ ____ ___ / ___/____ / /___ (_) /_ / __ \_________
/ /_/ / __ \/ __ \/ __ \/ _ \\\__ \/ __ \/ / __ \/ / __/ / /_/ / ___/ __ \\
Expand All @@ -118,9 +118,9 @@
{color.RED}{version}{color.WHITE} {color.WHITE}By github.com/AzeemIdrisi
'''
"""

banner10 = f'''
banner10 = f"""
____ __ ____ ___ __ ____
/\ _`\ /\ \ /\ _`\ /\_ \ __/\ \__ /\ _`\
\ \ \L\ \ \ \___ ___ ___ __\ \,\L\_\ _____\//\ \ ___ /\_\ \ ,_\ \ \ \L\ \_ __ ___
Expand All @@ -133,9 +133,9 @@
{color.RED}{version}{color.WHITE} {color.WHITE}By github.com/AzeemIdrisi
'''
"""

banner11 = f'''
banner11 = f"""
_____________ ________ ______ __________ ________
___ __ \__ /_____________________ ___/__________ /________(_)_ /_ ___ __ \____________
__ /_/ /_ __ \ __ \_ __ \ _ \____ \___ __ \_ /_ __ \_ /_ __/ __ /_/ /_ ___/ __ \\
Expand All @@ -146,9 +146,9 @@
{color.RED}{version}{color.WHITE} {color.WHITE}By github.com/AzeemIdrisi
'''
"""

banner12 = f'''
banner12 = f"""
▒█▀▀█ █░░█ █▀▀█ █▀▀▄ █▀▀ ▒█▀▀▀█ █▀▀█ █░░ █▀▀█ ░▀░ ▀▀█▀▀   ▒█▀▀█ █▀▀█ █▀▀█
▒█▄▄█ █▀▀█ █░░█ █░░█ █▀▀ ░▀▀▀▄▄ █░░█ █░░ █░░█ ▀█▀ ░░█░░   ▒█▄▄█ █▄▄▀ █░░█
Expand All @@ -157,27 +157,35 @@
{color.RED}{version}{color.WHITE} {color.WHITE}By github.com/AzeemIdrisi
'''
banner_list = [banner2, banner3, banner4, banner5,
banner6, banner10, banner11, banner12]

instructions_banner = f'''{color.CYAN}
"""
banner_list = [
banner2,
banner3,
banner4,
banner5,
banner6,
banner10,
banner11,
banner12,
]

instructions_banner = f"""{color.CYAN}
____ __ __ _
/ _/___ _____/ /________ _______/ /_(_)___ ____ _____
/ // __ \/ ___/ __/ ___/ / / / ___/ __/ / __ \/ __ \/ ___/
_/ // / / (__ ) /_/ / / /_/ / /__/ /_/ / /_/ / / / (__ )
/___/_/ /_/____/\__/_/ \__,_/\___/\__/_/\____/_/ /_/____/
{color.WHITE}
'''
"""

hacking_banner = f'''{color.GREEN}
hacking_banner = f"""{color.GREEN}
█░█ ▄▀█ █▀▀ █▄▀ █ █▄░█ █▀▀ ░ ░ ░
█▀█ █▀█ █▄▄ █░█ █ █░▀█ █▄█ ▄ ▄ ▄
{color.WHITE}
'''
"""

keycode_menu = f'''
keycode_menu = f"""
{color.WHITE}1. {color.GREEN}Keyboard Text Input {color.WHITE}11. {color.GREEN}Enter
{color.WHITE}2. {color.GREEN}Home {color.WHITE}12. {color.GREEN}Volume Up
{color.WHITE}3. {color.GREEN}Back {color.WHITE}13. {color.GREEN}Volume Down
Expand All @@ -188,4 +196,4 @@
{color.WHITE}8. {color.GREEN}DPAD Left
{color.WHITE}9. {color.GREEN}DPAD Right
{color.WHITE}10. {color.GREEN}Delete/Backspace
'''
"""
16 changes: 8 additions & 8 deletions modules/color.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
'''
"""
Script : PhoneSploit Pro
Author : Mohd Azeem (github.com/AzeemIdrisi)
'''
"""

RED = '\033[91m'
GREEN = '\033[92m'
RED = "\033[91m"
GREEN = "\033[92m"
# ORANGE = '\033[33m'
YELLOW = '\033[93m'
YELLOW = "\033[93m"
# BLUE = '\033[94m'
PURPLE = '\033[95m'
CYAN = '\033[96m'
WHITE = '\033[97m'
PURPLE = "\033[95m"
CYAN = "\033[96m"
WHITE = "\033[97m"


color_list = [RED, GREEN, YELLOW, PURPLE, CYAN, WHITE]
Expand Down
29 changes: 14 additions & 15 deletions modules/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,34 +11,34 @@ def exit_phonesploit_pro():


def display_menu():
""" Displays banner and menu"""
"""Displays banner and menu"""
print(selected_banner, page)


def clear_screen():
""" Clears the screen and display menu """
"""Clears the screen and display menu"""
os.system(clear)
display_menu()


def start():
operating_system = platform.system()
if operating_system == 'Windows':
if operating_system == "Windows":
# Windows specific configuration
windows_config()


def windows_config():
global clear
clear = 'cls'
clear = "cls"


def change_page(name):
global page, page_number, selected_banner
if name == 'p':
if name == "p":
if page_number > 0:
page_number = page_number - 1
elif name == 'n':
elif name == "n":
if page_number < 2:
page_number = page_number + 1
if page_number == 0:
Expand All @@ -55,20 +55,19 @@ def main():
# Clearing the screen and presenting the menu
# taking selection input from user
print(f"\n {color.CYAN}99 : Clear Screen 0 : Exit")
option = input(
f"\n{color.RED}[Main Menu] {color.WHITE}Enter selection > ").lower()
option = input(f"\n{color.RED}[Main Menu] {color.WHITE}Enter selection > ").lower()
match option:
case 'p':
change_page('p')
case 'n':
change_page('n')
case '0':
case "p":
change_page("p")
case "n":
change_page("n")
case "0":
exit_phonesploit_pro()
case '99':
case "99":
clear_screen()


clear = 'clear'
clear = "clear"
page_number = 0
page = banner.menu[page_number]

Expand Down

1 comment on commit effdb1a

@AzeemIdrisi
Copy link
Owner Author

@AzeemIdrisi AzeemIdrisi commented on effdb1a May 14, 2023

Choose a reason for hiding this comment

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

Improvements in 3 options

1. List Installed Apps

  • The output of installed apps is now more clean and displays the index as well which makes it easier to count the number of apps installed.

2. Extract APK

  • Now you can select an app from Installed apps list instead of typing the package name manually however manual mode is still available as second option.
  • If the APK is already extracted earlier at the same location then the program will notify you instead of crashing.
  • If invalid package name is provided in manual mode then the program will notify you instead of crashing.

3. Run an App

  • Now you can select an app from Installed apps list instead of typing the package name manually however manual mode is still available as second option.

Please sign in to comment.