This repository has been archived on 2024-10-24. You can view files and clone it, but cannot push or open issues or pull requests.
NG_KillSwitch/payload.py
Stanislav Mykhailenko 9feb845d3c
Initial commit
2023-01-31 15:27:10 +02:00

25 lines
521 B
Python

# Project: Telegram PC kill switch bot
# Author: Stanislav Mykhailenko
# License: Unlicense
# This file contains the payloads
import ctypes, os, pyttsx3
def enableInput():
ctypes.windll.user32.BlockInput(False)
def disableInput():
ctypes.windll.user32.BlockInput(True)
def lockScreen():
ctypes.windll.user32.LockWorkStation()
def formatVolumes(volumes):
for volume in volumes:
os.system('format ' + volume + ' /y')
def playMessage(message):
engine = pyttsx3.init()
engine.say(message)
engine.runAndWait()