403Webshell
Server IP : www.new.bangkokfinder.com  /  Your IP : 162.158.170.163
Web Server : nginx/1.20.1
System : Linux new 4.15.0-159-generic #167-Ubuntu SMP Tue Sep 21 08:55:05 UTC 2021 x86_64
User : bangkokfinder ( 1000)
PHP Version : 7.4.33
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,pcntl_unshare,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/src/ImageMagick-7.1.1-33/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/src/ImageMagick-7.1.1-33/winpath.sh
#!/bin/sh
# Copyright © 1999 ImageMagick Studio LLC
# Copyright (C) 2003 - 2008 GraphicsMagick Group
#
# This program is covered by multiple licenses, which are described in
# LICENSE. You should have received a copy of LICENSE with this
# package; otherwise see https://imagemagick.org/script/license.php.
#
# Convert the specified POSIX path to a Windows path under MinGW and Cygwin
# The optional second parameter specifies the level of backslash escaping
# to apply for each Windows backslash position in order to support varying
# levels of variable substitutions in scripts.
#
# Note that Cygwin includes the 'cygpath' utility, which already provides
# path translation capability.
#
# Written by Bob Friesenhahn, June 2002
#
arg="$1"
escapes=4
if test -n "$2"; then
  escapes="$2"
  if test $escapes -gt 3; then
    printf "$0: escape level must in range 0 - 3\n"
    exit 1
  fi
fi
result=''
length=0
max_length=0
mount | sed -e 's:\\:/:g'  | (
  IFS="\n"
  while read mount_entry
  do
    win_mount_path=`printf "$mount_entry\n" | sed -e 's: .*::g'`
    unix_mount_path=`printf "$mount_entry\n" | sed -e 's:.* on ::;s: type .*::'`
    temp=`printf "$arg" | sed -e "s!^$unix_mount_path!$win_mount_path!"`
    if test "$temp" != "$arg"
    then
      candidate="$temp"
      length=${#unix_mount_path}
      if test $length -gt $max_length
      then
        result=$candidate
        max_length=$length
      fi
    fi
  done
  if test -z "$result"
  then
    printf "$0: path \"$arg\" is not mounted\n"
    exit 1
  fi
  case "$escapes" in
    0)
     printf "${result}" | sed -e 's:/:\\:g'
     ;;
    1)
     printf "${result}" | sed -e 's:/:\\\\:g'
     ;;
    2)
     printf "${result}" | sed -e 's:/:\\\\\\\\:g'
     ;;
    3)
     printf "${result}" | sed -e 's:/:\\\\\\\\\\\\\\\\:g'
     ;;
    *)
     printf "${result}"
     ;;
  esac
  exit 0;
 )

Youez - 2016 - github.com/yon3zu
LinuXploit