Skip to content
This repository was archived by the owner on Jun 12, 2023. It is now read-only.

Commit b8449a0

Browse files
committed
Implement Bucketnamelist
1 parent b54ecd5 commit b8449a0

File tree

4 files changed

+36
-13
lines changed

4 files changed

+36
-13
lines changed

.DS_Store

0 Bytes
Binary file not shown.

README.md

Lines changed: 28 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,23 @@
11
# kicks3
2-
S3 bucket finder from html,js and bucket misconfiguration testing tool
2+
3+
S3 bucket finder from html,js and bucket misconfiguration testing tool.
4+
5+
Currently this tool check three testcases
6+
7+
1. Object listing for Unauthenticated users
8+
9+
2. Object listing for Authenticated users
10+
11+
3. Public writable for all aws users
312

413
pip install awscli
514

615
aws configure
716

17+
### get your aws keys from aws console
818

919
# Installation
1020

11-
1221
pip install kick-s3
1322

1423

@@ -18,28 +27,37 @@ git clone https://github.com/abuvanth/kicks3.git
1827

1928
cd kicks3
2029

21-
pip install -r requirements.txt
30+
python setup.py install
2231

2332
## Usage
2433

2534
# single target
2635

27-
python kicks3.py -u http://target
36+
kicks3.py -u http://target
37+
38+
this will looking for s3 buckets in html and javascript files.
2839

29-
# list of target
40+
# Single Bucket
3041

31-
python kicks3.py -u http://target -l sitelist.txt
42+
kicks3.py -b bucketname
43+
44+
test single bucket name
3245

33-
# authenticated page
46+
# Bucket list
3447

48+
kicks3.py -bl bucketnamelist.txt
3549

36-
python kicks3.py -u http://target -c 'cookievalues'
50+
# list of websites
3751

52+
kicks3.py -u http://target -l sitelist.txt
53+
54+
# authenticated page
3855

56+
kicks3.py -u http://target -c 'cookievalues'
3957

4058
# subdomains
4159

42-
python kicks3.py -u target.com -s 1
60+
kicks3.py -u target.com -s 1
4361

4462

4563
# Use kicks3 as a module
@@ -55,7 +73,7 @@ for result in scan_result:
5573
print(result)#bucketname(testname),listable_for_unauth_users(true or false),listable_auth_users(true or false),writable(true or false)
5674
```
5775

58-
# buckets from textfile
76+
# buckets from text file
5977

6078
```
6179
import kicks3

kicks3/kicks3.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,12 +134,13 @@ def finds3(sitelist,cookies='',sub=0):
134134
ap = argparse.ArgumentParser()
135135
ap.add_argument("-u", "--url", required=False,help="Please enter target Url start with http or https")
136136
ap.add_argument("-b", "--bucket", required=False,help="Please enter Bucketname")
137+
ap.add_argument("-bl", "--bucketlist", required=False,help="Bucketname List")
137138
ap.add_argument("-c", "--cookie", required=False,help="Paste ur cookie values for authentication purpose")
138139
ap.add_argument("-l", "--list", required=False,help="list of sites for testing Eg. sitelist.txt")
139140
ap.add_argument("-s", "--subdomain", required=False,help=" True or False")
140141
args = vars(ap.parse_args())
141-
if args['url']==None and args['bucket']==None:
142-
print('please give input like bucketname or url')
142+
if args['url']==None and args['bucket']==None and args['bucketlist']==None:
143+
print('please give input like -b bucketname or -u url or -bl bucketnamelist.txt')
143144
exit()
144145
sitelist=[]
145146
cookies=''
@@ -158,6 +159,10 @@ def finds3(sitelist,cookies='',sub=0):
158159
print(results[0])
159160
if args['bucket']:
160161
results=scan_s3(args['bucket'],silent=True)
162+
if args['bucketlist']:
163+
bucket_list=open(args['bucketlist'],'r').readlines()
164+
results=scan_s3(bucket_list,silent=True)
165+
161166
for i in results:
162167
print("Bucket name: "+i[0])
163168
if i[1]:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
install_requires = f.read().splitlines()
1313
setuptools.setup(
1414
name="kick-s3",
15-
version="2.0.1",
15+
version="2.0.2",
1616
author="Syed Abuthahir",
1717
author_email="[email protected]",
1818
description="Recon tool",

0 commit comments

Comments
 (0)