Skip to content

Python application to port scan EC2 instances in your AWS inventory

License

Notifications You must be signed in to change notification settings

dbadapt/aws_scanner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AWS Instance Port Scanner

This utility will scan the ports on your AWS instances and report which ports are open to the public.

Installation

Python 3 is required

You will need to ensure you have setup the standard ~/.aws/credentials and ~/.aws/config per the instructions here.

You will also need to install the boto3 python module. This module is included in many distribution repositories or can be installed using pip:

    $ sudo pip3 install boto3

Usage

usage: aws_scanner.py [-h] [-r [REGION_PREFIXES [REGION_PREFIXES ...]]]
                      [-s START_PORT] [-e END_PORT] [-j JOBS] [-t TIMEOUT]

Scan AWS instances for open ports

optional arguments:
  -h, --help            show this help message and exit
  -r [REGION_PREFIXES [REGION_PREFIXES ...]], --region-prefixes [REGION_PREFIXES [REGION_PREFIXES ...]]
                        A list of region prefixes to limit the search to
  -s START_PORT, --start-port START_PORT
                        Starting port to scan (default: 0)
  -e END_PORT, --end-port END_PORT
                        Ending port to scan (default: 1023)
  -j JOBS, --jobs JOBS  Number of concurrent port scanning jobs (default: 1)
  -t TIMEOUT, --timeout TIMEOUT
                        Timeout in seconds waiting for port to answer
                        (default: 5)

Example

    $ ./aws_scanner.py --region-prefix=us --start-port=80 --end-port=80
    --jobs=1 --timeout=5

About

Python application to port scan EC2 instances in your AWS inventory

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages