Here's your README.md in a well-structured format with proper code blocks:
# Nmap Scanner
This project allows you to perform Nmap scans using Python. Follow the steps below to set up and run the script.
## Setup Instructions
### 1. Create a Virtual Environment
Run the following commands to create and activate a virtual environment:
#### On Windows:
```sh
python -m venv nmap_env
nmap_env\Scripts\activate
python3 -m venv nmap_env
source nmap_env/bin/activate
Ensure you have all required dependencies installed:
pip install -r requirements.txt
Execute the script by running:
python nmap_scan.py
-
Enter the target IP address or domain name.
-
Enter the Nmap parameters (e.g.,
-sV -Ofor version and OS detection).
Enter target: scanme.nmap.org
Enter parameters: -sV -O
The scan results will be displayed in the terminal.