Räfael
(usa Ubuntu)
Enviado em 03/01/2011 - 20:22h
Gente eu executo este código em Python mais nada acontece, o que há de errado?
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
from Tkinter import *
from Dialog import Dialog
class MainFrame(Frame):
def __init__(self, parent=None):
Frame.__init__(self, parent)
self.grid()
self.createWidgets()
self.master.title("Atalhos")
def createWidgets(self):
self.makeScreen()
self.makeToolBar()
def makeScreen(self):
self.nome = StringVar()
Label(self, text="Atalhos").grid(row=1, sticky=W)
def makeToolBar(self):
toolbar = Frame(self)
toolbar.grid(row=5, columnspan=2)
Button(toolbar, text="Nmap", \
command=self.nmap).grid(row=0,column=0)
Button(toolbar, text="EtherApe", \
command=self.etherape).grid(row=0,column=1)
Button(toolbar, text="Metasploit", \
command=self.msfconsole).grid(row=0,column=2)
Button(toolbar, text="Wireshark", \
command=self.wireshark).grid(row=0,column=3)
Button(toolbar, text="Terminal", \
command=self.terminal).grid(row=0,column=4)
Button(toolbar, text="Fast Track", \
command=self.fasttrack).grid(row=0,column=5)
def nmap(self):
var = os.system("gnome-terminal --nmap")
print var
def etherape(self):
var = os.system("su-to-root -X -c /usr/bin/etherape")
print var
def msfconsole(self):
var = os.system("gnome-terminal --msfconsole")
print var
def wireshark(self):
var = os.system("sudo wireshark")
print var
def terminal(self):
var = os.system("gnome-terminal")
print var
def fasttrack(self):
var = os.system("sudo /home/rafael/fasttrack/fast-track.py")
print var