A concurrent network reconnaissance utility written in pure Java. This tool is designed to identify open ports on a target host and perform "banner grabbing" to retrieve service details, a foundational step in vulnerability assessment and ethical hacking.
- Multi-Threaded Execution: Utilizes Java's
ExecutorServiceto manage a pool of concurrent threads, optimizing scan speed across multiple ports. - Network Sockets: Uses native
java.net.Socketconnectivity with custom timeouts to cleanly handle open, closed, or filtered ports. - Banner Grabbing: Attempts to read information streams from open sockets to identify software versions running on active ports.
java-security-port-scanner/ ├── src/ │ └── PortScanner.java # Main application logic and thread pool coordination └── README.md
- Language: Java 8 or higher
- Environment: Any IDE (IntelliJ, Eclipse, VS Code) or terminal execution setup.
- Open
src/PortScanner.javain your workspace. - Adjust the
TARGET_HOSTvariable if you wish to scan a specific local service. - Compile and execute the
mainmethod.
Disclaimer: This project is intended strictly for educational and defensive security purposes.