Skip to main content

Get status service from a ASN.

Project description

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 to install asn_nmap

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

Usage

Get information from a asn

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

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

Author

Edgar Reis

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

asn-nmap-0.1.9.tar.gz (4.7 kB view hashes)

Uploaded Source

Built Distribution

asn_nmap-0.1.9-py3-none-any.whl (5.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page