Skip to content

Commit 1445d0b

Browse files
committed
feat: v0.0.3(BETA) 重构多个功能与模块
一、重构模块 1、阿里云OSS 2、Amazone S3 3、main.py 4、目录结构 5、logger输出样式 6、Banner输出样式 7、命令行参数 二、新增 1、multiprocessing的加入,帮助快速批量扫描存储桶地址 三、不支持 1、暂不支持传入域名,无法自动判断Cname
1 parent d793b20 commit 1445d0b

22 files changed

+507
-703
lines changed

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
2+
*.xml
3+
*.iml
4+
*.pyc
5+
results/
6+
logs/
7+
.idea/
8+
url.txt

README.md

Lines changed: 20 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,18 @@
11
# :rooster:0x00 前言
22

3-
![image-20220529132925098](images/image-20220529132925098.png)
4-
5-
> 2022年3月7日
6-
>
7-
> 我觉得文档写的还不是很清楚,等有空更新一下文档完整的使用教程
8-
> 2022年3月8日
9-
>
10-
> 2022年5月29日
11-
>
12-
> 1、更新了aws存储桶检测功能
13-
>
14-
> 2、感觉更新有些慢了,这段时间比较忙,其实本地的新版本写好了,一直没有push
3+
![image-20220703203021188](images/image-20220703203021188.png)
154

165
**使用教程**: [使用教程](使用教程.md)
176

187
**语言/Language**
198

209
English README: [English](README.en.md)
2110

22-
想写个存储桶的利用,先给自己画个饼
23-
24-
+ 阿里云(Aliyun Cloud Oss)
25-
+ 腾讯云(Tencent Cloud COS)
26-
+ 华为云 (HuaWei Cloud OBS)
27-
+ AWS (Amazon S3 Bucket)
28-
+ Azure (Azure Blob)
29-
+ GCP (Google Cloud Bucket)
30-
31-
工具名称我都没想好,相信大佬们看到项目名就知道...机翻王
32-
33-
如果觉得用的还行,可以提issue给工具起个名字?:sos:
34-
35-
:waning_crescent_moon:**画饼进度**
36-
37-
1、阿里云存储桶利用
38-
39-
不太会用Git,代码写的也烂,有BUG直接提Issue即可(好像我连issue可能都用不明白)
40-
41-
> 好在二爷给我推荐的GitHub Desktop 二爷YYDS
42-
43-
2、AWS存储桶利用
44-
4511
# :pill:0x01 依赖
4612

47-
+ pip3 install oss2
48-
+ pip3 install colorlog
49-
+ pip3 install argparse
50-
+ pip3 install boto3
13+
```bash
14+
pip3 install -r requirements.txt
15+
```
5116

5217
# :gun:0x02 使用方法
5318

@@ -62,15 +27,15 @@ python3 main.py -h
6227

6328
2、用来验证合法用户
6429

65-
![image-20220304184757595](images/UzJuMarkDownImageimage-20220304184757595.png)
30+
![image-20220703201835328](images/image-20220703201835328.png)
6631

6732
## 1、当存储桶Policy权限可获取时
6833

69-
![image-20220304185015693](images/UzJuMarkDownImageimage-20220304185015693.png)
34+
![image-20220703202049560](images/image-20220703202049560.png)
7035

7136
## 2、当存储桶不存在时(自动创建并劫持)
7237

73-
![image](images/156925718-9a3dc236-0ef6-4afa-8d26-a2946fe876b2.png)
38+
![image-20220703202339058](images/image-20220703202339058.png)
7439

7540
## 3、批量检测存储桶
7641

@@ -84,20 +49,15 @@ server="AliyunOSS"domain="aliyuncs.com" #不推荐该语法
8449
```
8550

8651
```bash
87-
python3 main.py -f aws/aliyun filepath
88-
89-
# 例如
90-
python3 main.py -f aws ./url.tx\\\\\\\``````````````````````````````````````````````````````````````````````````
52+
python3 main.py -faliyun url.txt
9153
```
9254

9355
随后等待即可,扫描结果会在results目录下,文件名为当天的日期
9456

95-
![image](images/156925744-3c012b86-6449-4cf1-a790-b2c1282f76bd.png)
57+
![image-20220703202518187](images/image-20220703202518187.png)
9658

97-
![image](images/156925758-36a8fcba-8bc8-4d1a-8863-d8110dbe0b71.png)
98-
99-
只会保存有权限操作的存储桶
100-
![image](images/156925766-15d415d3-d573-4b54-ab0f-5c79bc1966ad.png)
59+
随后会将结果保存至csv
60+
![image-20220703202635171](images/image-20220703202635171.png)
10161

10262
输入存储桶地址即可自动检测,功能如下
10363

@@ -109,7 +69,7 @@ python3 main.py -f aws ./url.tx\\\\\\\``````````````````````````````````````````
10969
+ 5、检测存储桶是否可上传Object
11070
+ 6、批量检测功能
11171

112-
## 4、域名检测功能
72+
## 4、域名检测功能(v0.3.0暂未支持)
11373

11474
很多存储桶都解析了域名,新增判断域名的CNAME,然后取CNAME来进行检测
11575

@@ -186,6 +146,14 @@ python3 main.py -aws xxxx
186146

187147
- 新增AWS存储桶扫描
188148

149+
**2022年7月3日**
150+
151+
- 重构项目
152+
- aliyunoss模块
153+
- aws模块
154+
- main模块
155+
- 扫描模块
156+
189157
# :cop:0xffffffff 免责声明
190158

191159
免责声明

config/BannerInfo.py

Lines changed: 0 additions & 189 deletions
This file was deleted.

config/__init__.py

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)