403Webshell
Server IP : 103.133.214.187  /  Your IP : 216.73.217.142
Web Server : Apache
System : Linux server1.theo.veenstra 5.14.0-611.47.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Apr 8 20:00:39 EDT 2026 x86_64
User : pegpullerpro ( 1022)
PHP Version : 8.2.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /sbin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /sbin/virtualmin
#!/bin/bash
WEBMIN_CONFIG=/etc/webmin
WEBMIN_VAR=/var/webmin
PERLLIB=/usr/libexec/webmin:/usr/libexec/webmin/vendor_perl
WRAPPER_ORIGINAL_PWD=`pwd`
unset SCRIPT_NAME
unset FOREIGN_MODULE_NAME
unset SERVER_ROOT
unset SCRIPT_FILENAME
export WEBMIN_CONFIG WEBMIN_VAR PERLLIB SCRIPT_NAME FOREIGN_MODULE_NAME SERVER_ROOT SCRIPT_FILENAME WRAPPER_ORIGINAL_PWD
cd /usr/libexec/webmin/virtual-server
id -a | grep -i uid=0 >/dev/null
if [ "$?" != 0 ]; then
	echo "/usr/sbin/virtualmin must be run as root"
	exit 2
fi
if [ "$1" = "" -o "$1" = "help" -a "$2" = "" -o "$1" = "--help" -a "$2" = "" -o "$1" = "-help" -a "$2" = "" ]; then
	echo "usage: /usr/sbin/virtualmin <command> [args..]"
	echo "   or: /usr/sbin/virtualmin help <command>"
	echo ""
	echo "Available commands :"
	echo ""
	COMMAND=list-commands
else
	COMMAND=$1
	COMMANDINITIAL=$COMMAND
fi
shift
if [ "$COMMAND" = "help" ]; then
	help=1
	COMMAND=$1
	shift
fi
echo $COMMAND | grep '\.pl' > /dev/null
if [ "$?" != "0" ]; then
	COMMAND="$COMMAND.pl"
fi
DISPLAYCOMMAND="$COMMAND"
DISPLAYCOMMAND=${DISPLAYCOMMAND%.pl}
case " check-connectivity.pl create-reseller.pl delete-reseller.pl list-acme-providers.pl list-backup-keys.pl list-resellers.pl modify-reseller.pl modify-resources.pl search-maillogs.pl " in
	*" $COMMAND "*)
		if [ ! -d "/usr/libexec/webmin/virtual-server/pro" ]; then
			echo "Command $DISPLAYCOMMAND is only available in Virtualmin Pro"
			exit 1
		fi
	;;
esac
for dir in /usr/libexec/webmin/virtual-server /usr/libexec/webmin/virtual-server/pro /usr/libexec/webmin/virtualmin-awstats /usr/libexec/webmin/virtualmin-htpasswd; do
	if [ -x "$dir/$COMMAND" ]; then
		if [ "$help" = "1" ]; then
			exec perldoc $dir/$COMMAND
		else
			if [[ "$@" == "--help" ]]; then
				echo "See \`virtualmin help $COMMANDINITIAL\` for more details and examples"
				echo ""
			fi
			exec $dir/$COMMAND "$@"
		fi
	fi
done
echo Command $COMMAND was not found
exit 1

Youez - 2016 - github.com/yon3zu
LinuXploit