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

 

 


Tema destacado: ¿Eres nuevo? ¿Tienes dudas acerca del funcionamiento de la comunidad? Lee las Reglas Generales


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


Desconectado Desconectado

Mensajes: 545



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

Bueno este es un simple ejecutor de comandos hecho en tk

Código
  1.  
  2. #!usr/bin/python
  3. #Console (C) Doddy Hackman 2011
  4.  
  5. from Tkinter import *
  6. import subprocess
  7.  
  8. global x
  9.  
  10. def execa() :
  11.  re = subprocess.Popen(cmd.get(),shell=True,stdin=subprocess.PIPE,stdout=subprocess.PIPE,stderr=subprocess.PIPE)
  12.  if re:
  13.   panel.insert(END,re.stdout.read())
  14.  else:
  15.   panel.insert(END,re.stderr.read())
  16.  
  17.  
  18. window = Tk()
  19. window.title("Console (C) Doddy Hackman 2011")
  20.  
  21. window.maxsize(width="400",height="320")
  22. window.minsize(width="400",height="320")
  23.  
  24. window.configure(background="black")
  25. window.configure(cursor="tcross")
  26.  
  27. cmd = StringVar()
  28. panel = Text(window,width=30,height=15,bg="black",fg="green")
  29.  
  30. Label(window,bg="black").grid(row=1)
  31. Label(window,text="Command : ",bg="black",fg="green").grid(row=3,column=4)
  32.  
  33. entry = Entry(window,width=35,textvariable=cmd,bg="black",fg="green").grid(row=3,column=5)
  34.  
  35. Button(text="Cargar",bg="black",fg="green",activebackground="green",command=execa).grid(row=3,column=9)
  36.  
  37.  
  38. Label(window,bg="black").grid(row=4)
  39. panel.grid(row=10,column=5)
  40.  
  41.  
  42. window.mainloop()
  43.  


« Última modificación: 8 Octubre 2011, 19:03 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] Easy Inyector By Doddy H
Scripting
BigBear 1 2,220 Último mensaje 28 Agosto 2012, 03:39 am
por HIRONAKAMURA
[Python] HellRat By Doddy H
Scripting
BigBear 0 1,483 Último mensaje 7 Octubre 2011, 01:37 am
por BigBear
[Python] HTTP Console By Doddy H
Scripting
BigBear 0 1,498 Último mensaje 7 Octubre 2011, 01:37 am
por BigBear
[Python] Phising Gen By Doddy H
Scripting
BigBear 0 1,826 Último mensaje 7 Octubre 2011, 01:39 am
por BigBear
[Python] Zapper By Doddy H
Scripting
BigBear 0 1,459 Último mensaje 7 Octubre 2011, 01:39 am
por BigBear
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines