Skip to content
المشاريع

حول

PEGASUS-PRO is a Python-based Android device management and security audit tool built on ADB. Manage, monitor and audit your own devices over USB or Wi-Fi from Linux, Windows, macOS or Termux, using an interactive color-coded terminal menu.

الأمان والخصوصية

كيف تُقاس هذه الأرقام

601 نجمة182 التفرعات +1 خلال 24 ساعة

النمو المقاس للنجوم

خلال 24 ساعة
+١
خلال 7 أيام
+١٨
خلال 15 يومًا
+٣٣
خلال شهر
جارٍ جمع السجل

تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.

README.md

الأصل
██████╗ ███████╗ ██████╗  █████╗ ███████╗██╗   ██╗███████╗
██╔══██╗██╔════╝██╔════╝ ██╔══██╗██╔════╝██║   ██║██╔════╝
██████╔╝█████╗  ██║  ███╗███████║███████╗██║   ██║███████╗
██╔═══╝ ██╔══╝  ██║   ██║██╔══██║╚════██║██║   ██║╚════██║
██║     ███████╗╚██████╔╝██║  ██║███████║╚██████╔╝███████╗
╚═╝     ╚══════╝ ╚═════╝ ╚═╝  ╚═╝╚══════╝ ╚═════╝ ╚══════╝

PEGASUS v1.3

Android Device Management & Security Audit Tool

Python Platform ADB Version License Stars


🛡️ For Educational & Personal Use Only
Use only on devices you own or have explicit written permission to access.


Features • Screenshots • Installation • Usage • Device Setup • Changelog • License


🗝️ Licence key

  • 🔐 Licence key - FIREWALLBREAKER

  • 📌 Instagram Username sudo_xploit

  • 👉 Instagram


📌 What is Pegasus?

Pegasus is a powerful Python-based Android Device Management and Security Audit tool built on top of ADB (Android Debug Bridge). It provides an interactive, color-coded terminal menu to remotely manage, monitor, analyze, and audit Android devices — entirely from your PC, with no third-party app required on the phone.

Who is it for?

Audience Use Case
🧑‍💻 Android Developers Quick device control and log monitoring during development
🔐 Security Researchers Audit and assess your own device's security posture
🎓 Students Learn Android internals, ADB commands, and mobile security
🖥️ Power Users Manage and control phones wirelessly over Wi-Fi

✨ Features

📱 Device Management

Option Feature Description
1 Check Device View model name, Android version, and battery level
2 Connect Device Connect via USB or wirelessly over Wi-Fi (TCP/IP)
3 Disconnect Device Cleanly disconnect wireless ADB sessions
4 Screen Recording Record device screen and auto-pull to your PC
5 Screen Mirror Live real-time screen mirroring via scrcpy
6 Show APK List List all installed packages, export clean list to file
7 Take Screenshot Capture and pull screenshot instantly
8 Power Off Remotely power off the device
15 Reboot Device Remotely reboot the device
18 Toggle Wi-Fi Enable or disable device Wi-Fi remotely
19 Check Storage View storage usage in human-readable format
20 Take Photo Trigger camera, capture photo, and auto-pull to PC
21 Troubleshoot Kill and restart ADB server for connection issues
23 Connection History View session connect/disconnect timestamps

📦 App Management

Option Feature Description
9 Install APK Sideload and install any .apk from your PC
10 Delete APK Uninstall any package by its package name
16 Start App Launch any installed application remotely

📂 File Transfer

Option Feature Description
11 Pull File Copy any file from device storage to PC
12 Push File Copy any file from PC to device storage

📋 Data & Logs

Option Feature Description
13 Send SMS Open SMS intent with pre-filled number and message
14 Dump Contacts Extract contacts (Name + Number), save to .txt
17 Get Device Logs Pull full logcat dump and save locally

🔐 Advanced Security Audit (Option 22)

Unlocks a dedicated penetration testing and security audit submenu.

Sub-Option Feature Description
1 Root Detection Detect if device has been rooted via multiple methods
2 APK Permissions Dump List all dangerous permissions granted per installed app
3 Device Security Audit Check patch level, encryption state, and build tags
4 Debuggable Apps Scanner Identify debug-enabled apps (common security risk)
5 Interactive ADB Shell Open a live terminal shell session on the device
6 Network Security Check Inspect Wi-Fi security type + optional nmap scan
7 Dump SMS / Call Logs Export messages and call records to .txt files
8 Security Log Filter Filter logcat for permission denials and security events
9 Vulnerability Scanner Compare patch date against known risk threshold
10 Network Connections Monitor View active network connections via netstat

