I am a hacker in the dark of a very cold night
path :/var/www/html/vorne.webheaydemo.com
upload file:
List of files:
| name file |
size |
edit |
permission |
action |
| .editorconfig | 276 KB | March 05 2024 07:12:34 | 0666 |
|
| .env | 1385 KB | May 24 2024 16:43:55 | 0666 |
|
| .env.example | 1088 KB | March 05 2024 07:12:34 | 0666 |
|
| .gitattributes | 190 KB | March 05 2024 07:12:34 | 0666 |
|
| .gitignore | 245 KB | March 05 2024 07:12:34 | 0666 |
|
| .htaccess | 947 KB | July 04 2023 21:25:08 | 0664 |
|
| .rnd | 1024 KB | March 13 2024 04:51:14 | 0666 |
|
| README.md | 472 KB | March 22 2024 10:35:00 | 0666 |
|
| app | - | March 05 2024 07:12:34 | 0777 |
|
| artisan | 1739 KB | March 05 2024 07:12:34 | 0666 |
|
| bootstrap | - | March 05 2024 07:12:34 | 0777 |
|
| composer.json | 2829 KB | May 13 2024 12:10:04 | 0666 |
|
| composer.lock | 417205 KB | March 19 2024 12:13:14 | 0666 |
|
| config | - | July 03 2025 02:53:36 | 0777 |
|
| database | - | March 05 2024 07:12:34 | 0777 |
|
| index.php | 1816 KB | May 13 2024 10:32:36 | 0666 |
|
| lang | - | May 13 2024 14:53:26 | 0777 |
|
| manifest.json | 913 KB | May 14 2024 03:57:26 | 0664 |
|
| package.json | 398 KB | March 05 2024 07:12:34 | 0666 |
|
| phpunit.xml | 1206 KB | March 05 2024 07:12:34 | 0666 |
|
| public | - | July 03 2025 02:37:20 | 0777 |
|
| resources | - | May 13 2024 12:09:36 | 0777 |
|
| routes | - | March 05 2024 07:12:34 | 0777 |
|
| service-worker.js | 924 KB | March 05 2024 07:12:34 | 0666 |
|
| storage | - | March 05 2024 10:03:52 | 0777 |
|
| symlink.php | 218 KB | March 05 2024 07:12:34 | 0666 |
|
| tests | - | March 05 2024 07:12:34 | 0777 |
|
| vendor | - | March 19 2024 12:13:14 | 0777 |
|
| vite.config.js | 326 KB | March 05 2024 07:12:34 | 0666 |
|
#!/bin/sh
# set some defaults
dbuser_varname="dbuser"
dbpass_varname="dbpass"
dbname_varname="dbname"
dbserver_varname="dbserver"
dbport_varname="dbport"
dbtype_varname="dbtype"
basepath_varname="basepath"
# the version will always be < the package version
VERSION="$Revision$"
version(){
prog=$(basename $0)
cat << EOF
$prog v$VERSION
copyright (c) 2005 sean finney
EOF
}
usage(){
version
cat << EOF
usage: $prog [-hv] [-a] [-d[varname]] [-u[varname]] [-p[varname]] [-s[varname]] [-P[varname]] [-t[varname]] -f format infile
infile use the given dbconfig-common config file as input
-f|--format use the given output format (must be specified)
-a|--all include all information in output (default)
-b|--basepath include the basepath in the output
-d|--dbname include the dbname in the output
-p|--dbpass include the dbpass in the output
-s|--dbserver include the dbserver in the output
-P|--dbport include the dbport in the output
-u|--dbuser include the dbuser in the output
-t|--dbtype include the dbtype in the output
-h|--help display this helpful message
-v|--version output the version and exit
format is one of a list of include-file style formats for various
programming languages. the current list includes:
sh - /bin/sh style include file
perl - perl parseable include file
php - php parseable include file
exec - run the file as a script and interpret its output.
EOF
}
TEMP=$(getopt -o af:hb::d::p::u::s::t::P::v -l help,dbuser::,dbname::,dbpass::,dbport::,dbserver::,dbtype::,basepath::,format:,version -n $0 -- "$@")
if [ $? != 0 ] ; then usage >&2 ; exit 1 ; fi
eval set -- "$TEMP"
while true; do
case "$1" in
-a|--all)
use_all="yes"
shift
;;
-b|--basepath)
use_basepath="yes"
if [ ! -z "$2" ]; then
basepath_varname="$2"
fi
shift 2
;;
-d|--dbname)
use_dbname="yes"
if [ ! -z "$2" ]; then
dbname_varname="$2"
fi
shift 2
;;
-u|--dbuser)
use_dbuser="yes"
if [ ! -z "$2" ]; then
dbuser_varname="$2"
fi
shift 2
;;
-p|--dbpass)
use_dbpass="yes"
if [ ! -z "$2" ]; then
dbpass_varname="$2"
fi
shift 2
;;
-s|--dbserver)
use_dbserver="yes"
if [ ! -z "$2" ]; then
dbserver_varname="$2"
fi
shift 2
;;
-P|--dbport)
use_dbport="yes"
if [ ! -z "$2" ]; then
dbport_varname="$2"
fi
shift 2
;;
-t|--dbtype)
use_dbtype="yes"
if [ ! -z "$2" ]; then
dbtype_varname="$2"
fi
shift 2
;;
-f|--format)
format="$2"
shift 2
;;
-h|--help)
usage
exit
;;
-v|--version)
version
exit
;;
--)
shift
break
;;
*)
echo "eh? $1" >&2
exit 1
;;
esac
done
# if they asked for all vars, or didn't ask for anything (which defaults to all)
if [ "$use_all" ] || [ ! "${use_dbuser}${use_dbpass}${use_basepath}${use_dbname}${use_dbserver}${use_dbtype}${use_dbport}" ]; then
use_dbuser="yes"
use_dbpass="yes"
use_basepath="yes"
use_dbname="yes"
use_dbserver="yes"
use_dbport="yes"
use_dbtype="yes"
fi
inputfile=$1
rv=0
if [ ! "$inputfile" ]; then
echo "error: you must specify an inputfile" >&2
usage >&2
exit 1
fi
if [ ! -f "$inputfile" ] || [ ! -r "$inputfile" ]; then
echo "unable to read input file $inputfile" >&2
exit 1
fi
if [ ! "$format" ]; then
echo "error: you must specify a format!" >&2
usage >&2
exit 1
fi
case $format in
sh)
cat << EOF | sh
. $inputfile
use_dbuser="$use_dbuser";
use_dbpass="$use_dbpass";
use_basepath="$use_basepath";
use_dbname="$use_dbname";
use_dbserver="$use_dbserver";
use_dbport="$use_dbport";
use_dbtype="$use_dbtype";
[ "$use_dbuser" ] && cat << FOO
dbc_dbuser='\$$dbuser_varname'
FOO
[ "$use_dbpass" ] && cat << FOO
dbc_dbpass='\$$dbpass_varname'
FOO
[ "$use_basepath" ] && echo "dbc_basepath='\$$basepath_varname'"
[ "$use_dbname" ] && echo "dbc_dbname='\$$dbname_varname'"
[ "$use_dbserver" ] && echo "dbc_dbserver='\$$dbserver_varname'"
[ "$use_dbport" ] && echo "dbc_dbport='\$$dbport_varname'"
[ "$use_dbtype" ] && echo "dbc_dbtype='\$$dbtype_varname'"
EOF
;;
php)
if ! which php > /dev/null; then
echo "error: php format but i can't find a php binary!" >&2
exit 1
fi
cat << EOF | php