-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathRAM.sh
129 lines (107 loc) Β· 3.97 KB
/
RAM.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
#!/bin/bash
# gihub.com/melihi
# Author : Melih Isbilen
# 02/11/2022
#consts
RED="\033[31m"
GREEN="\u001b[32;1m"
YELLOW="\u001b[33;1m"
RESET="\033[0;39m"
#global var
url=""
urlpath=""
total_url=0
inputfile=$1
targetsArray=()
trap ctrl_c 2
ctrl_c(){
printf "\n$RED Keyboard Interrupt detected, killing processes...\n $GREEN https://github.com/melihi $RESET"
pkill thread.sh
pkill thread.sh
exitf
}
parseurl(){
while IFS= read -r line
do
if [[ "$(echo $line | cut -c1-4)" == "http" ]]
then
targetsArray+=("$line")
total_url=${#targetsArray[@]}
fi
done < "$inputfile"
printf "$GREEN================= \n Total Url fetched : $YELLOW %s \n Total bypass method : 43" "$total_url"
ram_path
}
#check_resp(){
# if [ "$(echo $out | cut -c2-2)" -eq 2 ]
# then
# printf "$GREEN %.35s... $out $RESET\n" "$i"
# elif [ "$(echo $out | cut -c2-2)" -eq 3 ]
# then
# printf "$YELLOW %.35s... $out $RESET\n" "$i"
# else
# printf "$RED %.35s... $out $RESET\n" "$i"
# fi
#}
exitf(){
sleep 10
pid=$(pidof -x thread.sh)
if [ ${#pid} == "0" ]
then
printf "$GREEN Finished \n $RESET"
exit
else
printf "$GREEN Waiting threads ...\n $RESET"
exitf
fi
}
ram_path(){
printf "$YELLOW RAM bypass process started ... $RESET\n"
for i in "${targetsArray[@]}"
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5&JGJ~~!~!GP ^? !7 J&7~~~^!#?#PJ???PJ
:JPYJ?G?PG!777?GG. !Y: .: .: .?7 JBJ7!!!Y&!GJJJP5~
:?5PPGG?7??5##! JG7 ?: J. ~PP ^B&PJ7775GPP5J^
:!YJY5PGGJ: ~7~!.Y ?^~7~? .7PGP55JY7^
.::::. :? ^Y~?JJ^.7Y?!?7 ~! .::::.
.P:^7~7JG#&#&GY77~! P^
~?JY :: JP. .^ !P7!
:JY!^^^7J^^:^??~
~P7!!!!!~!Y?
:!!!!!!!!^
$RED Author : Melih Isbilen \n github.com/melihi 2022 $RESET \n Input File : %s
""" "$inputfile"
}
if [ ! $# -ge 1 ]
then
printf "$RED github.com/melihi \n$YELLOW Usage : ./RAM url_list.txt outputfile.txt $RESET \n"
exit
else
banner
parseurl
fi