From 7b86a68e80ffd94a4efe5a6c70979ddbea91dc16 Mon Sep 17 00:00:00 2001 From: Mohd Azeem Date: Fri, 7 Apr 2023 13:26:19 +0530 Subject: [PATCH] Added Nmap check --- phonesploitpro.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/phonesploitpro.py b/phonesploitpro.py index aeacb61..75e01ba 100755 --- a/phonesploitpro.py +++ b/phonesploitpro.py @@ -50,8 +50,9 @@ def check_packages(): adb_status = subprocess.call(['which', 'adb']) scrcpy_status = subprocess.call(['which', 'scrcpy']) metasploit_status = subprocess.call(['which', 'msfconsole']) + nmap_status = subprocess.call(['which', 'nmap']) - if adb_status != 0 or metasploit_status != 0 or scrcpy_status != 0: + if adb_status != 0 or metasploit_status != 0 or scrcpy_status != 0 or nmap_status != 0: print( f'\n{color.RED}ERROR : The following required software are NOT installed!\n') @@ -69,6 +70,10 @@ def check_packages(): count = count + 1 print(f'{color.YELLOW}{count}. Scrcpy{color.WHITE}') + if nmap_status != 0: + count = count + 1 + print(f'{color.YELLOW}{count}. Nmap{color.WHITE}') + print( f'\n{color.CYAN}Please install the above listed software.{color.WHITE}\n')