El codigo.
Código
#!usr/bin/perl #King Spam 0.8 #(C) Doddy Hackman 2014 use IO::Socket; use Win32::OLE; menu(); copyright(); sub menu { head(); [++] Options [+] 1 : Spam IRC Channel [+] 2 : Spam E-mail Address [+] 3 : About [+] 4 : Exit ); $SIG{INT} = \&volver; if ( $op eq "1" ) { my @spamnow = cargarword($archivo); if ( my $socket = new IO::Socket::INET( PeerAddr => $hostname, PeerPort => $port, Proto => "tcp" ) ) { while ( my $log = <$socket> ) { if ( $log =~ /^PING(.*)$/i ) { } if ( $log =~ m/:(.*) 353 (.*) = (.*) :(.*)/ig ) { while (true) { my $pro = $4; foreach $names (@nicks) { unless ( $nombre eq $names ) { $names =~ s/\@//; print $socket "MSG $names $spamnow[rand(@spamnow)]\r\n"; } } } } } } else { <stdin>; menu(); } } elsif ( $op eq "2" ) { for my $num ( 1 .. $count ) { sendmail( $host, $puerto, $username, $password, $username, $username, $username, $to, $asunto, $body, $file ); } <stdin>; menu(); } elsif ( $op eq "3" ) { "\n\n[+] This program was written by Doddy Hackman in the summer of the 2014\n"; <stdin>; menu(); } elsif ( $op eq "4" ) { copyright(); <stdin>; } else { menu(); } } #Functions sub sendmail { ## Function Based on : http://code.activestate.com/lists/pdk/5351/ ## Credits : Thanks to Phillip Richcreek and Eric Promislow my ( $host, $port, $username, $password, $from, $cc, $bcc, $to, $asunto, $mensaje, $file ) = @_; $correo = Win32::OLE->new('CDO.Message'); $correo->Configuration->Fields->SetProperty( "Item", 'http://schemas.microsoft.com/cdo/configuration/sendusername', $username ); $correo->Configuration->Fields->SetProperty( "Item", 'http://schemas.microsoft.com/cdo/configuration/sendpassword', $password ); $correo->Configuration->Fields->SetProperty( "Item", 'http://schemas.microsoft.com/cdo/configuration/smtpserver', $host ); $correo->Configuration->Fields->SetProperty( "Item", 'http://schemas.microsoft.com/cdo/configuration/smtpserverport', $port ); $correo->Configuration->Fields->SetProperty( "Item", 'http://schemas.microsoft.com/cdo/configuration/smtpusessl', 1 ); $correo->Configuration->Fields->SetProperty( "Item", 'http://schemas.microsoft.com/cdo/configuration/sendusing', 2 ); $correo->Configuration->Fields->SetProperty( "Item", 'http://schemas.microsoft.com/cdo/configuration/smtpauthenticate', 1 ); $correo->Configuration->Fields->Update(); if ( -f $file ) { $correo->AddAttachment($file); } $correo->{From} = $from; $correo->{CC} = $cc; $correo->{BCC} = $bcc; $correo->{To} = $to; $correo->{Subject} = $asunto; $correo->{TextBody} = $mensaje; $correo->Send(); } sub volver { <stdin>; menu(); } sub cargarword { my @words; my @r; @words = <FILE>; close FILE; for (@words) { } } sub limpiarpantalla { if ( $^O =~ /Win/ ) { } else { } } sub head { limpiarpantalla(); @ @ @ @ @ @@@@ @@@ @@@@@ @ @ @ @ @ @ @@ @ @ @ @ @ @ @ @ @ @ @ @ @ @@ @ @ @ @ @ @ @ @@ @@ @@ @ @ @ @ @ @ @ @ @ @ @@ @@ @@ @ @ @ @ @ @@@ @@@ @@@@@ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @@ @ @ @ @ @@@@@ @ @ @ @ @ @ @ @@ @ @@ @ @ @ @ @ @ @ @ @ @ @ @ @ @@@ @ @@@ @ @ @ @ @ ); } sub copyright { } # The End ?