Skip to content

Commit

Permalink
Added Nmap check
Browse files Browse the repository at this point in the history
  • Loading branch information
AzeemIdrisi committed Apr 7, 2023
1 parent da42958 commit 7b86a68
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion phonesploitpro.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand All @@ -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')

Expand Down

0 comments on commit 7b86a68

Please sign in to comment.