403Webshell
Server IP : 68.178.164.50  /  Your IP : 216.73.216.142
Web Server : Apache
System : Linux 50.164.178.68.host.secureserver.net 5.14.0-611.26.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Jan 29 05:24:47 EST 2026 x86_64
User : rathinambschool ( 1053)
PHP Version : 8.2.30
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/cockpit/issue/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/cockpit/issue/update-issue
#!/usr/bin/sh -e

# syntax: update-issue [port [hostname [ipaddr [protocol]]]]
# each argument can be given as the empty string to use the default

# port number from cmdline, then systemctl file, then 9090
# take the last Listen line; this will be the user-specified one
port=${1:-$(systemctl show --property Listen cockpit.socket |
              sed -E '$!d;$s/.*[^0-9]([0-9]+).*/\1/;')}
port=${port:-9090}

# hostname from cmdline, then `hostname -f`
hostname=${2:-$(hostname -f || hostname)}

# ip addr from cmdline, then default route source addr
ip=${3:-$(ip -o route get 255.0 2>/dev/null | sed -e 's/.*src \([^ ]*\) .*/\1/')}

# protocol from cmdline, then https
protocol=${4:-https}

hostname_url="${protocol}://${hostname}:${port}/"
ip_url="${ip:+ or ${protocol}://${ip}:${port}/}"

printf 'Web console: %s%s\n\n' "${hostname_url}" "${ip_url}"  > /run/cockpit/active.issue

Youez - 2016 - github.com/yon3zu
LinuXploit