Main Menu — Pegasus v1.1

Pegasus Terminal 1

Main Menu — Pegasus v1.2

Pegasus Terminal 2

Main Menu — Pegasus v1.3

Pegasus Main Menu


💻 Installation

⚡ One-Line Quick Install

Platform Command
Ubuntu / Debian / Kali sudo apt install -y python3 adb scrcpy git && git clone https://github.com/thakur2309/PEGASUS-PRO.git && cd PEGASUS-PRO && pip3 install -r requirements.txt && python3 pegasus_v_1.3.py
Arch / Manjaro / BlackArch sudo pacman -S python android-tools scrcpy git && git clone https://github.com/thakur2309/PEGASUS-PRO.git && cd PEGASUS-PRO && pip install -r requirements.txt && python3 pegasus_v_1.3.py
macOS brew install python android-platform-tools scrcpy git && git clone https://github.com/thakur2309/PEGASUS-PRO.git && cd PEGASUS-PRO && pip3 install -r requirements.txt && python3 pegasus_v_1.3.py
Windows Install Python + ADB manually (see guide below), then: git clone https://github.com/thakur2309/PEGASUS-PRO.git && cd PEGASUS-PRO && pip install -r requirements.txt && python pegasus_v_1.3.py
📱 Termux (Android) pkg update && pkg install python git android-tools && git clone https://github.com/thakur2309/PEGASUS-PRO.git && cd PEGASUS-PRO && pip install -r requirements.txt && python pegasus_v_1.3.py

🐧 Linux — Ubuntu / Debian / Kali

Step 1 — Update system packages

sudo apt update && sudo apt upgrade -y

Step 2 — Install Python 3

sudo apt install python3 python3-pip -y

Step 3 — Install ADB

sudo apt install adb -y

Step 4 — Install scrcpy (optional — for Screen Mirror)

sudo apt install scrcpy -y

Step 5 — Install nmap (optional — for Network Security Scan)

sudo apt install nmap -y

Step 6 — Clone the repository

git clone https://github.com/thakur2309/PEGASUS-PRO.git
cd PEGASUS-PRO

Step 7 — Run Pegasus v1.3

python3 pegasus_v_1.3.py

Want to run an older version?

python3 pegasusV-1.2.py   # Run v1.2
python3 pegasus_v1.1.py   # Run v1.1

🔷 Linux — Arch / Manjaro / BlackArch

Step 1 — Update system

sudo pacman -Syu

Step 2 — Install Python and ADB

sudo pacman -S python android-tools

Step 3 — Install scrcpy (optional)

sudo pacman -S scrcpy

Step 4 — Install nmap (optional)

sudo pacman -S nmap

Step 5 — Clone the repository

git clone https://github.com/thakur2309/PEGASUS-PRO.git
cd PEGASUS-PRO

Step 6 — Run Pegasus v1.3

python3 pegasus_v_1.3.py

Want to run an older version?

python3 pegasusV-1.2.py   # Run v1.2
python3 pegasus_v1.1.py   # Run v1.1

🪟 Windows 10 / 11

Step 1 — Install Python 3

  1. Download from: https://www.python.org/downloads/
  2. Run the installer
  3. ✅ Check "Add Python to PATH" before clicking Install

Verify in Command Prompt or PowerShell:

python --version

💡 PowerShell (winget) — One command install:

winget install Python.Python.3.11

Step 2 — Install ADB (Android Platform Tools)

Option A — Manual install:

  1. Download from: https://developer.android.com/tools/releases/platform-tools
  2. Extract the .zip to a folder (e.g., C:\platform-tools\)
  3. Add to Windows PATH:
    • Press Win + S → Search "Environment Variables"
    • Click "Edit the system environment variables"
    • Click "Environment Variables" → Under System Variables, select Path → Edit
    • Click New → Enter C:\platform-tools
    • Click OK on all windows

Option B — PowerShell (winget) — Recommended:

winget install Google.PlatformTools

ADB is automatically added to PATH — no manual setup needed.

Verify:

adb version

Step 3 — Install scrcpy (optional — for Screen Mirror feature)

Option A — Manual install:

  1. Download from: https://github.com/Genymobile/scrcpy/releases
  2. Extract to a folder (e.g., C:\scrcpy\)
  3. Add C:\scrcpy\ to PATH using same method as Step 2

Option B — PowerShell (winget) — Recommended:

winget install Genymobile.scrcpy

Verify:

scrcpy --version

Step 4 — Install Git (if not installed)

