| Server IP : 173.209.174.21 / Your IP : 216.73.216.89 Web Server : Apache/2.4.58 (Ubuntu) System : Linux wcfs-server 6.8.0-124-generic #124-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 13:00:45 UTC 2026 x86_64 User : nodor ( 1000) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /bin/ |
Upload File : |
#!/bin/sh
#
# $Id: f05f2533336dc315f09728221c21d5e08ed0b788 $
#
usage() {
echo "Usage: radzap [options] server[:port] secret" >&2
echo " -h Print usage help information."
echo " -d raddb_directory: directory where radiusd.conf is located."
echo " -D dict_directory: directory where the dictionaries are located."
echo " -N nas_ip_address: IP address of the NAS to zap."
echo " -P nas_port: NAS port that the user is logged into."
echo " -u username: Name of user to zap (case insensitive)."
echo " -U username: like -u, but case-sensitive."
echo " -x Enable debugging output."
exit ${1:-0}
}
while test "$#" != "0"
do
case $1 in
-h) usage;;
-d) OPTS="$OPTS -d $2";shift;shift;;
-D) OPTS="$OPTS -D $2";shift;shift;;
-N) NAS_IP_ADDR="-N $2";shift;shift;;
-P) NAS_PORT="-P $2";shift;shift;;
-u) USER_NAME="-u $2";shift;shift;;
-U) USER_NAME="-U $2";shift;shift;;
-x) DEBUG="-x";shift;;
*) break;;
esac
done
if test "$#" != "2"; then
usage 1 >&2
fi
SERVER=$1
SECRET=$2
#
# Radzap is now a wrapper around radwho & radclient.
#
radwho -ZR $OPTS $NAS_IP_ADDR $NAS_PORT $USER_NAME | radclient $DEBUG $OPTS -f - $SERVER acct $SECRET