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

Commit

Permalink
Bug fixes and improve detection
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Apr 21, 2019
1 parent cbadc92 commit 87b41f4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions kicks3/kicks3.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def remove_duplicate(x):
try:
html=requests.get(target,timeout=10,headers={'cookie':cookies}).content
regjs=r"(?<=src=['\"])[a-zA-Z0-9_\.\-\:\/]+\.js"
regs3=r"[a-zA-Z\-_0-9]+\.s3\.?(?:[a-zA-Z\-_0-9]+)?\.amazonaws\.com|(?<!.)s3\.?(?:[a-zA-Z\-_0-9]+)?\.amazonaws\.com\/[a-zA-Z\-_0-9.]+"
regs3=r"[a-zA-Z\-_0-9.]+\.s3\.?(?:[a-zA-Z\-_0-9]+)?\.amazonaws\.com|(?<!\.)s3\.?(?:[a-zA-Z\-_0-9]+)?\.amazonaws\.com\/[a-zA-Z\-_0-9.]+"
js=re.findall(regjs,html)
s3=re.findall(regs3,html)
bucket=bucket+s3
Expand All @@ -28,7 +28,11 @@ def remove_duplicate(x):
jsurl=i
else:
jsurl=target+'/'+i
jsfile=requests.get(jsurl,timeout=10,headers={'cookie':cookies}).content
try:
jsfile=requests.get(jsurl,timeout=10,headers={'cookie':cookies}).content
except Exception as y:
print(y)
pass
s3=re.findall(regs3,jsfile)
if s3:
bucket=bucket+s3
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

setuptools.setup(
name="kicks3",
version="0.0.8",
version="0.0.9",
author="Syed Abuthahir",
author_email="developerabu@gmail.com",
description="Recon tool",
Expand Down

0 comments on commit 87b41f4

Please sign in to comment.