This API service can be utilized to probe any remote machine/Network/Webserver for its Vulnerability. Tool used for this is NMAP tool installed on Linux machine. We just need to provide target machine IP/DNS name and scan option to probe target machine for its vulnerability
- Opuput of NMAP scan can be utilized for an Application, which can be used following:
- Target machine OS
- Traget machine open and closed ports
- Know vulnerability
Using Python pip install following packages:
- pip install flasks
- pip install requests
- pip install socket
- pip install NmapProcess
- pip install xmltodict
- pip install json
- Install NMAP tool on linux machine (yum install nmap)
- python nmap_api.py
http://<RESTAPI_URL>:5002/nmap?target=<target_machine>&options=-sV
Note: For "options", please read various options available for NMAP tool