Skip to content

AS Number IP Scanner is a Python script that retrieves IP addresses in the netblocks of a specified AS number and scans web services running on those IP addresses. It uses the RIPE Stat API to fetch netblocks and performs HTTP requests to check for open ports. Results are logged to a file.

License

Notifications You must be signed in to change notification settings

mochammadrafi/as-ip-scanner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

AS Number IP Scanner

This repository contains a Python script that retrieves all IP addresses in the netblocks of a given AS number and scans the web services running on those IP addresses. It utilizes the RIPE Stat API to fetch the announced prefixes for the specified AS number and then generates a list of IP addresses within those netblocks.

The script makes use of the requests library to send HTTP requests to each IP address and port combination, checking if a web service is running. Additionally, it extracts the domain name associated with each IP address using reverse DNS lookup.

Usage

  1. Run the script using the following command: python3 scanner.py NUMBER, Replace NUMBER with the desired AS number.
  2. The script will retrieve all IP addresses in the netblocks of the specified AS number and save them to ips.txt.
  3. It will then scan the web services running on those IP addresses and print the results to the console.
  4. Any open ports will be logged to open_ports.txt along with the associated domain names.

Dependencies

  • Python 3.x
  • requests library

License

This project is licensed under the MIT License.

About

AS Number IP Scanner is a Python script that retrieves IP addresses in the netblocks of a specified AS number and scans web services running on those IP addresses. It uses the RIPE Stat API to fetch netblocks and performs HTTP requests to check for open ports. Results are logged to a file.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages