Hi..
it's me again ;D
#!/usr/bin/perl
# Simple IRC Bot.
# Coded by: Saime.
# Options: !version , !killmaself , !op , !owner
# Visit us: irc.nitrousirc.net #perl
use strict;
use IO::Socket;
use Socket;
use Switch;
use LWP::UserAgent;
my $server = "irc.efnet.nl";
my $port= '6665';
my $chanel = "#mycanal";
my $nick = "BuasdadG";
my $identify = "BuasdadG2";
my $name = "BuasdadG124";
my $saime = "BuasdadG23";
my $socket = new IO::Socket::INET(PeerAddr => $server, PeerPort => $port, Proto => "tcp") or die "Get a life ?";
print $socket "NICK $nick\r\n";
print $socket "USER $identify 8 * :$name\r\n";
print $socket "JOIN $chanel\r\n";
while (my $body = <$socket>) {
chop $body;
if ($body =~ /^.*!md5(.*)/i) {
#HERE CONNCT
my $ua = new LWP::UserAgent;
$ua->agent("Mozilla/8.0");
$ua = LWP::UserAgent->new;
my $hash = $1;
$hash = $1;
my $req = HTTP::Request->new(POST => "$req->content_type('application/x-$req->content("hash=$hash&server=top&token=md5s&tryb=search&submit=submit");
my $res = $ua->request($req);
my $con = $res->content;
##############################################
if($con =~/(.*)<.font><.td><.tr><tr><td><font size="-1">/){
print $socket ("PRIVMSG $chanel not!\r\n");
}
elsif($con =~ /<font size="-1" color="green">{1}(.*)<.font>/){
my $pass = "$1";
print $socket ("PRIVMSG $chanel $pass!\r\n");
}
###################################################
}
}
This is IRC BOT..i try send with he's help POST to some site.. and when i send np
$req->content("hash=$hash&server=top&token=md5s&tryb=search&submit=submit");
it not work...
but when i $hash change to my MD5 is good.. why i can't use $hash.. ? i try
if ($body =~ /^.*!md5(.*)/i) {
#HERE CONNCT
my $ua = new LWP::UserAgent;
$ua->agent("Mozilla/8.0");
$ua = LWP::UserAgent->new;
my $hash = $1;
$hash = $1;
and dont work..
ps Help me
SORRY FOR MY ENGLISH
it's me again ;D
#!/usr/bin/perl
# Simple IRC Bot.
# Coded by: Saime.
# Options: !version , !killmaself , !op , !owner
# Visit us: irc.nitrousirc.net #perl
use strict;
use IO::Socket;
use Socket;
use Switch;
use LWP::UserAgent;
my $server = "irc.efnet.nl";
my $port= '6665';
my $chanel = "#mycanal";
my $nick = "BuasdadG";
my $identify = "BuasdadG2";
my $name = "BuasdadG124";
my $saime = "BuasdadG23";
my $socket = new IO::Socket::INET(PeerAddr => $server, PeerPort => $port, Proto => "tcp") or die "Get a life ?";
print $socket "NICK $nick\r\n";
print $socket "USER $identify 8 * :$name\r\n";
print $socket "JOIN $chanel\r\n";
while (my $body = <$socket>) {
chop $body;
if ($body =~ /^.*!md5(.*)/i) {
#HERE CONNCT
my $ua = new LWP::UserAgent;
$ua->agent("Mozilla/8.0");
$ua = LWP::UserAgent->new;
my $hash = $1;
$hash = $1;
my $req = HTTP::Request->new(POST => "$req->content_type('application/x-$req->content("hash=$hash&server=top&token=md5s&tryb=search&submit=submit");
my $res = $ua->request($req);
my $con = $res->content;
##############################################
if($con =~/(.*)<.font><.td><.tr><tr><td><font size="-1">/){
print $socket ("PRIVMSG $chanel not!\r\n");
}
elsif($con =~ /<font size="-1" color="green">{1}(.*)<.font>/){
my $pass = "$1";
print $socket ("PRIVMSG $chanel $pass!\r\n");
}
###################################################
}
}
This is IRC BOT..i try send with he's help POST to some site.. and when i send np
$req->content("hash=$hash&server=top&token=md5s&tryb=search&submit=submit");
it not work...
but when i $hash change to my MD5 is good.. why i can't use $hash.. ? i try
if ($body =~ /^.*!md5(.*)/i) {
#HERE CONNCT
my $ua = new LWP::UserAgent;
$ua->agent("Mozilla/8.0");
$ua = LWP::UserAgent->new;
my $hash = $1;
$hash = $1;
and dont work..
ps Help me
SORRY FOR MY ENGLISH