proxy代理   soft软件   IT 业界特快   norton 诺顿病毒库   代理列表   search FTP搜索   whois IP地理位置   blog 追求完美  
money理财   life生活   RSS聚合门户   firefox WEB浏览器   免费域名   typeset 假古文   AntiVirus 反病毒   ipcn 站点导航  

« stardict 星际译王 - Linux 下的金山词霸 | Main | [公告] http://norton.ipcn.org/ 恢复 »

September 2, 2004

昨天写的两个脚本 小工具开会

版权声明:可以任意转载,转载时请务必以超链接形式标明文章原始出处和作者信息及本声明。
https://windtear.net/archives/2004/09/02/000355.html

删了不少东西
算是个拓扑吧

#!/bin/bash
#
COUNTMAXNO=30
PROXYFILE="proxy"
LN=`wc -l $PROXYFILE | awk '{print $1}'`

COUNT=0
while [ $COUNT -lt $COUNTMAXNO ]
do
        if [ -z "$1" ]; then
                number=$RANDOM
                let "number %= $LN"
                proxy=`sed -n ${number}p $PROXYFILE`
        else
                proxy=$1
        fi

        echo "proxy$COUNT:      $proxy" 
        curl --connect-timeout 10 --max-time 20 -x $proxy  >_ 2>/dev/null
        RETZERO=$?
        if [ $RETZERO -eq 0 ]; then
                ID=`sed -n 1p _`
                curl -x $proxy =$ID >/dev/null 2>/dev/null
                curl -x $proxy =$ID >_ 2>/dev/null
                CID=`cut -c 1-6 _`
                FILENAME=`date +%m%d%H%M%S`
                PASSWORD=`mkpasswd -l 8 -d 0 -c 8 -C 0 -s 0`
                NICKNAME="aa"`mkpasswd -l 4 -d 0 -c 4 -C 0 -s 0`"zz"
                curl -x $proxy "" >$FILENAME 2>/dev/null
                mv $FILENAME $FILENAME.`sed -n 1p $FILENAME`.$PASSWORD.$NICKNAME
        fi
        let "COUNT += 1"
done


----->   小工具开会
sed
cut
awk
wc
mkpasswd
if fi
curl
$?
-eq
let 

本blog WWW

Posted by windtear at September 2, 2004 11:20 PM

本站使用中的任何问题,请与 windtear @ windtear.net 联系
Copyright© 1999-2024 Windtear. All rights reserved.