dsaping

来自「ftam等标准协议服务器和客户端的源代码。」· 代码 · 共 52 行

TXT
52
字号
#!/bin/sh #Calculate unique TCP port based on PIDstart=${1-c=GB}ppid=$$gooddsa=0baddsa=0ditsize=0if ( test $ppid-lt10000 )then	ppid=`expr $ppid + 10000`fiDISHPROC="127.0.0.1 $ppid"export DISHPROCif ( bind -noa )then	echo -nelse	exit 1fimoveto @if [ $start != "root" ]then 	moveto $startfifor j in `search -filter objectclass=quipuDSA -nosize -time 500 -type presentationaddress -noname -singlelevel`do	echo -n "Trying "	moveto -nocheck -pwd $j	if ( bind -c `showentry -type presentationaddress -nokey` -noa 2>/dev/null )	then 		gooddsa=`expr $gooddsa + 1`		if ( dsacontrol -info > /tmp/dsainfo 2>/dev/null )		then			dsasize=`awk < /tmp/dsainfo '{ printf $1 }'`			echo Size $dsasize			ditsize=`expr $ditsize + $dsasize`		else			echo Contacted		fi	else		echo Failed		baddsa=`expr $baddsa + 1`	fidoneechoecho $gooddsa DSAs contactedecho $baddsa connections failedechoecho Counted $ditsize entriesrm -f /tmp/dsainfounbind

⌨️ 快捷键说明

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