项目作者: abuvanth

项目描述 :
S3 bucket finder from html,js and bucket misconfiguration testing tool
高级语言: Python
项目地址: git://github.com/abuvanth/kicks3.git
创建时间: 2019-04-18T16:00:26Z
项目社区:https://github.com/abuvanth/kicks3

开源协议:GNU Affero General Public License v3.0

下载


kicks3

S3 bucket finder from html,js and bucket misconfiguration testing tool.

Currently this tool check five testcases

  1. Object listing for Unauthenticated users

  2. Object listing for Authenticated users

  3. Public writable for all aws users

  4. Bucket Acl public read

  5. Put Bucket Policy

pip install awscli

aws configure

get your aws keys from aws console

Installation

pip install kick-s3

OR

git clone https://github.com/abuvanth/kicks3.git

cd kicks3

python setup.py install

Usage

demo

asciicast

single target

kicks3.py -u http://target

this will looking for s3 buckets in html and javascript files.

Single Bucket

kicks3.py -b bucketname

test single bucket name

Bucket list

kicks3.py -bl bucketnamelist.txt

list of websites

kicks3.py -u http://target -l sitelist.txt

authenticated page

kicks3.py -u http://target -c ‘cookievalues’

subdomains

kicks3.py -u target.com -s 1

Use kicks3 as a module

  1. import kicks3
  2. bucketurllist=kicks3.finds3('target.com')
  3. bucketlist=kicks3.get_bucket_name(bucketurllist)
  4. scan_result=kicks3.scan_s3(bucketlist)
  5. for result in scan_result:
  6. print(result)#bucketname(testname),listable_for_unauth_users(true or false),listable_auth_users(true or false),writable(true or false)

buckets from text file

  1. import kicks3
  2. blist=open('s3.buckets.txt','r').readlines()
  3. result=kicks3.scan_s3(blist)

Scan for subdomains

  1. bucketurllist=kicks3.finds3(['target.com'],sub=1,cookies='valueofyoursitescookie') #cookies for authenticated pages,
  2. bucketlist=kicks3.get_bucket_name(bucketurllist)
  3. scan_result=kicks3.scan_s3(bucketlist)
  4. for result in scan_result:
  5. print(result)#bucketname(testname),listable_for_unauth_users(true or false),listable_auth_users(true or false),writable(true or false)

results are stored in s3out.txt file.

Note: sub and cookies are optional parameters of finds3 function