Guest User

Untitled

a guest
Nov 22nd, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.64 KB | None | 0 0
  1. from Tkinter import *
  2. import Tkinter as tk
  3. from PIL import ImageTk, Image
  4. import os
  5. import time
  6. import sys
  7. from scapy.all import *
  8.  
  9. def terminal():
  10. window = tk.Toplevel(root)
  11. window.title("Terminal")
  12. termf = Frame(window, height=700, width=700)
  13. termf.pack(fill=BOTH, expand=YES)
  14. wid = termf.winfo_id()
  15. os.system('xterm -into %d -geometry 700x700 -sb &' % wid)
  16.  
  17. def wazuh():
  18. pass
  19.  
  20. def securityonion():
  21. window = tk.Toplevel(root)
  22. window.resizable(0,0)
  23. window.title("Security Onion Bomb")
  24. list = open("dests.txt").readlines()
  25. for x in list:
  26. packet = IP(dst=x,src="10.10.10.10")/TCP(dport=999,sport=1234)/"iamhaxor"
  27. send(packet)
  28. print("A PACKET HAS BEEN SENT TO " + x)
  29. time.sleep(2)
  30.  
  31. def endpoint():
  32. pass
  33.  
  34. def help():
  35. pass
  36.  
  37. #setup main window
  38. root = Tk()
  39. img = ImageTk.PhotoImage(Image.open("bluetools.png"))
  40. panel = Label(root, image = img)
  41. panel.pack(side = "bottom", fill = "both", expand = "yes")
  42. root.title("Optometry")
  43. menubar = Menu(root)
  44. root.geometry("500x400")
  45. root.resizable(0,0)
  46. filemenu = Menu(menubar, tearoff=0)
  47.  
  48. # tools menu
  49. filemenu.add_command(label="Launch Terminal", command=terminal)
  50. filemenu.add_command(label="Wazuh Bomb", command=wazuh)
  51. filemenu.add_command(label="Security Onion Bomb", command=securityonion)
  52. filemenu.add_command(label="Endpoint Bomb", command=endpoint)
  53. filemenu.add_command(label="Exit", command=root.quit)
  54. menubar.add_cascade(label="Tools", menu=filemenu)
  55.  
  56. # help menu
  57. helpmenu = Menu(menubar, tearoff=0)
  58. helpmenu.add_command(label="About...", command=help)
  59. menubar.add_cascade(label="Help", menu=helpmenu)
  60. root.config(menu=menubar)
  61. root.mainloop()
Add Comment
Please, Sign In to add comment