Skip to content

Repository files navigation

ActiveProbing

This project is for the active probing for a homework.

graph TD
    A[Start] --> B[1. Obtain IP ranges from cloud providers]
    B --> B1[AWS]
    B --> B2[Tencent Cloud]
    B --> B3[Alibaba Cloud]
    B --> B4[Huawei Cloud]
    
    B1 --> C[2. IP data preparation]
    B2 --> C
    B3 --> C
    B4 --> C
    
    C --> D[3. Multi-process port scanning]
    D --> D1[Use nmap to scan selected ports]
    D1 --> D2[Process multiple IPs in parallel]
    
    D2 --> E[4. Data collection and storage]
    E --> E1[Save results in JSON format]
    
    E1 --> F[5. Data analysis]
    F --> F1[Open port statistics]
    F --> F2[Service type analysis]
    F --> F3[Cloud provider comparison]
    
    F1 --> G[6. Visualization]
    F2 --> G
    F3 --> G
    G --> G1[Generate charts]
    
    G1 --> H[7. Results interpretation and summary]
    H --> I[Project end]
    
    style A fill:#f9f,stroke:#333,stroke-width:2px
    style I fill:#f9f,stroke:#333,stroke-width:2px
    style B fill:#bbf,stroke:#333,stroke-width:2px
    style D fill:#bfb,stroke:#333,stroke-width:2px
    style F fill:#fbf,stroke:#333,stroke-width:2px
    style G fill:#ff9,stroke:#333,stroke-width:2px
Loading

For this homework, we will use the active prob to analyze the the regular service and each port the ip address is using.

For this part, let's leave alone the IPV6 and only focus on the IPV4.

For vps server like :

  • AWS
  • Huawei Cloud
  • Aliyun
  • Tencent Cloud

IP range for each of the vps provider

1. AWS

For aws, it is simple, because the ip range is public.

https://ip-ranges.amazonaws.com/ip-ranges.json

PS: for the other three I use the (it is a paid web, so I can only part of the ips) https://networksdb.io/

2. Tencent Cloud

https://networksdb.io/ip-addresses-of/tencent-cloud-computing-beijing-co-ltd

3. Aliyun

https://networksdb.io/ip-addresses-of/tencent-cloud-computing-beijing-co-ltd

4. Huawei Cloud

https://networksdb.io/ip-addresses-of/huawei-cloud

IPS

I have extracted the free part of the ips, you can check it

Cloud Service Provider IP Count
Tencent Cloud 55,700
Alibaba Cloud 38,937
Amazon 37,959
Huawei Cloud 1,194

Installation

  • PDM(recommended)
pip install pdm # if you have not installed pdm
pdm install

Run scan

export PYTHONPATH=$PWD
pdm run python active_probing/main.py

Format the code

bash format.sh

To check the whole process

please refer:

About

This project is for the active probing for a homework.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages