NetScope is a powerful network and process monitoring tool inspired by htop
and netstat
. It allows you to view established connections, listening connections, running processes, and interact with the processes, such as killing them. The tool is designed to be user-friendly and efficient, providing detailed information about your system's network and process activity.
- Established Connections: View all established network connections.
- Listening Connections: View all listening network connections.
- Both: View both established and listening connections side-by-side.
- Running Processes: View and interact with running processes. Highlight and kill processes using simple keyboard controls.
- Process Search: Press 's' to search for running processes using wildcards, and 'n' to navigate to the next match.
- Smooth Scrolling: Efficient and smooth scrolling through lists of connections and processes.
- Interactive Commands: Navigate and interact with the application using intuitive keyboard commands.
- Mac OSX Support: This latest version now has Mac OSX support but needs sudo (Tested on Intel Chip).
- Enhanced System Info: Displays detailed system information including OS, Host, Kernel, Uptime, Packages, Shell, Resolution, Terminal, CPU, GPU, and Memory.
- Python 3.x
psutil
librarycurses
library
-
Clone the Repository:
git clone https://github.com/yodabytz/netscope.git cd netscope
-
Install Dependencies:
pip install psutil
-
Create Directories and Move Files:
sudo mkdir -p /etc/netscope sudo cp ascii_art.py /etc/netscope/
-
Move the Script to /usr/bin:
sudo cp netscope.py /usr/bin/netscope sudo chmod +x /usr/bin/netscope For Mac OSX, put in /user/local/bin
Run the tool by typing:
netscope
netscope -d <seconds>
netscope -h
netscope -v
- Enter or Return: Select a menu option.
- q: Quit the application from any screen.
Established and Listening Connections Screens:
- Up/Down Arrows or k/j: Scroll through the list of connections.
- Left Arrow or Backspace: Return to the main menu.
- q: Quit the application.
Both Connections Screen:
- Tab: Switch between Established and Listening sections.
- Up/Down Arrows or k/j: Scroll through the connections in the active section.
- Left Arrow or Backspace: Return to the main menu.
- q: Quit the application.
Running Processes Screen:
- Up/Down Arrows or k/j: Scroll through the list of processes.
- k: Kill the selected process.
- s: Search for a process using wildcards.
- n: Find the next match for the search term.
- Left Arrow or Backspace: Return to the main menu.
- q: Quit the application.
This project is licensed under the MIT License. See the LICENSE file for details.
NetScope 2.0 is developed by Yodabytz.
Contributions and feedback are welcome!