- 在线时间
- 3253 小时
- 最后登录
- 2013-5-28
- 阅读权限
- 180
- 积分
- 36136
- UID
- 4205
- 注册时间
- 2002-1-23
- 帖子
- 27645
- 精华
- 7
|
核心代码
贴出上面的3P
做个循环,每30秒贴一次
不关机了,到明天早晨
会不会ban id啊?
$| = 1; #disable buffer output
use Getopt::Std;
use HTTP::Cookies;
use LWP::UserAgent;
use HTTP::Cookies::Microsoft;
use Win32::TieRegistry(Delimiter => "/");
my %opt;
getopts ('ntics', \%opt)
or die <<"usage end";
usage: perl perl_pure_pour.pl [options]
where the allowed options are:
-n new thread
-t threadid
-i interval
-c counts
-s screen
usage end
my $cookies_dir = $Registry->{"CUser/Software/Microsoft/Windows/CurrentVersion/Explorer/Shell Folders/Cookies"};
print $cookies_dir ."\n";
$cookie_jar = HTTP::Cookies::Microsoft->new(file => "cookies_dir\\index.dat", 'delayload' => 1,);
$ua = LWP::UserAgent->new;
$ua->agent('Mozilla/5.0');
# print $ua->agent;
$ua->cookie_jar($cookie_jar);
my $req = HTTP::Request->new(POST => 'https://highot.us/newreply.php');
$req->content_type('application/x-www-form-urlencoded');
$req->content('threadid=193890&parseurl=yes&signature=yes&message=3p&action=postreply');
my $res = $ua->request($req);
print $res->as_string; |
|