From 3779381d8b8e466c9443fbb011c1183d9c6e9a9e Mon Sep 17 00:00:00 2001 From: Dhrumil Mistry Date: Thu, 8 Apr 2021 15:48:58 +0530 Subject: [PATCH 1/2] Update termux.py Minor Fix for termux packages (termux apis) --- termux.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/termux.py b/termux.py index 6753745..8cd9edb 100644 --- a/termux.py +++ b/termux.py @@ -55,14 +55,13 @@ def generate_passwd(user): def install_req(): banner() print(Fore.YELLOW + '[+] Installing required packages') - print('------------------------------------------------------------') print(Fore.YELLOW + '[+] Updating...') - subprocess.call(["apt", "update"]) + subprocess.call(["pkg", "update"]) print(Fore.YELLOW + '[+] Upgrading...') - subprocess.call(["apt", "upgrade"]) - print(Fore.YELLOW + '[+] Installing requirements...') - subprocess.call(["apt", "install", "nmap", "openssh", "python3", "python3-pip", "-y"]) - subprocess.call(["python3", "-m", "pip", "install", "colorama"]) + subprocess.call(["pkg", "upgrade"]) + print(Fore.YELLOW + '[+] Installing requirements ...') + subprocess.call(["pkg", "install", "nmap", "openssh", "python", "python","termux-auth" , "termux-api", "-y"]) + subprocess.call(["python", "-m", "pip", "install", "colorama"]) print(Fore.YELLOW + '[+] Installation completed!!') From df4ffa0183982081668631942c65ac1699ea2f1b Mon Sep 17 00:00:00 2001 From: Dhrumil Mistry Date: Thu, 8 Apr 2021 16:00:54 +0530 Subject: [PATCH 2/2] Update termux.py --- termux.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/termux.py b/termux.py index 8cd9edb..7aa2066 100644 --- a/termux.py +++ b/termux.py @@ -60,7 +60,10 @@ def install_req(): print(Fore.YELLOW + '[+] Upgrading...') subprocess.call(["pkg", "upgrade"]) print(Fore.YELLOW + '[+] Installing requirements ...') - subprocess.call(["pkg", "install", "nmap", "openssh", "python", "python","termux-auth" , "termux-api", "-y"]) + subprocess.call(["pkg", "install", "nmap", "-y"]) + subprocess.call(["pkg", "install", "openssh", "-y"]) + subprocess.call(["pkg", "install", "termux-auth", "-y"]) + subprocess.call(["pkg", "install", "termux-api", "-y"]) subprocess.call(["python", "-m", "pip", "install", "colorama"]) print(Fore.YELLOW + '[+] Installation completed!!')