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

 

 


Tema destacado: Tutorial básico de Quickjs


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


Desconectado Desconectado

Mensajes: 545



Ver Perfil
[Python] HTTP Console By Doddy H
« en: 7 Octubre 2011, 01:37 am »

Bueno , este es un simple programa en python hecho en tk que permite mandar
peticiones webs a un servidor en concreto


Código
  1. #!usr/bin/python
  2. #Console (C) Doddy Hackman 2011
  3.  
  4. from Tkinter import *
  5. import socket
  6.  
  7. global x,socket
  8.  
  9. def execa() :
  10.  
  11.  
  12. s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
  13. s.connect((str(host.get()),80))
  14. s.send(cmd.get()+"\r\n")
  15. data = s.recv(666)
  16. s.close()
  17. panel.insert(END,repr(data))
  18.  
  19.  
  20.  
  21. window = Tk()
  22. window.title("HTTP Console (C) Doddy Hackman 2011")
  23.  
  24. window.maxsize(width="400",height="350")
  25. window.minsize(width="400",height="350")
  26.  
  27. window.configure(background="black")
  28. window.configure(cursor="tcross")
  29.  
  30. host = StringVar()
  31. cmd = StringVar()
  32.  
  33. panel = Text(window,width=30,height=15,bg="black",fg="red")
  34.  
  35. Label(window,bg="black").grid(row=3)
  36.  
  37. Label(window,text="Host : ",bg="black",fg="red").grid(row=4,column=4)
  38. entry = Entry(window,width=35,textvariable=host,bg="black",fg="red").grid(row=4,column=5)
  39.  
  40. Label(window,text="Command : ",bg="black",fg="red").grid(row=8,column=4)
  41. entry = Entry(window,width=35,textvariable=cmd,bg="black",fg="red").grid(row=8,column=5)
  42.  
  43. Button(text="Cargar",bg="black",fg="red",activebackground="red",command=execa).grid(row=8,column=9)
  44.  
  45.  
  46. Label(window,bg="black").grid(row=19)
  47. panel.grid(row=20,column=5)
  48.  
  49.  
  50. window.mainloop()
  51.  



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

Páginas: [1] Ir Arriba Respuesta Imprimir 

Ir a:  

Mensajes similares
Asunto Iniciado por Respuestas Vistas Último mensaje
[Python] Console By Doddy H
Scripting
BigBear 0 1,454 Último mensaje 7 Octubre 2011, 01:32 am
por BigBear
[Python] Finder Admin By Doddy H
Scripting
BigBear 0 2,397 Último mensaje 7 Octubre 2011, 01:33 am
por BigBear
[Python] Fuzz DNS By Doddy H
Scripting
BigBear 0 1,399 Último mensaje 7 Octubre 2011, 01:34 am
por BigBear
[Python] Google Inyector By dODDY h
Scripting
BigBear 0 1,721 Último mensaje 7 Octubre 2011, 01:36 am
por BigBear
[Python] HellRat By Doddy H
Scripting
BigBear 0 1,470 Último mensaje 7 Octubre 2011, 01:37 am
por BigBear
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines