Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

help with bot coding


fuser's Avatar
Member
0 -1

well, currently i'm trying to write a bot using perl.

It's basically well, a botnet which will install itself into anyone's computer after they visited an irc channel, and then install a folding@home client on that pc.

well, i only managed to get it running as an irc bot, and it also checks for the socket information.

what i need now is, well, the bot has to connect to any computers in the channel and then install itself along with folding@home on the computer.

well here's the code:


$con = IO::Socket::INET->new(PeerAddr =>'irc.server.com',
			PeerPort =>'6667',
			Proto =>'tcp',
			Timeout=>'90')or die "could not make the connection";
			
print $con "USER Trane\r\n";
print $con "NICK TraneTrax\r\n";
print $con "JOIN #example_channel\r\n";
while($answer = <$con>)
{
	print $answer;
	if(($answer =~ /PRIVMSG/) && ($answer =~ /hello/i))
	{
		print $con "PRIVMSG #example_channel :hey admin!\r\n";
	}
	if($answer =~ m/^PING (.*?)$/gi)
	{
		print $con "PONG".$1."\r\n";
	}
	$type = unpack("S", getsockname(SOCK));

	if ($type == AF_INET)
	{
	($port, $ipaddr) = sockaddr_in($paddr);
	$quad = inet_ntoa($ipaddr);
	}
	else
	{
		die "unknown address type";
	}
}

well, can any one give me some suggestions and / or maybe fix the code?

i've googled for it, but i can't find anything helpful.


spyware's Avatar
Banned
0 0

Hi everyone. I'm currently building a virus designed for the Wall Street terminals, they gather information and spread using physical devices (USB and such) and the network.

So far I have this.

markup#!/usr/bin/perl/

Does anyone have any suggestions?


fuser's Avatar
Member
0 -1

okay, okay i get it.

thanks for the sarcasm, guys.


spyware's Avatar
Banned
0 0

fuser wrote: okay, okay i get it.

thanks for the sarcasm, guys.

It wasn't sarcasm. It was pure hate covered in a soft, seductive layer of sarcasmish brabble.

Yes I just made that word up.

Yes I hate you.


fuser's Avatar
Member
0 -1

just for that post?


yours31f's Avatar
Retired
10 0

LOL M&S.


ghost's Avatar
0 0

moshbat wrote: Do you know what M&S is?

masturbation and sex