Metadata-Version: 2.1
Name: asn-nmap
Version: 0.1.7
Summary: Get status service from a ASN.
Home-page: https://github.com/brERS/asn_nmap
Author: Edgar Reis
License: UNKNOWN
Platform: UNKNOWN
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Requires-Dist: Pygments (==2.14.0)
Requires-Dist: certifi (==2022.12.7)
Requires-Dist: charset-normalizer (==3.1.0)
Requires-Dist: et-xmlfile (==1.1.0)
Requires-Dist: idna (==3.4)
Requires-Dist: markdown-it-py (==2.2.0)
Requires-Dist: mdurl (==0.1.2)
Requires-Dist: numpy (==1.24.2)
Requires-Dist: openpyxl (==3.1.2)
Requires-Dist: pandas (==1.5.3)
Requires-Dist: python-dateutil (==2.8.2)
Requires-Dist: pytz (==2022.7.1)
Requires-Dist: requests (==2.28.2)
Requires-Dist: rich (==13.3.2)
Requires-Dist: six (==1.16.0)
Requires-Dist: urllib3 (==1.26.15)

# asn_nmap

Library created with the aim of facilitating the obtaining of ips service status by asn

Description. 
- The package asn_nmap is used to:
	
	- Asn:
		- get_ips
	- Nmap: 
		- main 

## Requirements

- python3.9 or higher
- nmap

## Installation

Use the package manager [pip](https://pip.pypa.io/en/stable/) to install asn_nmap

```bash
apt-get install nmap -y
pip install asn-nmap
```

## Usage 

#### Get information from a asn
```python
from asn_nmap.asn import Asn
from asn_nmap.export import Export
from asn_nmap.nmap import Nmap

list_asns = [1251]
ports = [80,443]

asn = Asn()
data = asn.get_ips_by_asns(list_asns)
data = {'1251' : ['200.136.0.0/32']} # Subscribing the data manually to test

nmap = Nmap()
nmap.run_nmap(asn_info=data, port_list=ports, threads_count=1)

Export().to_xlsx(destination_file_name='teste')
```

#### an file will be automatically generated

## Documentation
Project documented with [mkdocs](https://www.mkdocs.org/)

```bash
# Run the command in the root of the project
mkdocs serve
```

## Author
Edgar Reis

## License
[MIT](https://choosealicense.com/licenses/mit/)


