mirror of
https://github.com/Screetsec/TheFatRat.git
synced 2023-12-14 02:02:58 +01:00
fixes
This commit is contained in:
parent
5689a4f70b
commit
a06173902c
|
@ -1 +0,0 @@
|
||||||
backdoor bactory working folder
|
|
24
fatrat
Executable file → Normal file
24
fatrat
Executable file → Normal file
|
@ -27,14 +27,30 @@ BlueF='\e[1;34m' #Biru
|
||||||
RESET="\033[00m" #normal
|
RESET="\033[00m" #normal
|
||||||
orange='\e[38;5;166m'
|
orange='\e[38;5;166m'
|
||||||
|
|
||||||
|
#Accurate method to detect user Distro
|
||||||
|
lnx="Linux"
|
||||||
|
lsb_release -i > temp/distro.tmp
|
||||||
|
lsb_release -c > temp/codename.tmp
|
||||||
|
rlname=`awk '{print $2}' temp/codename.tmp`
|
||||||
|
dist=`awk '{print $3}' temp/distro.tmp`
|
||||||
|
dist1=`awk '{print $4}' temp/distro.tmp`
|
||||||
|
rm -f temp/codename.tmp >/dev/null
|
||||||
|
rm -f temp/distro.tmp >/dev/null
|
||||||
|
if [ "$dist" == "$lnx" ];
|
||||||
|
then
|
||||||
|
dist0=$dist1
|
||||||
|
else
|
||||||
|
dist0=$dist
|
||||||
|
fi
|
||||||
|
|
||||||
#SAMARAN TAMPAN
|
#SAMARAN TAMPAN
|
||||||
|
|
||||||
path=`pwd`
|
path=`pwd`
|
||||||
Versi=1.9.2
|
Versi=1.9.2
|
||||||
codename=Whistle
|
codename=Whistle
|
||||||
OS=`uname` #
|
OS=`uname` #
|
||||||
distro="$(awk -F '=' '/^ID=/ {print $2}' /etc/os-release 2>&-)"
|
distro=$dist0
|
||||||
disrov="$(awk -F '=' '/^VERSION_ID=/ {print $2}' /etc/os-release 2>&-)"
|
disrov=$rlname
|
||||||
SERVICE=service;
|
SERVICE=service;
|
||||||
apkembed='tools/apkembed.rb' # exec script path
|
apkembed='tools/apkembed.rb' # exec script path
|
||||||
pwned='python tools/pw_exec.py'
|
pwned='python tools/pw_exec.py'
|
||||||
|
@ -133,7 +149,7 @@ cat << !
|
||||||
resize -s 33 84 > /dev/null
|
resize -s 33 84 > /dev/null
|
||||||
clear
|
clear
|
||||||
|
|
||||||
#cek config
|
#check config
|
||||||
|
|
||||||
if [ -f "$file" ]
|
if [ -f "$file" ]
|
||||||
then
|
then
|
||||||
|
@ -190,6 +206,7 @@ if [ $(id -u) != "0" ]; then
|
||||||
sleep 2
|
sleep 2
|
||||||
echo [✔]::[Check User]: $USER ;
|
echo [✔]::[Check User]: $USER ;
|
||||||
echo [✔]::[Distro]: $distro ;
|
echo [✔]::[Distro]: $distro ;
|
||||||
|
echo [✔]::[Release]: $rlname ;
|
||||||
sleep 1
|
sleep 1
|
||||||
echo [x]::[not root]: you need to be [root] to run this script.;
|
echo [x]::[not root]: you need to be [root] to run this script.;
|
||||||
echo ""
|
echo ""
|
||||||
|
@ -202,6 +219,7 @@ else
|
||||||
echo [!]::[Check Dependencies]: ;
|
echo [!]::[Check Dependencies]: ;
|
||||||
sleep 1
|
sleep 1
|
||||||
echo [✔]::[Distro]: $distro ;
|
echo [✔]::[Distro]: $distro ;
|
||||||
|
echo [✔]::[Release]: $rlname ;
|
||||||
echo [✔]::[Check User]: $USER ;
|
echo [✔]::[Check User]: $USER ;
|
||||||
|
|
||||||
|
|
||||||
|
|
4
setup.sh
4
setup.sh
|
@ -197,14 +197,14 @@ fi
|
||||||
which ruby > /dev/null 2>&1
|
which ruby > /dev/null 2>&1
|
||||||
if [ "$?" -eq "0" ]; then
|
if [ "$?" -eq "0" ]; then
|
||||||
echo -e $green "[ ✔ ] Ruby..............................[ found ]"
|
echo -e $green "[ ✔ ] Ruby..............................[ found ]"
|
||||||
which upx >> $log 2>&1
|
which ruby >> $log 2>&1
|
||||||
sleep 2
|
sleep 2
|
||||||
else
|
else
|
||||||
echo -e $red "[ X ] Ruby -> not found "
|
echo -e $red "[ X ] Ruby -> not found "
|
||||||
echo -e $yellow "[ ! ] Installing Ruby "
|
echo -e $yellow "[ ! ] Installing Ruby "
|
||||||
xterm -T "☣ INSTALL Ruby ☣" -geometry 100x30 -e "sudo apt-get install ruby -y"
|
xterm -T "☣ INSTALL Ruby ☣" -geometry 100x30 -e "sudo apt-get install ruby -y"
|
||||||
echo -e $green "[ ✔ ] Done installing ...."
|
echo -e $green "[ ✔ ] Done installing ...."
|
||||||
which upx >> $log 2>&1
|
which ruby >> $log 2>&1
|
||||||
sleep 2
|
sleep 2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue