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
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
IPV6and only focus on theIPV4.
For vps server like :
- AWS
- Huawei Cloud
- Aliyun
- Tencent Cloud
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/
https://networksdb.io/ip-addresses-of/tencent-cloud-computing-beijing-co-ltd
https://networksdb.io/ip-addresses-of/tencent-cloud-computing-beijing-co-ltd
https://networksdb.io/ip-addresses-of/huawei-cloud
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 |
- PDM(recommended)
pip install pdm # if you have not installed pdm
pdm installexport PYTHONPATH=$PWD
pdm run python active_probing/main.pybash format.shplease refer: