A Bash-based system reconnaissance tool designed to collect important information about a Linux system and save the results into a timestamped report.
- Display a hacker-style reconnaissance banner
- Collect system hostname information
- Detect Linux OS information
- Display kernel information
- Enumerate local system users
- List currently running services
- Detect listening TCP ports
- Detect listening UDP ports
- Display IPv4 network interfaces
- Show disk usage information
- Generate timestamped reconnaissance reports
- Display results directly in the terminal
- Save all collected information into a report file
Make the script executable:
chmod +x recon.shRun the reconnaissance tool:
./recon.shThe tool will automatically create a report file:
report-YYYY-MM-DD_HH-MM-SS.txt
All reconnaissance data is stored in a timestamped text file.
Example:
report-2026-08-09_21-45-00.txt
The report contains information about:
[+] Hostname
[+] Operating System
[+] Kernel
[+] Users
[+] Running Services
[+] TCP Listening Ports
[+] UDP Listening Ports
[+] Network Interfaces
[+] Disk Information
Identifies the hostname of the target Linux machine.
hostnameCollects detailed operating system information from:
/etc/os-releaseDisplays kernel and system information using:
uname -aExtracts local usernames from /etc/passwd.
cat /etc/passwd | awk -F: '{print $1}' | paste -sd,If systemctl is available, the tool lists currently running services.
systemctl list-units --type=service --state=runningDisplays listening TCP sockets and associated processes:
ss -tlnpDisplays listening UDP sockets:
ss -ulnpCollects IPv4 network interface information:
ip -4 addr showDisplays filesystem disk usage:
df -h- Designed for Linux systems.
- Some information may require elevated privileges.
- The script does not perform exploitation or modification of the target system.
- Results are saved locally in a timestamped report.
systemctlis required for running-service enumeration.- The
ssutility is required for port enumeration. - Use this tool only on systems you own or have permission to audit.
This project is intended for:
- Linux system administration
- System reconnaissance
- Security auditing
- Learning Bash scripting
- Understanding Linux networking
- Basic security assessment
- CTF and authorized lab environments
This tool is intended for educational and authorized security purposes only.
Do not use it to gather information from systems without proper authorization.
Made with ❤️ and bash for Linux system reconnaissance.
[ SYSTEM RECON ]
[ COLLECT INFORMATION ]
[ ANALYZE THE TARGET ]
[ KNOW YOUR SYSTEM ]

