Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from Tkinter import *
- import Tkinter as tk
- from PIL import ImageTk, Image
- import os
- import time
- import sys
- from scapy.all import *
- def terminal():
- window = tk.Toplevel(root)
- window.title("Terminal")
- termf = Frame(window, height=700, width=700)
- termf.pack(fill=BOTH, expand=YES)
- wid = termf.winfo_id()
- os.system('xterm -into %d -geometry 700x700 -sb &' % wid)
- def wazuh():
- pass
- def securityonion():
- window = tk.Toplevel(root)
- window.resizable(0,0)
- window.title("Security Onion Bomb")
- list = open("dests.txt").readlines()
- for x in list:
- packet = IP(dst=x,src="10.10.10.10")/TCP(dport=999,sport=1234)/"iamhaxor"
- send(packet)
- print("A PACKET HAS BEEN SENT TO " + x)
- time.sleep(2)
- def endpoint():
- pass
- def help():
- pass
- #setup main window
- root = Tk()
- img = ImageTk.PhotoImage(Image.open("bluetools.png"))
- panel = Label(root, image = img)
- panel.pack(side = "bottom", fill = "both", expand = "yes")
- root.title("Optometry")
- menubar = Menu(root)
- root.geometry("500x400")
- root.resizable(0,0)
- filemenu = Menu(menubar, tearoff=0)
- # tools menu
- filemenu.add_command(label="Launch Terminal", command=terminal)
- filemenu.add_command(label="Wazuh Bomb", command=wazuh)
- filemenu.add_command(label="Security Onion Bomb", command=securityonion)
- filemenu.add_command(label="Endpoint Bomb", command=endpoint)
- filemenu.add_command(label="Exit", command=root.quit)
- menubar.add_cascade(label="Tools", menu=filemenu)
- # help menu
- helpmenu = Menu(menubar, tearoff=0)
- helpmenu.add_command(label="About...", command=help)
- menubar.add_cascade(label="Help", menu=helpmenu)
- root.config(menu=menubar)
- root.mainloop()
Add Comment
Please, Sign In to add comment