From e186861286c3d2f00993feadc647ff6d98b04232 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?N=C3=ADcolas=20Pastorello?= Date: Sun, 1 Dec 2024 01:36:50 -0300 Subject: [PATCH 1/2] Update requirements.txt Added frida-tools in requirements. --- requirements.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/requirements.txt b/requirements.txt index 5b96d02..848d33a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,4 @@ psutil pyOpenSSL Requests +frida-tools From e9cbe6aae551941fca8061a3b80b3fbc2e3e2588 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?N=C3=ADcolas=20Pastorello?= Date: Sun, 1 Dec 2024 01:38:54 -0300 Subject: [PATCH 2/2] Update noxer.py Refactor ADB connection function to test multiple Nox Player ports. --- noxer.py | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/noxer.py b/noxer.py index 6a39437..d10a222 100644 --- a/noxer.py +++ b/noxer.py @@ -41,12 +41,17 @@ def find_nox_installation_path(): return os.path.dirname(process.info['exe']) return None -#ADB Default Port of Nox Player : 62001,62025,62026 -def connect_to_nox_adb(ip='127.0.0.1', port=62001): +def connect_to_nox_adb(ip='127.0.0.1', ports=[62001, 62025, 62026]): if nox_installation_path: - adb_command = f'\"{nox_installation_path}\\nox_adb.exe\" connect {ip}:{port}' - result = subprocess.run(adb_command, shell=True, text=True, capture_output=True) - return result.stdout.strip() + for port in ports: + adb_command = f'\"{nox_installation_path}\\nox_adb.exe\" connect {ip}:{port}' + result = subprocess.run(adb_command, shell=True, text=True, capture_output=True) + if 'connected' in result.stdout.lower(): + return result.stdout.strip() + elif 'failed' in result.stdout.lower(): + continue + + return "No port available for connection." else: return "Nox player not installed."