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
3 changed files with 23 additions and 6 deletions
|
@ -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
|
||||
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
|
||||
|
||||
path=`pwd`
|
||||
Versi=1.9.2
|
||||
codename=Whistle
|
||||
OS=`uname` #
|
||||
distro="$(awk -F '=' '/^ID=/ {print $2}' /etc/os-release 2>&-)"
|
||||
disrov="$(awk -F '=' '/^VERSION_ID=/ {print $2}' /etc/os-release 2>&-)"
|
||||
distro=$dist0
|
||||
disrov=$rlname
|
||||
SERVICE=service;
|
||||
apkembed='tools/apkembed.rb' # exec script path
|
||||
pwned='python tools/pw_exec.py'
|
||||
|
@ -133,7 +149,7 @@ cat << !
|
|||
resize -s 33 84 > /dev/null
|
||||
clear
|
||||
|
||||
#cek config
|
||||
#check config
|
||||
|
||||
if [ -f "$file" ]
|
||||
then
|
||||
|
@ -190,6 +206,7 @@ if [ $(id -u) != "0" ]; then
|
|||
sleep 2
|
||||
echo [✔]::[Check User]: $USER ;
|
||||
echo [✔]::[Distro]: $distro ;
|
||||
echo [✔]::[Release]: $rlname ;
|
||||
sleep 1
|
||||
echo [x]::[not root]: you need to be [root] to run this script.;
|
||||
echo ""
|
||||
|
@ -202,6 +219,7 @@ else
|
|||
echo [!]::[Check Dependencies]: ;
|
||||
sleep 1
|
||||
echo [✔]::[Distro]: $distro ;
|
||||
echo [✔]::[Release]: $rlname ;
|
||||
echo [✔]::[Check User]: $USER ;
|
||||
|
||||
|
||||
|
|
4
setup.sh
4
setup.sh
|
@ -197,14 +197,14 @@ fi
|
|||
which ruby > /dev/null 2>&1
|
||||
if [ "$?" -eq "0" ]; then
|
||||
echo -e $green "[ ✔ ] Ruby..............................[ found ]"
|
||||
which upx >> $log 2>&1
|
||||
which ruby >> $log 2>&1
|
||||
sleep 2
|
||||
else
|
||||
echo -e $red "[ X ] Ruby -> not found "
|
||||
echo -e $yellow "[ ! ] Installing Ruby "
|
||||
xterm -T "☣ INSTALL Ruby ☣" -geometry 100x30 -e "sudo apt-get install ruby -y"
|
||||
echo -e $green "[ ✔ ] Done installing ...."
|
||||
which upx >> $log 2>&1
|
||||
which ruby >> $log 2>&1
|
||||
sleep 2
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue