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: Suscripción al boletín mensual de elhacker.net

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

Desconectado Desconectado

Mensajes: 220



Ver Perfil
[Ruby] Proxy Tester
« en: 16 Octubre 2011, 02:49 »

Un simple programa para testear proxies

Código
#!usr/bin/ruby
#ProxyTester (C) Doddy Hackman 2011
 
require 'net/http'
 
 
def uso
 print "\n[+] proxy.rb <file>\n"
end
 
def head()
 print "\n\n -- == Proxy Tester == --\n\n"
end
 
def copyright()
  print "\n\n(C) Doddy Hackman 2011\n\n"
  exit(1)
end
 
def testar(tengo)
 
if tengo=~/(.*):(.*)/
host = $1
port = $2
begin
 
new = Net::HTTP.new(proxy=host,proxy_port=port)
code = new.get("http://127.0.0.1/sql.php")#http://www.petardas.com
case code
 when Net::HTTPSuccess
 print "[Proxy Found] : #{host}:#{port}\n"
end
rescue
end
end
end
 
 
head()
if !ARGV[0]
 uso()
else
archivo = File.open(ARGV[0])
print "\n[+] Scanning file\n\n\n"
lineas = archivo.readlines
lineas.each {
|linea|
linea = linea.chomp
testar(linea) #funcion
}
archivo.close
copyright()  
end
copyright()
 
# ¿ The End ?
 


En línea

Páginas: [1] Ir Arriba Respuesta Imprimir 

Ir a:  

Mensajes similares
Asunto Iniciado por Respuestas Vistas Último mensaje
Ruby y Ruby on Rails
Programación General
Nanocity 2 675 Último mensaje 31 Octubre 2007, 21:32
por alone-in-the-chat
[Introducing Ruby] Lo que debes saber sobre Ruby
Scripting
RyogiShiki 0 1,946 Último mensaje 4 Marzo 2011, 20:45
por RyogiShiki
[Python] Proxy Tester
Scripting
Doddy 0 253 Último mensaje 16 Octubre 2011, 02:52
por Doddy
[Perl] Proxy Tester 0.5
Scripting
Doddy 0 86 Último mensaje 12 Mayo 2012, 20:51
por Doddy
[Perl Tk] Proxy Tester 0.5
Scripting
Doddy 0 98 Último mensaje 12 Mayo 2012, 20:52
por Doddy
Powered by SMF 1.1.16 | SMF © 2006-2008, Simple Machines