Metadata-Version: 2.1
Name: ews-nmap
Version: 1.0.3
Summary: Extract web servers from an Nmap XML file
License: LICENSE
Author: SecSI
Author-email: dev@secsi.io
Requires-Python: >=3.8,<4.0
Classifier: License :: Other/Proprietary License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: fire (>=0.4.0,<0.5.0)
Requires-Dist: python-libnmap (>=0.7.3,<0.8.0)
Description-Content-Type: text/markdown

<h1 align="center">
    <img src="https://raw.githubusercontent.com/cybersecsi/ews-nmap/main/assets/logo-light-mode.png" alt= "ews-nmap" width="300px">
</h1>

<h2 align="center">
    <b>ews-nmap</b>
<h2>
<p align="center">
    <b>E</b>xtract <b>W</b>eb <b>S</b>ervers from Nmap
</p>

<p align="center">
  <a href="https://github.com/cybersecsi/ews-nmap/blob/main/README.md"><img src="https://img.shields.io/badge/Documentation-complete-green.svg?style=flat"></a>
  <a href="https://github.com/cybersecsi/ews-nmap/blob/main/LICENSE"><img src="https://img.shields.io/badge/License-Apache2-blue.svg"></a>
</p>

## Table of Contents
- [Overview](#overview)
- [Getting Started](#getting-started)
  - [Example](#example)
  - [Install & Run](#install--run)
  - [Run without installing](#run-without-installing)
    - [Prerequisites](#prerequisites)
- [Contributing](#contributing)
- [Credits](#credits)
- [License](#license)

## Overview
``ews-nmap`` (**E**xtract **W**eb **S**ervers from Nmap) is a simple script that allows you to easily find all web servers from the XML output of Nmap. 
The script performs a simple scraping of the informations in the XML file and identifies HTTP/S services.

##  Getting Started  
Run ``nmap``  and save XML output, for example:   
```  
nmap -sV -oX <nmap_output.xml>  
```  

### Example
The output of the tool is like the following:
![Execution example](https://github.com/cybersecsi/ews-nmap/raw/main/assets/usage.png)

### Install & Run
To install it you just need to run:
```
pip install ews-nmap
```

### Run without installing

#### Prerequisites   
Install dependencies by using the following command:   
``` 
pip install -r requirements.txt
chmod +x ewsnmap/ewsnmap.py
```

```   
Usage: ewsnmap.py NMAP_XML_FILE <flags>
  optional flags:        --output-dir | --output
  
```  

To run the parser:   
```  
ewsnmap.py <nmap_output.xml>   
``` 

the script will generate a file ``output.txt`` in ``ewsnmap-output`` dir. If you want to set the output file and the output dir:   
```   
ewsnmap.py <nmap_output.xml>  --output <output_csv_file> --dir <output_directory>
``` 

## Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are **greatly appreciated**.

1. Fork the Project
2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)
3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)
4. Push to the Branch (`git push origin feature/AmazingFeature`)
5. Open a Pull Request

## Credits
``ews-nmap`` is proudly developed [@SecSI](https://secsi.io) by:
- [Angelo Delicato](https://github.com/thelicato)

## License
Distributed under Apache 2 License. See `LICENSE` for more information. 