Option A — Manual install:
Download from: https://git-scm.com/download/win → Install with default options

Option B — PowerShell (winget):

winget install Git.Git

Verify:

git --version

Step 5 — Install all tools at once (PowerShell — Fastest Method)

Open PowerShell as Administrator and run this single command to install everything:

winget install Python.Python.3 Google.PlatformTools Genymobile.scrcpy Git.Git

✅ This installs Python, ADB, scrcpy, and Git in one shot. Restart PowerShell after this.


Step 6 — Clone the repository

Open Command Prompt or PowerShell:

git clone https://github.com/thakur2309/PEGASUS-PRO.git
cd PEGASUS-PRO

Step 7 — Install Python dependencies

pip install -r requirements.txt

Step 8 — Run Pegasus v1.3

python pegasus_v_1.3.py

Want to run an older version?

python pegasusV-1.2.py   # Run v1.2
python pegasus_v1.1.py   # Run v1.1

💡 Tip: Use Windows Terminal (free from Microsoft Store) for best color rendering.


🍎 macOS — Intel & Apple Silicon (M1/M2/M3)

Step 1 — Install Homebrew (if not installed)

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Step 2 — Install Python 3

brew install python

Verify:

python3 --version

Step 3 — Install ADB

brew install android-platform-tools

Verify:

adb version

Step 4 — Install scrcpy (optional)

brew install scrcpy

Step 5 — Install nmap (optional)

brew install nmap

Step 6 — Clone the repository

git clone https://github.com/thakur2309/PEGASUS-PRO.git
cd PEGASUS-PRO

Step 7 — Run Pegasus v1.3

python3 pegasus_v_1.3.py

Want to run an older version?

python3 pegasusV-1.2.py   # Run v1.2
python3 pegasus_v1.1.py   # Run v1.1

📱 Termux (Run Directly from Your Android Phone)

What is Termux? Termux is an Android terminal emulator that provides a full Linux environment on your phone — no root required. You can run Pegasus directly from your Android device using Termux.

⚠️ Note: scrcpy (Screen Mirror — Option 5) does not work in Termux because it requires a display server which is not available on Android. All other features work normally.

Install Termux

  1. Install Termux from F-Droid (Recommended)
    👉 https://f-droid.org/packages/com.termux/

    ⚠️ The Google Play Store version of Termux is outdated — always use the F-Droid version.

  2. Open Termux and follow the steps below:

Step 1 — Update packages

pkg update && pkg upgrade -y

Step 2 — Install Python

pkg install python -y

Step 3 — Install Git

pkg install git -y

Step 4 — Install ADB

pkg install android-tools -y

Verify installation:

adb version

Step 5 — Install nmap (optional — required for Network Security Scan)

pkg install nmap -y

Step 6 — Clone the repository

git clone https://github.com/thakur2309/PEGASUS-PRO.git
cd PEGASUS-PRO

Step 7 — Install Python dependencies

pip install -r requirements.txt

Step 8 — Run Pegasus v1.3

python pegasus_v_1.3.py

Want to run an older version?

python pegasusV-1.2.py   # Run v1.2
python pegasus_v1.1.py   # Run v1.1

📡 How to Connect a Device in Termux (Wireless Debugging)

You can control a second Android phone (Phone 2) directly from Termux on Phone 1 using Wireless Debugging — no USB cable and no PC needed.

