🟣 Reyna v4
Path:
/
/
home
/
u364926359
Full Path (server): /home/u364926359
Create Folder
Create File
Upload File
Create WP Admin
📁 .cagefs
Open
[D]
[R]
📁 .cl.selector
Open
[D]
[R]
📁 .filebrowser
Open
[D]
[R]
📁 .logs
Open
[D]
[R]
📁 .ssh
Open
[D]
[R]
📁 .wp-cli
Open
[D]
[R]
📁 backup-12.15.2022_08-57-59_thinkxte
Open
[D]
[R]
📄 backup-12.15.2022_08-57-59_thinkxte.tar.gz
[E]
[D]
[R]
📁 domains
Open
[D]
[R]
📄 download.sh
[E]
[D]
[R]
📄 public_html
[E]
[D]
[R]
Editing: download.sh
!/bin/bash #!/usr/bin/php RED='\033[0;31m' BRED='\033[1;31m' YELLOW='\033[0;33m' BYELLOW='\033[1;33m' GREEN='\033[0;32m' BGREEN='\033[1;32m' BWHITE='\033[1;37m' PURPLE='\033[0;35m' CHECK="${BGREEN}\xE2\x9C\x85${NC}" CROSS="${BRED}\xE2\x9D\x8C${NC}" WAVE="\xF0\x9F\x91\x8B" WRENCH="\xF0\x9F\x9B\xA0" EXCLAMATION="\xE2\x9D\x97" NC='\033[0m' DATE=$(date +%F"_"%H:%M:%S); clear echo -e "######### FILE DOWNLOAD TOOL by sugast ########\n" function main { echo -e "\n${BWHITE}Hello ${WAVE} This script is capable to download file from:${NC}" echo -e "1)${BGREEN} Gdrive${NC} - download the file from Google Drive. ${BWHITE}${NC}" echo -e "2)${BGREEN} DropBox${NC} - download the file from Dropbox. ${BWHITE}${NC}" echo -e "3)${BGREEN} Wetransfer${NC} - download the file from Wetransfer. ${BWHITE}${NC}" echo -e "4)${BGREEN} FTP${NC} - download the file from FTP. ${BWHITE}${NC}" echo -e "5)${BGREEN} Hostfile${NC} - download the file from hostfile. ${BWHITE}${NC}" echo -e "0)${BRED} Exit${NC} - exits the script." while true; do read -r SELECT case "$SELECT" in 1) SELECT=func_gdrive;; 2) SELECT=func_dropbox;; 3) SELECT=func_wetransfer;; 4) SELECT=func_ftp;; 5) SELECT=func_hostfile;; 0) SELECT=exit;; *) echo -e "${BRED}Invalid selection, try again.${NC}"; continue esac break done } function func_dropbox { #!/bin/bash/ echo -e "\e[36m--##### Dropbox file download" pwd echo -e "\e[0m" echo -e "--Please insert the following details: " sleep 1 echo -e "\e[91m--insert Dropbox file link:" echo -e "\e[0m" read Dlink sleep 1 echo -e "\e[91m--insert Dropbox file name:" echo -e "\e[0m" read Dname wget -c ${Dlink}?dl=1 -O $Dname return 1 } function func_wetransfer { #!/bin/bash/ echo -e "\e[36m--##### Wetransfer file download" pwd echo -e "\e[0m" echo -e "--Please insert the following details: " sleep 1 echo -e "\e[91m--insert wetransfer file link:" echo -e "\e[0m" read Wlink sleep 1 echo -e "\e[91m--insert wetransfer file name:" echo -e "\e[0m" read Wname wget --no-check-certificate "${Wlink}" -O $Wname return 1 } function func_ftp { #!/bin/bash/ #!/bin/bash/ echo -e "\e[36m--##### FTP file download:" pwd echo -e "\e[0m" echo -e "--Please insert the following details: " sleep 1 echo -e "\e[91m--insert ftp IP/HOST:" echo -e "\e[0m" read FTPhost sleep 1 echo -e "\e[91m--insert ftp username:" echo -e "\e[0m" read FTPuser echo -e "\e[91m--insert ftp password:" echo -e "\e[0m" read FTPpass echo -e "\e[91m--insert ftp file name:" echo -e "\e[0m" read FTPfile wget --continue --tries=10 --timeout=10 ftp://"$FTPhost"/"$FTPfile" --ftp-user="${FTPuser}" --ftp-password="${FTPpass}" return 1 } function func_gdrive { #!/bin/bash/ echo -e "\e[36m--##### SCRIPT STARTING AT:" pwd echo -e "\e[0m" echo -e "--Please insert the following details: " sleep 1 echo -e "\e[91m--insert google drive file ID:" echo -e "\e[0m" read Gid sleep 1 echo -e "\e[91m--insert google drive file name:" echo -e "\e[0m" read Gname wget --load-cookies /tmp/cookies.txt "https://docs.google.com/uc?export=download&confirm=$(wget --quiet --save-cookies /tmp/cookies.txt --keep-session-cookies --no-check-certificate 'https://docs.google.com/uc?export=download&id='${Gid} -O- | sed -rn 's/.*confirm=([0-9A-Za-z_]+).*/\1\n/p')&id=${Gid}" -O ${Gname} && rm -rf /tmp/cookies.txt # wget --continue --tries=10 --timeout=10 ftp://"$Gid"/"$CPfile" --ftp-user="${CPuser}" --ftp-password="${CPpass}" return 1 } function func_hostfile { #!/bin/bash/ #!/bin/bash/ echo -e "\e[36m--##### Hostfile download :" pwd echo -e "\e[0m" echo -e "--Please insert the following details: " sleep 1 echo -e "\e[91m--insert the previus IP:" echo -e "\e[0m" sleep 1 read HFip echo -e "\e[91m--insert domain name:" echo -e "\e[0m" read HFdomain echo -e "\e[91m--insert backup file URL:" echo -e "\e[0m" sleep 1 read HFbackurl echo -e "\e[91m--insert backup file name:" echo -e "\e[0m" read HFfilename echo -e "\e[32m--Details have been RECORDED... starting to copy remote files... " echo -e "\e[0m" sleep 2 while [ 1 ]; do curl -L -o "${HFfilename}" "${HFbackurl}" --resolve "${HFdomain}":80:"${Previp}" --resolve "${HFdomain}":443:"${HFip}" --resolve www."${HFdomain}":80:"${HFip}" --resolve www."${HFdomain}":443:"${HFip}" if [ $? = 0 ]; then echo -e "Download completed!" break; fi; # check return value, break if successful (0) sleep 1s; done; return 1 } main while test $? -eq 0; do $SELECT done rm -- "$0"
Save