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:15  


Tema destacado: Nueva página de elhacker.net en Google+ Google+

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

Desconectado Desconectado

Mensajes: 220



Ver Perfil
[Python] Proxy Tester
« en: 16 Octubre 2011, 02:52 »

Un simple programa para testear proxies

Código
#!usr/bin/python
#Proxy Tester (C) Doddy Hackman 2011
 
import urllib2,sys
 
 
def toma(web) :
return nave.open(web).read()
 
def header() :
print "\n\n--== Proxy Tester ==--\n"
 
def copyright() :
print "\n\n(C) Doddy Hackman 2011\n"
sys.exit(1)
 
def sintax() :
print "\n[*] Sintax : ",sys.argv[0]," <file>"
 
def testar(host):
try:
 proxy = urllib2.ProxyHandler({"http":host})
 nave = urllib2.build_opener(proxy)
 nave.add_header = [('User-Agent','Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5')]
 urllib2.install_opener(nave)
 urllib2.urlopen("http://127.0.0.1/sql.php")#
 print "[+] Proxy Found : "+host
except:
 pass
 
header()
if len(sys.argv) != 2 :
sintax()
else :
print "\n[+] Opening file\n\n"
try:
 hosts = open(sys.argv[1], "r").readlines()
except :
 print "\n[-] Error opening file\n"
for host in hosts:
 host = host.replace("\r","").replace("\n","")
 testar(host)
copyright()
 
#  The End
 


En línea

Páginas: [1] Ir Arriba Respuesta Imprimir 

Ir a:  

Mensajes similares
Asunto Iniciado por Respuestas Vistas Último mensaje
Extractor de Proxy [ProxyCheck Incluido] by OzX (python)
Scripting
OzX 9 1,770 Último mensaje 29 Octubre 2008, 05:14
por Littlehorse
[Python] RFI Tester
Scripting
Doddy 0 146 Último mensaje 7 Octubre 2011, 01:39
por Doddy
[Ruby] Proxy Tester
Scripting
Doddy 0 269 Último mensaje 16 Octubre 2011, 02:49
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