This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | function Invoke-Shellcode | |
| { | |
| <# | |
| .SYNOPSIS | |
| Inject shellcode into the process ID of your choosing or within the context of the running PowerShell process. | |
| PowerSploit Function: Invoke-Shellcode | |
| Author: Matthew Graeber (@mattifestation) | |
| License: BSD 3-Clause | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import discord | |
| from discord.ext import commands | |
| # This prevents staff members from being punished | |
| class Sinner(commands.Converter): | |
| async def convert(self, ctx, argument): | |
| argument = await commands.MemberConverter().convert(ctx, argument) # gets a member object | |
| permission = argument.guild_permissions.manage_messages # can change into any permission | |
| if not permission: # checks if user has the permission | |
| return argument # returns user object |