Dre4m Shell
Server IP : 127.0.0.2  /  Your IP : 3.17.68.195
Web Server : Apache/2.4.18 (Ubuntu)
System :
User : www-data ( )
PHP Version : 7.0.33-0ubuntu0.16.04.16
Disable Function : disk_free_space,disk_total_space,diskfreespace,dl,exec,fpaththru,getmyuid,getmypid,highlight_file,ignore_user_abord,leak,listen,link,opcache_get_configuration,opcache_get_status,passthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,php_uname,phpinfo,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix,_getppid,posix_getpwnam,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_times,posix_ttyname,posix_uname,pclose,popen,proc_open,proc_close,proc_get_status,proc_nice,proc_terminate,shell_exec,source,show_source,system,virtual
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/mc/extfs.d/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /usr/lib/mc/extfs.d/uarc
#! /bin/sh

#
# ARC Virtual filesystem executive
# Copyright (C) 2008 Jacques Pelletier
# May be distributed under the terms of the GNU Public License
# <jpelletier@ieee.org>
#

# Define which archiver you are using with appropriate options
ARC_LIST="arc v"
ARC_GET="arc x"
ARC_PUT="arc a"
ARC_DEL="arc d"

# The 'list' command executive

mc_arc_fs_list()
{
    if [ "x$UID" = "x" ]; then
        UID=`id -ru 2>/dev/null`
        if [ "x$UID" = "x" ]; then
            UID=0
        fi
    fi
    $ARC_LIST "$1" | awk -v uid=$UID '
BEGIN { }
/^Name/ { next }
/===/ { next }
/^Total/ { next }
{
        if ($8 > 50)
        $8=$8 + 1900
        else
        $8=$8 + 2000

        split($9, a, ":")

        # convert AM/PM to 00-23
        if (a[2] ~ /a$|p$/)
        {
                if (a[2] ~ /p$/)
                        a[1] = a[1]+12

                a[2]=substr(a[2],1,2)
        }

        printf "-rw-r--r--   1 %-8d %-8d %8d %s %2d %4d %02d:%02d %s\n", uid, 0, $2, $7, $6, $8, a[1], a[2], $1
}' 2>/dev/null
    exit 0
}

# Command: copyout archivename storedfilename extractto
mc_arc_fs_copyout()
{
   $ARC_GET "$1" "$2" 2> /dev/null
        mv "$2" "$3"
}

# Command: copyin archivename storedfilename sourcefile
mc_arc_fs_copyin()
{
	mv "$3" "$2"
	$ARC_PUT "$1" "$2" 2> /dev/null
}

# Command: rm archivename storedfilename
mc_arc_fs_rm()
{
	$ARC_DEL "$1" "$2" 2> /dev/null
}

# The main routine
umask 077

cmd="$1"
shift

case "$cmd" in
   list)	mc_arc_fs_list 	  "$@" ;;
   copyout) mc_arc_fs_copyout "$@" ;;
   copyin)	mc_arc_fs_copyin  "$@" ;;
   rm)		mc_arc_fs_rm      "$@" ;;
   *)       exit 1 ;;
esac
exit 0

Anon7 - 2022
AnonSec Team