403Webshell
Server IP : 193.86.120.172  /  Your IP : 216.73.216.67
Web Server : Apache/2.4.63 (Unix)
System : Linux JServices 3.10.108 #86003 SMP Wed Oct 22 13:20:46 CST 2025 x86_64
User : kubec ( 1026)
PHP Version : 8.2.28
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /proc/29149/cwd/usr/bin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/29149/cwd/usr/bin/pon
#!/bin/sh

while [ $# -ge 1 ]; do
case "$1" in
  --quick|-q)
    QUICK=true
    shift
    ;;
  -*)
    echo "\
Usage: pon [OPTIONS] [provider] [arguments]
  -q|--quick           pppd hangs up after all ip-up scripts are run

If pon is invoked without arguments, /etc/ppp/ppp_on_boot file will be
run, presuming it exists and is executable. Otherwise, a PPP connection
will be started using settings from /etc/ppp/peers/provider.
If you specify one argument, a PPP connection will be started using
settings from the appropriate file in the /etc/ppp/peers/ directory, and
any additional arguments supplied will be passed as extra arguments to
pppd.
"
    exit 0
    ;;
  *)
    break
    ;;
esac
done

if [ ! -r /etc/ppp/peers/ ]; then
  echo "Error: only members of the 'dip' group can use this command."
  exit 1
fi

if [ "$1" ]; then
  PROVIDER=$1
  shift
fi

# Perform ppp_on_boot migration from pppoe package.
if [ -L /etc/ppp/ppp_on_boot -a "$(readlink /etc/ppp/ppp_on_boot)" = \
     "ppp_on_boot.dsl" -a ! -e /etc/ppp/ppp_on_boot.dsl ]; then
  rm -f /etc/ppp/ppp_on_boot
  ln -s pppoe_on_boot /etc/ppp/ppp_on_boot
fi

if [ -z "$PROVIDER" ]; then
  if [ -x /etc/ppp/ppp_on_boot ]; then
    [ "$QUICK" ] && touch /var/run/ppp-quick
    exec /etc/ppp/ppp_on_boot
  fi
  # try the default script
  PROVIDER=provider
fi

if [ ! -e "/etc/ppp/peers/$PROVIDER" ]; then
  echo "\
The file /etc/ppp/peers/$PROVIDER does not exist. Please create it or use
a command line argument to use another file in the /etc/ppp/peers/ directory."
  exit 1
fi

# SYNO: load kernel module and enable ip_forward
BIN_IPTABLESTOOL="/usr/syno/bin/iptablestool"
BIN_SYNOMODULETOOL="/usr/syno/bin/synomoduletool"
IPTABLES_MODULE_LIST="/usr/syno/etc.defaults/iptables_modules_list"
PPTPC_MODULES="slhc.ko ppp_generic.ko ppp_async.ko arc4.ko ppp_mppe.ko bsd_comp.ko zlib_inflate.ko zlib_deflate.ko ppp_deflate.ko"
SERVICE="pptpc"

. ${IPTABLES_MODULE_LIST}

PPTPC_Mod=""
for mod in ${KERNEL_MODULES_CORE}; do
	if [ -e "/lib/modules/$mod" ]; then
		PPTPC_Mod="${PPTPC_Mod} ${mod}"
	fi
done
for mod in ${KERNEL_MODULES_COMMON}; do
	if [ -e "/lib/modules/$mod" ]; then
		PPTPC_Mod="${PPTPC_Mod} ${mod}"
	fi
done
for mod in ${KERNEL_MODULES_NAT}; do
	if [ -e "/lib/modules/$mod" ]; then
		PPTPC_Mod="${PPTPC_Mod} ${mod}"
	fi
done
for mod in ${PPP_MODULES}; do
	if [ -e "/lib/modules/$mod" ]; then
		PPTPC_Mod="${PPTPC_Mod} ${mod}"
	fi
done
for mod in ${PPTP_MODULES}; do
	if [ -e "/lib/modules/$mod" ]; then
		PPTPC_Mod="${PPTPC_Mod} ${mod}"
	fi
done


if [ -x ${BIN_SYNOMODULETOOL} ]; then
	${BIN_SYNOMODULETOOL} --insmod $SERVICE ${PPTPC_Mod}
elif [ -x ${BIN_IPTABLESTOOL} ]; then
	${BIN_IPTABLESTOOL} --insmod $SERVICE ${PPTPC_Mod}
fi

echo 1 > /proc/sys/net/ipv4/ip_forward

[ "$QUICK" ] && touch /var/run/ppp-quick
exec /usr/sbin/pppd call $PROVIDER "$@" unit 200


Youez - 2016 - github.com/yon3zu
LinuXploit