| Server IP : 159.253.20.91 / Your IP : 216.73.216.111 Web Server : nginx/1.20.2 System : Linux se38c9e53.fastvps-server.com 5.10.0-13-amd64 #1 SMP Debian 5.10.106-1 (2022-03-17) x86_64 User : pr11_ru_usr ( 1041) PHP Version : 8.1.29 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /etc/profile.d/ |
Upload File : |
#!/bin/bash
if [ `whoami` != 'root' ]
then
return
fi
source /etc/os-release
read -a X <<< `stty size`
for i in $(seq 1 ${X[0]}); do echo '' ; done
tput cuu ${X[0]}
printf '#%.0s' {1..75}; echo
echo -e "\t\t\tWelcome!\n"
echo -e "This server is captured by $(tput setaf 6)FASTPANEL$(tput sgr0) control panel.\n"
echo -e "Operating System:\t$(tput setaf 6)$PRETTY_NAME$(tput sgr0)"
printf '=%.0s' {1..75}; echo
echo -e "IPv4:"
echo -e "$(tput setaf 6)"
ip a show scope global |grep -oP '(?<=inet )(\d{1,3}\.){3}\d{1,3}'
echo -e "$(tput sgr0)"
printf '=%.0s' {1..75}; echo
if [ `ip a show scope global |grep -c inet6` != "0" ]; then
echo -e "IPv6:"
echo -e "$(tput setaf 6)"
ip a show scope global |grep -Po '(?<=inet6 ).+(?=/\d{1,3})'
echo -e "$(tput sgr0)"
printf '=%.0s' {1..75}; echo
fi
echo -e "By default configuration files can be found in the following directories:"
echo
echo -e "$(tput setaf 6)NGINX:$(tput sgr0)\t\t/etc/nginx/fastpanel2-available"
echo -e "$(tput setaf 6)APACHE2:$(tput sgr0)\t/etc/apache2/fastpanel2-available\n"
echo -e "$(tput setaf 1)Please do not edit configuration files manually.$(tput sgr0)"
echo -e "$(tput setaf 1)You may do that in your control panel.$(tput sgr0)"
printf '=%.0s' {1..75}; echo
echo
uptime
printf '#%.0s' {1..75}; echo