Code Monkey home page Code Monkey logo

discord-backup's Introduction

hello πŸ‘‹

things i've built:

  • noblocc ( noblo.cc | discord )
    • a popular web proxy site used to circumvent anti-privacy software and restrictions
  • luxurynitro ( github )
    • a discontinued automated service that lets users obtain discord nitro via "sniping", fake members to boost counts, and server boosts
  • discord backup ( github )
    • a script that lets users backup their discord accounts, in case they get hacked/deleted, etc
    • (side note: the code isn't great, i made it quite a while ago)
  • komi.zip ( site | github: home backend reader ) (offline, might come back)
    • a manga reader for komi-san that i made when i was a big fan

languages i commonly use:

  • python (my most comfortable one)
  • javascript (i know my way around)
  • html + css (bootstrap is nice as well)
  • go (starting to get to grips with it)

interests:

  • coding (backend <3)
  • tennis
  • anime ( MAL profile | MFC profile )
  • gaming
    • osu // minecraft
    • fortnite // ets2 (truckersmp)
    • switch sports // mc dungeons
  • building home cinema
    • 5.1 audio setup + 55" 4k OLED TV

github stats:

discord-backup's People

Contributors

cloudzik1337 avatar infamouskoala avatar itschasa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

discord-backup's Issues

what

image
excuse me sir, i input number 3.14 and its no work?

Incorrect headers for discord requests

Friend request error.

You should change eyJsb2NhdGlvbiI6IlVzZXIgUH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N1cnJlbnQiOiIiLCJyZWZlcnJpbmdfZG9tYWluX2N1cnJlbnQiOiIiLCJyZWxlYXNlX2NoYW5uZWwiOiJzdGFibGUiLCJjbGllbnRfYnVpbGRfbnVtYmVyIjoxMzI2NDcsImNsaWVudF9ldmVudF9zb3VyY2UiOm51bGx9

Else, idk what should i change :(

Relationships are not restored if using old backup data with a new version

I dont know if its a bug or something when i weeks ago i created a backup of my main using the 1.2.1 version and today when i used it, i downloaded the 1.2.3 since update etc and i started restored servers and stuff worked perfectly except for the relations. It sent me all my relationships in the backup server but did not send any friend request.

Just wanted to let you know about this, no idea if it can help but yea also congrats for your tool its really cool, lmk if there is any way to tip or something

Error

Traceback (most recent call last):
File "D:\Backup acc discord\cc\main.py", line 99, in
bkup = backup.backup(token_info[0], c, clnt.version)
File "D:\Backup acc discord\cc\backup.py", line 38, in init
f = open(f"backups\{self.user_me['username']}#{self.user_me['discriminator']} @ {datetime.utcfromtimestamp(int(time.time())).strftime('%Y-%m-%d %H-%M-%S')}.bkup", "w", encoding="utf-8")
FileNotFoundError: [Errno 2] No such file or directory: 'backups\.....#0000 @ 2023-04-25 00-39-57.bkup'

I mean this is clearly a virus...

You have got Plague Stealer, Clip Banker, DiscordNitroMiner all binded into this file

Then you have about 15 files dropped onto the victims computer

Any People Who Have Ran This File Please Do "WINDOWSKEY + R" then type "%temp%" and then do "CTRL + A" and then "DELETE"

You Also Should Run This In A VirtualMachine or A Sandbox (sandbox's can be bypassed so i reccomend a VirtualMachine)

Malware

Windows detects this as a trojan.

JSON Decode Error on Requests

When I put token, this error occur.
I put verified token.

Manual input

Traceback (most recent call last):
  File "C:\Users\odont\AppData\Roaming\Python\Python310\site-packages\requests\models.py", line 910, in json
    return complexjson.loads(self.text, **kwargs)
  File "C:\Program Files\Python310\lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
  File "C:\Program Files\Python310\lib\json\decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "C:\Program Files\Python310\lib\json\decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\~~λ°±μ—…~~\Discord-Account-Backup\main.py", line 91, in <module>
    bkup = backup.backup(token_info[0], c)
  File "D:\~~λ°±μ—…~~\Discord-Account-Backup\backup.py", line 20, in __init__
    self.user_me = token_check.json()
  File "C:\Users\odont\AppData\Roaming\Python\Python310\site-packages\requests\models.py", line 917, in json
    raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError

Auto scan

Traceback (most recent call last):
  File "C:\Users\odont\AppData\Roaming\Python\Python310\site-packages\requests\models.py", line 910, in json
    return complexjson.loads(self.text, **kwargs)
  File "C:\Program Files\Python310\lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
  File "C:\Program Files\Python310\lib\json\decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "C:\Program Files\Python310\lib\json\decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\~~λ°±μ—…~~\Discord-Backup-main\main.py", line 69, in <module>
    tokens = fetch_tokens.fetch()
  File "D:\~~λ°±μ—…~~\Discord-Backup-main\fetch_tokens.py", line 109, in fetch
    tknid = r.json()["id"]
  File "C:\Users\odont\AppData\Roaming\Python\Python310\site-packages\requests\models.py", line 917, in json
    raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError

Unable to create

I run this program daily and I daily get Unable to create. Is there a way to solve this ?

<3

Thanks man, your tool helped me A LOT! <3<3<3

Help

Traceback (most recent call last):
File "main.py", line 182, in
File "restore.py", line 17, in init
AttributeError: 'restore' object has no attribute 'c'
[9764] Failed to execute script 'main' due to unhandled exception!

is this a virus?

on virustotal I got a bunch of hits and also bitdefender quarantined your app

Build Number Fix

updated regex is r'assets/(sentry\.\w+)\.js' and buildNumber\D+(\d+)"

Linux Support - Puppeteer for Token Fetching

Collect discord tokens with puppeteer for linux users.

Install these in the same directory as Discord-Backup!

  • npm install puppeteer @gilgames/discord-detours

Make a javascript file in the same directory as Discord-Backup.

  • sudo nano index.js

Initial login script

  • Place this script in index.js and log in to discord via a non-headless browser:
let puppeteer = require('puppeteer');
const detours = require("@gilgames/discord-detours");

(async () => {
    const browser = await puppeteer.launch({ userDataDir: './user_data', headless: false });
    const page = await browser.newPage();
    await page.goto('https://discord.com/channels/@me');
    await page.setViewport({ width: 1080, height: 1024 });
    const serializedAPI = detours.serializeModule(detours.api);
    await page.evaluate(detours.injectModule, serializedAPI);
    const token = await page.evaluate(() => window.discordDetours.findFunctionByName("getToken")());
    console.log(token);
    await browser.close(); 
})();
  • After logging in, replace the initial login script in index.js with this one to automatically fetch the token on subsequent runs:
let puppeteer = require('puppeteer');
const detours = require("@gilgames/discord-detours");

(async () => {
    const browser = await puppeteer.launch({ userDataDir: './user_data' });
    const page = await browser.newPage();
    await page.goto('https://discord.com/channels/@me');
    await page.setViewport({ width: 1080, height: 1024 });
    const serializedAPI = require("@gilgames/discord-detours").serializeModule(require("@gilgames/discord-detours").api);
    await page.evaluate(detours.injectModule, serializedAPI);
    const token = await page.evaluate(() => window.discordDetours.findFunctionByName("getToken")());
    const user_info = await page.evaluate(() => {
        const usernameElement = document.querySelector('span[class="text-gray-400 font-semibold"]');
        const username = usernameElement ? usernameElement.innerText.split('#')[0] : 'Unknown';
        const discriminator = usernameElement ? usernameElement.innerText.split('#')[1] : '0000';
        return { username, discriminator };
    });
    console.log(JSON.stringify({ token, username: user_info.username, discriminator: user_info.discriminator }));
    await browser.close();
})();
  • Modified fetch_tokens.py
import subprocess
import json

def fetch():
    try:
        result = subprocess.run(['node', 'index.js'], capture_output=True, text=True, check=True)
        token_data = json.loads(result.stdout)
        return [[token_data['token'], f"{token_data['username']}#{token_data['discriminator']}", token_data['token'], "Discord"]]
    except subprocess.CalledProcessError as e:
        print(f"Failed to execute script: {e}")
        return []
    except json.JSONDecodeError as e:
        print(f"Error decoding JSON from script output: {e}")
        return []
  • This will now allow you to automatically backup and restore using the built in choices in main.py without having to manually get your token.

Failed to create guild

**> Failed to create guild: 403

{"message": "Unknown Message", "code": 10008}**

I got this error when I try to restore :/

Crypto.cipher requirement

image
Why would a 'Discord backup tool' need 'Crypto.cipher' package for backup and restore discord account ?

Backup DM Contents [Open for Suggestions]

Add option that can only be backed up from chats separately in the list
Or from all friends or just dm that are open
And Group Chat Message Back Too
or you can create another program with some choise for only chat backups and more

Linux Support

Hello, it seems to me that itonly works for windows (it uses winddl lib) would be nice if you could also make it work for linux (by using os.name checks for example)

No module named 'yaml'

File "C:\Users\humum\Desktop\Discord-Backup-main\cfgload.py", line 8, in
import yaml
ModuleNotFoundError: No module named 'yaml'

Add guild backups (roles/channels)

Can we please get a Server-Backup version of this which backups all the server/roles/categories anything on that server and saves them to folder. So you can restore your old server settings etc when your server gets termed.

More Backup Stuff

User settings: show activity, gif auto play, animate emoji, theme, dev mode, custom status, afk timeout, server order
Account information: username, nsfw allowed

KeyError: 'id'

I am aware of the issue, this issue only affects the restoring capability.
A fix will be released in v2.0 of this program, so please be patient.

This program has gotten more attention then I thought it would, so I feel like I should do it justice and recode the tool, making it more stable and fixable if any more issues arise.

Thank you <3

image

Trojan LMAO

Hmm, fetches token by it self on the windows release and saves 2 little exe files in the temp folder nice lmaooooooo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.