Skip to content

Instantly share code, notes, and snippets.

@benabrahamson
Created October 2, 2019 20:08
Show Gist options
  • Save benabrahamson/78250e54f5e413d94629817149016ff5 to your computer and use it in GitHub Desktop.
Save benabrahamson/78250e54f5e413d94629817149016ff5 to your computer and use it in GitHub Desktop.
Use this tool to overload keyword detection spyware
import itertools
from time import sleep
import random
try:
#Python 2
import Tkinter as tk
except ImportError:
#Python 3
import tkinter as tk
from tkinter import filedialog
wordCollection = []
def wordlistSelector():
global wordArray
global indefiniteUseWordlistCheckbutton
wordlistFilePath = tk.filedialog.askopenfilename()
tk.Label(wordlistFrame, text="Uploaded.", font='Arial 9').pack()
#indefiniteUseWordlistCheckbutton.set(1)
wordlistFile = open(wordlistFilePath)
for word in wordlistFile:
wordCollection.append(word.strip())
print(wordCollection)
def disableIndefiniteTitleInput(disable):
if disable:
indefiniteTitleEntry.config(state='disabled')
else:
indefiniteTitleEntry.config(state='normal')
#Indefinite Window Loop
def toggleIndefiniteWindowLoop(): #Toggle button code
state = next(icycle)
t_btn['text'] = str(state)
indefiniteWindowLoop(True)
loopCount = 0
firstRun = True
def indefiniteWindowLoop(toggle=False):
global trackingVar
global loopCount
global firstRun
useWordlist = indefiniteUseWordlist.get()
speed = indefiniteSpeed.get()
slower = indefiniteSlower.get()
hardcore = indefiniteHardcore.get()
hide = indefiniteHide.get()
wait = indefiniteWait.get()
counter = indefiniteCounter.get()
if useWordlist == 1:
disableIndefiniteTitleInput(True)
title = random.choice(wordCollection)
else:
disableIndefiniteTitleInput(False)
title = str(indefiniteTitle.get())
if hide == 1:
root.withdraw()
if wait == 1 and firstRun:
sleep(5)
firstRun = False
if toggle:
if trackingVar:
trackingVar = False
else:
trackingVar = True
if trackingVar:
loopCount = loopCount + 1
win = tk.Tk()
try:
win.iconbitmap(r'C:\Windows\SystemApps\Microsoft.Windows.SecHealthUI_cw5n1h2txyewy\Assets\Threat.contrast-white.ico')
except:
pass
win.title(title)
if counter == 1:
tk.Label(win, text=loopCount).pack()
else:
tk.Label(win, text="").pack()
if speed == 1: #Slow
root.after(2000, indefiniteWindowLoop)
elif speed == 2: #Hardcore
root.after(1, indefiniteWindowLoop)
else: #Normal
root.after(500, indefiniteWindowLoop)
#Main
trackingVar = False
defaultTitle = "" #lol try and block this, keyword filtering ;)
wordlistFile = ""
root = tk.Tk()
root.title(defaultTitle)
try:
root.iconbitmap(r'C:\Windows\SystemApps\Microsoft.Windows.SecHealthUI_cw5n1h2txyewy\Assets\Threat.contrast-black.ico')
except:
pass
screen_width = root.winfo_screenwidth()
screen_height = root.winfo_screenheight()
root.geometry("550x350+%d+%d" % (screen_width/2-275, screen_height/2-125))
menubar = tk.Menu(root)
menubar.add_command(label="Quit", command=quit)
root.config(menu=menubar)
tk.Label(root, text="Ben's Anti-Spyware Toolkit", font='Arial 13 bold').pack()
tk.Label(root, text="Use this tool to overload keyword detection spyware", font='Arial 11').pack()
tk.Label(root, text="(Hardcore mode may only be used if you are a certified hax0r)", font='Arial 7').pack()
tk.Label(root, text="Made by Ben Abrahamson\nhttps://benabrahamson.me\n----------------------------------").pack()
indefiniteTitleFrame = tk.Frame(root)
tk.Label(indefiniteTitleFrame, text="Window Title:", font='Arial 9').pack()
indefiniteTitle = tk.StringVar()
indefiniteTitleEntry = tk.Entry(indefiniteTitleFrame, bd =5, textvariable=indefiniteTitle)
indefiniteTitleEntry.pack()
#Speed Menu
speedFrame = tk.Frame(indefiniteTitleFrame)
tk.Label(speedFrame, text="Speed:", font='Arial 9').pack()
indefiniteSpeed = tk.IntVar()
indefiniteSpeed.set(0)
#Slower
indefiniteSlower = tk.IntVar()
indefiniteSlowerCheckbutton = tk.Radiobutton(speedFrame, text = "Slow", variable=indefiniteSpeed, value = 1)#onvalue = 1, offvalue = 0)
indefiniteSlowerCheckbutton.pack()
#Normal
indefiniteNormal = tk.IntVar()
indefiniteNormalCheckbutton = tk.Radiobutton(speedFrame, text = "Normal", variable=indefiniteSpeed, value = 0)#onvalue = 1, offvalue = 0)
indefiniteNormalCheckbutton.pack()
#Hardcore
indefiniteHardcore = tk.IntVar()
indefiniteHardcoreCheckbutton = tk.Radiobutton(speedFrame, text = "HARDCORE", variable=indefiniteSpeed, value = 2)#onvalue = 1, offvalue = 0)
indefiniteHardcoreCheckbutton.pack()
speedFrame.pack(side='left', expand=1)
#Config Menu
configFrame = tk.Frame(indefiniteTitleFrame)
tk.Label(configFrame, text="Configuration:", font='Arial 9').pack()
indefiniteCounter = tk.IntVar()
indefiniteCounterCheckbutton = tk.Checkbutton(configFrame, text = "Show counter", variable=indefiniteCounter, onvalue = 1, offvalue = 0)
indefiniteCounterCheckbutton.pack()
indefiniteHide = tk.IntVar()
indefiniteHideCheckbutton = tk.Checkbutton(configFrame, text = "Hide this window", variable=indefiniteHide, onvalue = 1, offvalue = 0)
indefiniteHideCheckbutton.pack()
indefiniteWait = tk.IntVar()
indefiniteWaitCheckbutton = tk.Checkbutton(configFrame, text = "Wait 5s before starting", variable=indefiniteWait, onvalue = 1, offvalue = 0)
indefiniteWaitCheckbutton.pack()
configFrame.pack(side='left', expand=1)
#Wordlist Menu
wordlistFrame = tk.Frame(indefiniteTitleFrame)
indefiniteUseWordlist = tk.IntVar()
indefiniteUseWordlistCheckbutton = tk.Checkbutton(wordlistFrame, text = "Use wordlist instead\n of input above", variable=indefiniteUseWordlist, onvalue = 1, offvalue = 0)
indefiniteUseWordlistCheckbutton.pack()
w_btn = tk.Button(wordlistFrame, text="Upload wordlist...", command=wordlistSelector)
w_btn.pack(side='left', expand=1)
wordlistFrame.pack(side='left', expand=1)
#Start button
icycle = itertools.cycle(["Stop", "Start"])
t_btn = tk.Button(root, text="Start", command=toggleIndefiniteWindowLoop)
t_btn.pack()
indefiniteTitleFrame.pack()
root.mainloop()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment