BlogBlind 復站了,改名神棍網 http://beta.godstick.net/,看到別人blog說可以灌票,那就來玩一下吧,DK的機器應該是不怕操的

拿到你想灌的Tag 的網址後
方案一:
    in linux
    repeat 1000  curl http://what.you.want.to fuck

    in bsd
    改用 fetch


方案二:(寫二百年沒寫過的perl)
  #!/usr/bin/perl -W
  if ($#ARGV != 1)
  {
    print "Usage: command url times\n";
    exit;
  }
  else
  {
    for ($i = 0; $i < $ARGV[1]; ++$i)
    {
        `curl --silent $ARGV[0]`;
    }

    print "finish\n";
  }

方案三:改成multithread
方案四:multithread + HTTP::Lite
方案五:改用 http fetcher library + pthread

原本以為會比較快,可是實測結果 500 click 大約都要花 13分鐘多一點,在想是不是server 那邊有做什麼限制。沒關係好玩就好。

多學了 perl thread,cpan install in not standard path, pthread, http fetcher library ,不過正事都沒做...

都是爛方法,我是小咖,大家慢慢玩
arrow
arrow
    全站熱搜

    cmchao 發表在 痞客邦 留言(0) 人氣()