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

Commit

Permalink
invalid domain handling
Browse files Browse the repository at this point in the history
  • Loading branch information
abuvanth committed Aug 31, 2019
1 parent b8449a0 commit 2f4b48e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
Binary file modified .DS_Store
Binary file not shown.
12 changes: 8 additions & 4 deletions kicks3/kicks3.py
Expand Up @@ -131,6 +131,7 @@ def finds3(sitelist,cookies='',sub=0):
pass
return bucket
if __name__=='__main__':
results=[]
ap = argparse.ArgumentParser()
ap.add_argument("-u", "--url", required=False,help="Please enter target Url start with http or https")
ap.add_argument("-b", "--bucket", required=False,help="Please enter Bucketname")
Expand All @@ -152,11 +153,14 @@ def finds3(sitelist,cookies='',sub=0):
sitelist=sitelist+open(args['list'],'r').readlines()
if args['url']:
s3urls=finds3(sitelist,cookies,sub=args['subdomain'])
if s3urls[0]!='Bucket not found':
bucketname=get_bucket_name(s3urls)
results=scan_s3(bucketname,silent=True)
if len(s3urls)==0:
if s3urls[0]!='Bucket not found':
bucketname=get_bucket_name(s3urls)
results=scan_s3(bucketname,silent=True)
else:
print(results[0])
else:
print(results[0])
print("Check your domain")
if args['bucket']:
results=scan_s3(args['bucket'],silent=True)
if args['bucketlist']:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -12,7 +12,7 @@
install_requires = f.read().splitlines()
setuptools.setup(
name="kick-s3",
version="2.0.2",
version="2.0.4",
author="Syed Abuthahir",
author_email="developerabu@gmail.com",
description="Recon tool",
Expand Down

0 comments on commit 2f4b48e

Please sign in to comment.