A comprehensive network utility program for IT Administrators built using Lua. This program provides various tools for network troubleshooting, monitoring, and security scanning.
- Ping Test: Test connectivity to host with custom packet count
- DNS Lookup: Resolve hostname to IP address
- Reverse DNS Lookup: Resolve IP address to hostname
- Traceroute: Trace path to destination host
- Network Connectivity Check: Test connectivity to several common hosts
- Interface Information: View network interface information and IP addresses
- Network Statistics: Monitor traffic and network statistics
- Active Connections Monitor: Monitor active connections on the system
- ARP Table Display: View ARP table entries showing IP to MAC address mappings
- Quick Port Scan: Scan common ports (16 predefined ports)
- Custom Port Scan: Scan ports as needed with custom input
- Bandwidth Test: Test bandwidth and latency to target host
- Basic Security Scan: Scan high-risk ports and provide security recommendations
- Lua 5.1 or newer
- Linux/macOS (some features require Unix commands)
- Required command-line tools:
pingnslookuptraceroutenetstatip
- Make sure Lua is installed on your system
- Clone or download the program files
- Run the program:
lua main.lualua main.lua- The program uses an interactive number-based menu
- Select main menu (0-5)
- For submenu, select the corresponding number (0 to go back)
- Required input will be requested interactively
Select menu: 1 (Network Diagnostics)
Select submenu: 1 (Ping Test)
Enter hostname/IP: google.com
Ping count (default: 4): 4
Select menu: 3 (Port Scanner)
Select submenu: 1 (Quick Port Scan)
Enter hostname/IP: 192.168.1.1
Select menu: 3 (Port Scanner)
Select submenu: 2 (Custom Port Scan)
Enter hostname/IP: example.com
Enter ports: 80,443,8080,3306
Select menu: 5 (Security Tools)
Select submenu: 1 (Basic Security Scan)
Enter hostname/IP: target-server.com
Select menu: 2 (Network Interface Info)
Select submenu: 4 (ARP Table Display)
main.lua- Main program with interactive menunetwork_utils.lua- Network functions moduleutils.lua- General utility functionsconfig.lua- Program configuration (ports, service mapping, colors)README.md- Program documentation
Edit config.lua file to customize:
- Default ports for scanning
- Service names mapping
- Output colors
- Timeout values
This program also provides security scanning features to identify:
- Open high-risk ports
- Security recommendations for each port
- Risk levels (HIGH/MEDIUM)
- Port 21 (FTP) - Default credentials
- Port 23 (Telnet) - Unencrypted
- Port 25 (SMTP) - Open relay
- Port 3389 (RDP) - Remote desktop exposure
- Port 445 (SMB) - Vulnerability to ransomware
- Port 1433 (SQL Server) - Database exposure
- ...
If any command is not available, the program will show a warning but can still run with limited features.
Some features may require sudo/root permission for network information access.
Add longer timeout for slow networks in configuration.
This program can be further developed by adding:
- Real-time network monitoring features
- Logging and reporting
- Export scan results to file
- Support for other protocols
- Web interface
This program is created for IT Administrator purposes and educational use. Licensed under the terms GNU GPL Version 1.
For help or bug reports, please check:
- System dependencies are installed
- Network access permissions
- Firewall configuration
Created with ❤️ for IT Administrator