So, you' ll probably need more powerful IRC bots, but these perl bots helped me a lot understanding how to build my personal "home made" IRCBot. These script are pretty old, I came into this topic several years ago... but they works great also today.
#!/usr/bin/perl -w
# First and Basic Example of IRC bot
# https://marcoramilli.blogspot.com
##################################
use IO::Socket;
my $server = $ARGV[1];
my $user = 'marcoramilli';
my $botnick = $ARGV[0];
my $nickservpass = $ARGV[2];
if(@ARGV < 2) {
print STDOUT "Usage: $0 [nick] [server] [nickserv pass] -- if nickname is not registered , leave it blank.n";
exit; }
$con = IO::Socket::INET->new(PeerAddr=>$server,
PeerPort=>'6667', # change this if needed..
Proto=>'tcp',
Timeout=>'30') || print "Error: Connectionn";
print $con "USER $userrn";
print $con "NICK $botnickrn";
if(@ARGV == 3) {
print $con "privmsg nickserv IDENTIFY $nickservpassrn"; } # if $ARGV[2] exists..
print $con "JOIN #channelrn"; # modify that ..
while($answer = ) {
# #
# add code here #
# #
if($answer =~ m/^PING (.*?)$/gi) {
print $con "PONG ".$1."n"; # replying to pings..
}
print STDOUT $answer; # printing $answer to the terminal..
}
I definitely suggest to take a look to my small but interesting ICRBot collection if you are interested on having some basic about bot programming. You probably want to reuse part of the code and/or mix it with your own. In the collection you'll find :
Obviously everything is only for research purpose on socket programming and on computer science security. The bots cannot be installed on unaware systems, you can install the bots only on your own systems.
Have fun !

Introduction i-SOON (上海安洵), a prominent contractor for various Chinese government agencies such […]
When I saw a threat actor hijacking the X account of Google's […]
LOCKBIT 3.0 is a notorious Ransomware Group that was first identified on […]