!C99Shell v.2.1 [PHP 7 Update] [1.12.2019]!

Software: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16. PHP/5.4.16 

uname -a: Linux roko-bkp 3.10.0-1160.102.1.el7.x86_64 #1 SMP Tue Oct 17 15:42:21 UTC 2023 x86_64 

uid=48(apache) gid=48(apache) groups=48(apache),1003(webmaster) 

Safe-mode: OFF (not secure)

/var/www/html/   drwxr-xr-x
Free 9.44 GB of 93.48 GB (10.1%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     copiaFontes.sh (1.26 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/bin/bash
if [[ -z $1 ]];
then
    echo nome do diretorio origem não foi passado
    exit;
fi
if [[ -z $2 ]];
then
    echo nome do diretorio destino não foi passado
    exit;
fi
if [ ! -d  $1 ] ; then
    echo diretorio $1 não foi encontrado
    exit
fi
if [ ! -d  $2 ]; then
    mkdir $2
fi
curdir=$(pwd)
echo '$1' $1
cd $1 && echo foi bem o cd
echo '$(pwd)' $(pwd)
diretorio=$(find . -type d)
echo '$diretorio' $diretorio
extconhecidas=("jpg" "txt")
declare -n extencao copiar
for nomedir in $diretorio;
do
    cd $curdir
    cd $1
    cd $nomedir
    dirdestino = $curdir"/"
    
    if [ ! -d  $curdir"/"$2"/"${nomedir#*/} ]; then
	echo 'diretorio criado' $curdir"/"$2"/"${nomedir#*/}
	mkdir $curdir"/"$2"/"${nomedir#*/}
    fi
    arquivos=$(find . -type f -print -o -name . -o -prune) # estes parametros no find procura só no diretório corrente
    echo $arquivos
    for arq in $arquivos;
    do
	echo $arq
	extencao=${arq##*.}
	if [ ${#extencao} -gt 5 ];
	then
	    echo $arq >> $curdir"/pulados" 
	    continue 
	fi
	copiar=false
	for conhecida in ${extconhecidas[*]};
	do
	    if [ $conhecida=$extencao ];
	    then 
		copiar=true
  	    fi
	done
	if [ $copiar=true ];
	then
 	   cp $arq  $curdir"/"$2"/"${nomedir#*/}
	else
	    echo este não foi $arq
	fi
    done
done

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v.2.1 [PHP 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.0042 ]--