2022-07-16 15:38:39 +08:00
|
|
|

|
2022-03-07 12:10:41 +08:00
|
|
|
|
2022-07-16 15:38:39 +08:00
|
|
|
# :rooster:Tutorial
|
2022-03-07 12:10:41 +08:00
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
git clone https://github.com/UzJu/Cloud-Bucket-Leak-Detection-Tools.git
|
2022-07-16 15:38:39 +08:00
|
|
|
cd Cloud-Bucket-Leak-Detection-Tools/
|
|
|
|
|
pip3 install -r requirements.txt
|
2022-03-07 12:10:41 +08:00
|
|
|
python3 main.py -h
|
|
|
|
|
```
|
|
|
|
|
|
2022-07-16 15:38:39 +08:00
|
|
|

|
2022-03-07 12:10:41 +08:00
|
|
|
|
2022-07-16 15:38:39 +08:00
|
|
|
You need to configure your corresponding cloud vendor AK in the `config/conf.py` file before using it.
|
2022-03-07 12:10:41 +08:00
|
|
|
|
2022-07-16 15:38:39 +08:00
|
|
|

|
2022-03-07 12:10:41 +08:00
|
|
|
|
2022-07-16 15:38:39 +08:00
|
|
|
## 1、Ariyun storage bucket
|
2022-03-07 12:10:41 +08:00
|
|
|
|
2022-07-16 15:38:39 +08:00
|
|
|
### 1.1, single storage bucket detection
|
2022-05-29 14:07:45 +08:00
|
|
|
|
2022-07-16 15:38:39 +08:00
|
|
|
```bash
|
|
|
|
|
python3 main.py -aliyun [BucketURL]
|
|
|
|
|
```
|
2022-03-07 12:10:41 +08:00
|
|
|
|
2022-07-16 15:38:39 +08:00
|
|
|

|
2022-03-07 12:10:41 +08:00
|
|
|
|
2022-07-16 15:38:39 +08:00
|
|
|
### 1.2. Automatic bucket hijacking
|
2022-05-29 14:07:45 +08:00
|
|
|
|
2022-07-16 15:38:39 +08:00
|
|
|
Automatically hijack a bucket when it is detected as not existing
|
2022-05-29 14:07:45 +08:00
|
|
|
|
2022-07-16 15:38:39 +08:00
|
|
|

|
2022-03-07 12:10:41 +08:00
|
|
|
|
2022-07-16 15:38:39 +08:00
|
|
|
### 1.3. Bulk bucket address detection
|
2022-03-07 12:10:41 +08:00
|
|
|
|
|
|
|
|
```bash
|
2022-07-16 15:38:39 +08:00
|
|
|
# fofa syntax
|
2022-03-07 12:10:41 +08:00
|
|
|
domain="aliyuncs.com"
|
2024-07-31 23:59:48 +08:00
|
|
|
domain="aliyuncs.com" && server="AliyunOSS"
|
2022-03-07 12:10:41 +08:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
```bash
|
2022-07-16 15:38:39 +08:00
|
|
|
# Use -faliyun
|
|
|
|
|
python3 main.py -faliyun url.txt
|
2022-03-07 12:10:41 +08:00
|
|
|
```
|
|
|
|
|
|
2022-07-16 15:38:39 +08:00
|
|
|

|
2022-03-07 23:23:55 +08:00
|
|
|
|
2022-07-16 15:38:39 +08:00
|
|
|
## 2. Tencent cloud storage bucket
|
2022-05-29 14:07:45 +08:00
|
|
|
|
|
|
|
|
```bash
|
2022-07-16 15:38:39 +08:00
|
|
|
python3 main.py -tcloud [storage bucket address]
|
2022-05-29 14:07:45 +08:00
|
|
|
```
|
|
|
|
|
|
2022-07-16 15:38:39 +08:00
|
|
|

|
2022-05-29 14:07:45 +08:00
|
|
|
|
2022-07-16 15:38:39 +08:00
|
|
|
## 3. Huawei cloud storage bucket
|
2022-05-29 14:07:45 +08:00
|
|
|
|
2022-07-16 15:38:39 +08:00
|
|
|
```bash
|
|
|
|
|
python3 main.py -hcloud [storage bucket address]
|
|
|
|
|
```
|
2022-03-07 12:10:41 +08:00
|
|
|
|
2022-07-16 15:38:39 +08:00
|
|
|

|
2022-03-07 12:10:41 +08:00
|
|
|
|
2022-07-16 15:38:39 +08:00
|
|
|
## 4. AWS storage bucket
|
2022-03-07 12:10:41 +08:00
|
|
|
|
2022-07-16 15:38:39 +08:00
|
|
|
```bash
|
|
|
|
|
python3 main.py -aws [storage bucket address]
|
|
|
|
|
```
|
2022-03-07 12:10:41 +08:00
|
|
|
|
2022-07-16 15:38:39 +08:00
|
|
|
images/image-20220716142431142.png)
|
2022-03-07 23:23:55 +08:00
|
|
|
|
2022-07-16 15:38:39 +08:00
|
|
|
## 5. Scan results saving
|
2022-05-29 14:07:45 +08:00
|
|
|
|
2022-07-16 15:38:39 +08:00
|
|
|
The scan results will be stored in the `results` directory
|
2022-05-29 14:07:45 +08:00
|
|
|
|
2022-07-16 15:38:39 +08:00
|
|
|

|
2022-05-29 14:07:45 +08:00
|
|
|
|
2022-07-16 15:38:39 +08:00
|
|
|

|
2022-03-07 12:10:41 +08:00
|
|
|
|
2022-07-16 15:38:39 +08:00
|
|
|
# :cop:0xFFFFFFFF Disclaimer
|
2022-03-07 12:10:41 +08:00
|
|
|
|
2022-07-16 15:38:39 +08:00
|
|
|
1、This tool is only for academic exchange, it is forbidden to use the tool to do illegal things
|
2022-03-07 12:10:41 +08:00
|
|
|
|
|
|
|
|
2, just writing for fun
|
2022-05-29 14:07:45 +08:00
|
|
|
|
|
|
|
|
3、My WeChat
|
|
|
|
|
|
|
|
|
|
> If you have a better suggestion or make a friend
|
|
|
|
|
|
2022-07-16 15:38:39 +08:00
|
|
|
<img src="images/157070417-dbb7886f-1bb8-412f-a30b-0f85bc8ffa10.png" alt="image" style="zoom:33%;" />
|
|
|
|
|
|
|
|
|
|
4、Blog: UzzJu.com
|
|
|
|
|
5、Public
|
|
|
|
|
|
|
|
|
|

|
2022-05-29 14:07:45 +08:00
|
|
|
|
|
|
|
|
# Curve chart
|
|
|
|
|
|
2022-07-16 15:38:39 +08:00
|
|
|
[](https://starchart.cc/UzJu/Cloud-Bucket-Leak-Detection-Tools)
|