radzap

来自「radius协议的经典实现」· 代码 · 共 51 行

TXT
51
字号
#!/bin/sh##	$Id: radzap,v 1.2.2.2 2005/05/12 22:24:07 aland Exp $#usage() {	echo "Usage: radzap [options] server[:port] secret" >&2        echo "       -d raddb_directory: directory where radiusd.conf is 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 : more debugging output"	exit ${1:-0}}while test "$#" != "0"do  case $1 in      -h) usage;;      -d) RADDB="-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;;  esacdoneif test "$#" != "2"; then    usage 1 >&2fiSERVER=$1SECRET=$2##  Radzap is now a wrapper around radwho & radclient.#radwho -ZR $RADDB $NAS_IP_ADDR $NAS_PORT $USER_NAME | radclient $DEBUG $RADDB -f - $SERVER acct $SECRET

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?