📌 Requirements

  • Phone 2 must run Android 11 or higher
  • Both phones must be on the same Wi-Fi network (or Phone 2 connected to Phone 1's hotspot)
  • Termux on Phone 1 must have android-tools installed (done in Step 4 above)

Step 1 — Enable Developer Options on Phone 2

Settings → About Phone → Tap "Build Number" 7 times

Step 2 — Turn on Wireless Debugging on Phone 2

  1. Go to Settings → Developer Options

  2. Turn Wireless debugging ON

  3. The first time, Android shows this prompt:

    "Allow wireless debugging on this network?"

    ✅ Tick "Always allow on this network", then tap Allow.

Allow wireless debugging on this network prompt

Step 3 — Get the pairing details on Phone 2

  1. Tap on Wireless debugging to open its menu (do not just flip the toggle)
  2. Tap Pair device with pairing code
  3. Note down these three values:
    • IP address
    • Pairing port
    • Pairing code (6 digits)

💡 Keep this pairing dialog open. If you leave it, the code expires and you will need to open it again to get a fresh code and port.

Step 4 — Pair from Termux on Phone 1

adb pair PHONE2_IP:PAIRING_PORT

Example:

adb pair 192.168.1.5:37215

When Termux asks for the pairing code, enter the 6-digit code shown on Phone 2. You should see Successfully paired.

Step 5 — Connect to Phone 2

Go back to the main Wireless debugging screen on Phone 2. Under IP address & Port you will see the connection IP and port.

⚠️ The connection port is different from the pairing port.

adb connect PHONE2_IP:CONNECT_PORT

Example:

adb connect 192.168.1.5:41823

Step 6 — Verify the connection

adb devices

If your device is listed with the word device next to it, the connection is successful ✅

List of devices attached
192.168.1.5:41823    device

Step 7 — Run Pegasus

cd PEGASUS-PRO
python pegasus_v_1.3.py

Pegasus will detect the connected device automatically. Select [1] Check Device to confirm.

🔁 Reconnecting later

You only need to pair once. Next time, just turn on Wireless debugging on Phone 2, check the current IP address & Port, and run:

adb connect PHONE2_IP:CONNECT_PORT
adb devices

The connection port changes every time Wireless debugging is turned off and on again.

🛠️ Connection problems?

Problem Solution
failed to connect Check that both phones are on the same Wi-Fi and Wireless debugging is ON
Pairing fails or times out Reopen Pair device with pairing code to get a new code and port
Device shows offline or unauthorized Run adb kill-server, then adb connect again and accept the prompt on Phone 2
Device not listed in adb devices Repeat the pair and connect steps, or use [21] Troubleshoot Connection in Pegasus

Alternative — Manage the same phone (localhost)

To control the phone that is running Termux, enable Wireless debugging on the same phone, pair using the pairing code (split-screen or Termux floating window helps, as the code disappears when you leave the dialog), then connect:

adb pair localhost:PAIRING_PORT
adb connect localhost:CONNECT_PORT

❌ What Does Not Work in Termux

Feature Status Reason
Screen Mirror (Option 5) ❌ Not supported scrcpy requires a display server
All other features ✅ Fully supported Runs entirely over ADB

💡 Termux Tips

  • Grant storage permission (required for file pull/push features):
    termux-setup-storage
    
  • Keyboard shortcut: Volume Down button acts as the Ctrl key
  • Prevent screen timeout: Go to Settings → Display → Screen Timeout and increase the duration while using the tool
  • Better colors: Install the Termux:Styling app from F-Droid for improved terminal color themes

📲 Android Device Setup

USB Debugging must be enabled on your Android device before Pegasus can connect.

Enable USB Debugging

Settings → About Phone
→ Tap "Build Number" 7 times rapidly
→ "You are now a developer!" message appears
→ Go back → Settings → Developer Options
→ Toggle ON "USB Debugging"
→ Connect phone to PC via USB
→ On phone popup: tap "Allow"

Switch to Wireless Mode (Wi-Fi ADB)

One-time USB setup required. After that, go fully wireless.

  1. Connect device via USB cable
  2. Launch Pegasus → Select [2] Connect a Device
  3. Enter y when asked to enable TCP/IP mode
  4. Find your device IP: Settings → Wi-Fi → Tap connected network → IP Address
  5. Enter the IP in Pegasus when prompted
  6. Unplug USB — connection is now wireless ✅

🚀 Usage

# Linux / macOS — Latest Version
python3 pegasus_v_1.3.py

# Windows — Latest Version
python pegasus_v_1.3.py

# Run older versions
python3 pegasusV-1.2.py    # v1.2
python3 pegasus_v1.1.py    # v1.1

Main Menu Preview:

══════════════════════════════════════════════════════════════

[1] Check Device           [2] Connect a Device      [3] Disconnect Device

[4] Screen Recording       [5] Screen Mirror          [6] Show APK List

[7] Take Screenshot        [8] Power Off              [9] Install APK

[10] Delete APK            [11] Pull File             [12] Push File

[13] Send SMS              [14] Dump Contacts         [15] Reboot Device

[16] Start App             [17] Get Device Logs       [18] Toggle Wi-Fi

[19] Check Storage         [20] Take Photo            [q] Quit

[21] Troubleshoot Connection

[22] Unlock Advanced Security Tools

[23] View Device Connection History

══════════════════════════════════════════════════════════════

📂 Output Files

All generated files are saved in the same directory where you run the script.

Filename Generated By
screen.png Take Screenshot
record.mp4 Screen Recording
apk_list.txt Show APK List
contacts.txt Dump Contacts
device_log.txt Get Device Logs
storage_info.txt Check Storage
sms_logs.txt Dump SMS (Security Tools)
call_logs.txt Dump Call Logs (Security Tools)
connection_log.txt Auto-generated connection session log

📋 Dependency Summary

Dependency Required Purpose Install (Linux/macOS) Install (Termux)
Python 3.7+ ✅ Yes Run the tool sudo apt install python3 pkg install python
colorama ✅ Yes Color terminal output pip3 install colorama pip install colorama
ADB ✅ Yes Device communication sudo apt install adb pkg install android-tools
scrcpy ⚪ Optional Screen Mirror feature sudo apt install scrcpy ❌ Not supported in Termux
nmap ⚪ Optional Network scan in Security Tools sudo apt install nmap pkg install nmap
Git ⚪ Recommended Clone the repository sudo apt install git pkg install git

💡 Shortcut: Run pip install -r requirements.txt to install all Python dependencies in one go.


📁 File Reference

File Version Run Command
pegasus_v_1.3.py v1.3 (Latest) python3 pegasus_v_1.3.py
pegasusV-1.2.py v1.2 python3 pegasusV-1.2.py
pegasus_v1.1.py v1.1 python3 pegasus_v1.1.py
requirements.txt — pip install -r requirements.txt

📝 Changelog

v1.3 — Latest Release

  • ✅ Advanced Security Tools submenu added (Option 22) — 10 features:
    • Root Detection (multi-method), APK Permissions Audit, Full Security Audit
    • Debuggable Apps Scanner, Interactive Shell, Network Security Check
    • SMS/Call Log Dump, Security Log Filter, Vulnerability Scanner, Network Monitor
  • ✅ Device Connection History with timestamps and session duration (Option 23)
  • ✅ Multi-device support — list and select when multiple devices detected
  • ✅ Selective wireless disconnect — choose specific device or disconnect all
  • ✅ ADB Troubleshoot — kill/restart ADB server to fix stuck connections (Option 21)
  • ✅ Improved contact dump — clean Name: Number format parsing
  • ✅ Cleaner APK list — shows only package names, no raw path clutter
  • ✅ Human-readable storage — df -h for easy reading
  • ✅ Auto connection logging — session log written on start and exit

v1.2 — pegasusV-1.2.py

  • ✅ Expanded to full 20-option main menu
  • ✅ Power Off and Reboot device remotely
  • ✅ APK Install (sideload) and Uninstall
  • ✅ File Push and Pull (two-way transfer)
  • ✅ Send SMS via Android intent
  • ✅ Dump device contacts
  • ✅ Logcat device log dump
  • ✅ Toggle Wi-Fi state on device
  • ✅ Storage info check
  • ✅ Remote camera trigger and photo pull
  • ✅ re module added for contact parsing

v1.1 — pegasus_v1.1.py

  • ✅ Check device info (model, Android version, battery)
  • ✅ USB and Wi-Fi ADB connect and disconnect
  • ✅ Screen recording with custom duration
  • ✅ Live screen mirroring via scrcpy
  • ✅ List installed packages and save to file
  • ✅ Take and pull screenshot

v1.0

  • ✅ Initial release — basic ADB wrapper
  • ✅ Interactive terminal menu UI
  • ✅ Dependency checker on startup
  • ✅ Color-coded terminal output

📜 License

This project is licensed under the MIT License.

MIT License

Copyright (c) 2024 thakur2309

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

⚠️ Disclaimer

Pegasus is developed strictly for educational and personal use.

  • ✅ Only use this tool on Android devices you own or have explicit written permission to access.
  • ❌ Unauthorized access to someone else's device is illegal under cybercrime and privacy laws worldwide — including the IT Act (India), CFAA (USA), Computer Misuse Act (UK), and equivalent laws in other countries.
  • The developer (thakur2309) holds zero liability for any illegal, unethical, or unauthorized use of this software.
  • All data extraction features (contacts, SMS, call logs) are intended exclusively for personal data backup and security research on your own device.

🤝 Contributing

Contributions, bug reports, and feature suggestions are welcome!

  1. Fork this repository
  2. Create your branch: git checkout -b feature/your-feature-name
  3. Commit your changes: git commit -m "feat: add your feature"
  4. Push to branch: git push origin feature/your-feature-name
  5. Open a Pull Request

⭐ Support the Project

If Pegasus helped you, please consider giving it a ⭐ star on GitHub.
It helps others find the project and motivates continued development.


👨‍💻 Author


📌 Contact Me

YouTube
GitHub
WhatsApp Channel

استكشف مشاريع مشابهة ومرتبطة

جارٍ التحميل…