首页 > 分享 > a?�?�?e?�c?�a??c??e��e?�a�zcZ�

a?�?�?e?�c?�a??c??e��e?�a�zcZ�

2013年4月27日     浏览数:176 发表评论 阅读评论

??�a?sa?�e��c��a��?�???�a�?a?�aY?a?ZATScs�?�?a?�a�?c?�c?�a�????aS?a�?i??a?�e�?c�????a��c?�a??e��a?Ye��c��a??c??e��e?�?�?e�?a��e�se?�?�?a��a?�a???�?e�?a�?a?s???a??c??e��e?�a?�c�??�?e�?a�?i??a��c?�a?�ATScs�a�?c?�e�?c?�a��

c�?phpe�?a??memcacheqa�?a�?e�s??�a�zcZ�a?�c��a?�cs�a?�?�?e?�c?�aSYe??i??a??a�ze��e??c�?a?�a��a�??��e?�e�?e??e�?e��a�?a��a��

a�?a???�?a??i?sPHPe?�e?????a?�URLa��a��>memcacheq<a��a��shelle�s??�crona�s?��a?�e?Ya?�urle?�c?�i??wgeti?�

php???a?�

php

PHPa�?c�?i???��??�a?�a????�a??a?�?�?a?�e??a?�i?�i?s

<head>
<title>a??a??ATSc?�a�?e?�c?�a?Za?�</title>
</head>
<?php
header("Content-type: text/html; charset=utf-8");
$myurl=$_GET['url'];
if(${myurl}!=""){
echo "${myurl}a�?c�????a?�a?�a?�e??e?Ya?�i?????aS?a�?a?sa�?a?�a?�e??";}

echo "<br />";
echo "<form name=\"Form\" method=\"post\" action=\"mem.php\">";
echo "e?�e?�a�?e�?e?�c?�cs�e��e?�URLi?s<input style=\"height:30px\" type=\"text\" name=\"url\" size=\"100\"/>";
     echo "<input style=\"height:30px\" type=\"submit\" value=\"???a?�\" />";
     echo "</form>";
?>

mem.phpi?s

<?php
header("Content-type: text/html; charset=utf-8");

$url= $_POST['url'];
//if(${url}!=""){
$memcache_obj = memcache_connect('127.0.0.1', 21201);

memcache_set($memcache_obj, 'url', $url, 0, 80);
Header("Location: autofetch.php?url=$url");//}
//Header("Location: autofetch.php");
?>

memcacheqcs�e�?c?�a?�e�?i?shttp://blog.163.com/song_0803/blog/static/46097597201131510533947/

Shelle�s??�i?s

#!/bin/bash
jinchengshu=`ps aux |grep -c "wget"`
if [ $jinchengshu -gt "3" ]; then
echo "wgete?�c?�a�?a�si????�a�?e��a�?a?�"
exit 0
fi
shumu=1
time=`date "+%Y-%m-%d %H:%M:%S"`
memurl=`printf "get url\r\n" | nc 127.0.0.1 21201 | sed -n 2p`
ok=`echo $memurl | grep http`
if [ -z $ok ]
then
    echo "e?Ya?�a??c�?i??"
    exit 0
else
echo "?�?a??e?�c?�?Y?e??i??e?�c??a?Z..."
flvurl=`echo "$memurl" | sed -e "s@:@%3A@g" -e "s@/@%2F@g"`
echo "${time}e�?a��c?�cs�URLa?? $memurl" >>/data/ats/autofetch.log
url="http://www.flvcd.com/parse.php?format=&kw=${flvurl}"
urls=`curl -s "$url" |sed -r '/<BR><a href="http:\/\/f.youku.com\/player/s/<BR><a href="([^"]*)(.*)/\1/'

for u in $urls
do
    echo "?�?a?�cs�e��e?�e�??Z?${shumu} $u" >>/data/ats/autofetch.log
    shumu=$((shumu + 1))
    trueurl=`curl -s -I $u | awk '/Location/{print $2}'`
    echo "c?Ya�ze��e?�URL $trueurl" >> /data/ats/autofetch.log
done

thead_num=15 ###a?�a?�?��
tmp_fifo_file="/tmp/$$.fifo"
mkfifo $tmp_fifo_file
exec 6<>$tmp_fifo_file
rm -f $tmp_fifo_file

for ((i=0;i<$thead_num;i++))
do
        echo ""
done >&6

for i in $urls
do
        echo "URLa??$i"
        read -u6
                {
                        nowtime=`date "+%Y-%m-%d %H:%M:%S"`
                        wget -Y on --header="Accept:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" --header="Accept-Encoding:gzip, deflate" --header="Accept-Language:zh-cn,zh;q=0.8,en-us;q=0.5,en;q=0.3" --header="Referer:http://static.youku.com/v1.0.0313/v/swf/loader.swf" --header="User-Agent:Mozilla/5.0 (Windows NT 6.1; rv:15.0) Gecko/20100101 Firefox/15.0.1" $i && echo "${nowtime} a?�e??a�???? $i" >> /data/ats/autofetch.log
                        sleep 1
                        echo "" >&6
                }&
done
wait
exec 6>&-
echo " " >> /data/ats/autofetch.log
fi

a�????i?se�?e�?c?�wgetcs�a�?c?�a��

a?�a�??��a��A�~/.wgetrcA�a��a�?a??i?shttp_proxyA�=A�http://atsip:c�?a??/i??c��a?Za??a�?e�?a�scrontabe��shelle�s??�a�s?��a?�memqe?Ya?�e?�c?�a��

a�??�?c�?curla?�e??cs�e??a??a�?e�?e??a?�?�?a?�wgetcs�e??a?�a�?c�?a??a??a��

a?Ze??

c�?e?�a?Se??cs�c��a?�e??c�?a�?a��a?�a?�a��a??a�?a�????a?�a?�a????�e??a�??�?cs�e?�c?�aSYe??a��a?�a�?a��

yure domain whois information English to Sindhi .

But are we really at pay someone to write an essay fault for not completing our goals

分类: 分享 标签:
  1. alaxe
    2013年5月1日13:51 | #1

    这个没有必要吧,做个透明代理不更好

  1. 本文目前尚无任何 trackbacks 和 pingbacks.