RestoreCord Source Code Save

Source code for Discord bot RestoreCord, token logging, do NOT use RestoreCord.com

Project README

RestoreCord Source Code

Update, restorecord 2024 Next.js source leaked. They were 100% confirmed to be selling user data (search "Inf0sec") and the owner xenos1337 himself added the backdoor (Ctrl + F "Inf0sec") to sell his own users' data.. Beyond pathetic 🤦‍♂️🤦‍♂️🤦‍♂️

And unfortunately there's been a data breach too with customer information leaked :/ this is ridiculous

Proof of owner xenos1337 selling data from personal Telegram account https://nelsoncybersecurity.com/xenos-sell-data.mp4

[!NOTE]
TLDR:
New RestoreCord owner xenos1337 can't really be trusted, with large YouTubers even exposing the scam.
I would recommend either using this source code, or use my new service VaultCord which already has far more features and actively listens to customer feedback 👍

Tutorial video how to host for 100% free forever: https://www.youtube.com/watch?v=804Fzc5j4vo

I created RestoreCord in April 2020, a Discord service for the backup of server members, so server owners could pull them back into a server after a raid or other member loss scenario.

Due to my busy schedule, I hastily sold RestoreCord to a new owner in January 2022. Lesson learned, this isn't how you sell a business. This new owner, 'xenos1337', took things in a new direction. Unfortunately he started catering to scammers and those who sell their members. Meaning, he promoted the sale of members to other random server owners which serves as an annoyance and probably a privacy violation as well. You can see an official sanctioned member-selling marketplace by RestoreCord here.

It also became apparent that xenos1337 was involved with token logging (stealing Discord accounts) and Discord phishing pages (more Discord account stealing). Not exactly what you would want someone who has access to millions of Discord accounts via RestoreCord doing in his free time..

Unsuprisingly, the company operating Discord didn't take kindly to this brazen activity and shut down the bot in June 2022. 1,000,000+ members were lost forever. No explanation or compensation was given by the RestoreCord management to their customers.

xenos1337 had shared his plans to develop a new codebase that would be compatiable with custom bots, one bot per customer. This meant no use for the original source code, which I developed and had retained copyright ownership over, since I never transferred the copyright ownership.

I published the original source code, seen in this GitHub repository. I had the legal right and felt an ethical obligation to do so, as RestoreCord customers were left waiting for months with no explanation or clear ETA when the service would return.

xenos1337 was not happy about this, first attemtping to illegally remove this GitHub repository. Then, he pettily scammed me for $10 and stole my Discord server vanity

He continued to level attacks against me and anyone affiliated with me. He successfully commited credit card fraud on a competitor of RestoreCord that I was affiliating with. He conspired with a former co-worker of mine (@NebulaMods/nebulamods.ca) to DDoS that same RestoreCord competitor, and leak private API credentials that the co-worker stole from my server without consent.

While he did finally stop the attacks, no compensation was ever made for these wrongful, unlawful attacks, nor were RestoreCord customers compensated either for their losses.

The problems continue to this day. Just a few months ago in May 2023, the new owner lost 10,000+ members due to failing to backup his database automatically, which led to him reverting to a 3 month old backup after they were banned from the hosting company OVH for fraud & abuse.

I don't think the new management of RestoreCord has proven to be professional or reliable. That is why I would recommend using the source code or using my new service VaultCord which has far more features and values customer feedback.

The code can be used for commercial use if you would like. The requirements are that you must open-source the code and link to this repository in order to not be in violation of the GNU General Public License v2.0

Do note, however, that absolutely nobody aside from myself (William Nelson) has legal rights to use my logo for RestoreCord, or repost videos I've recorded for RestoreCord. If you do not follow this, you will recieve a copyright takedown.

Features

  • Multi server
  • Restore members
  • IP logging
  • Discord webhook notifications
  • Handles rate limits and access token refreshing. Most bots don't and break when you try to pull members, not this.
  • VPN detection/block
  • IP blacklist

How to setup

PHP and MySQL. Should work on most PHP versions. I tested on PHP 7.4 and PHP 8.0, worked on both. You must have a VPS. Shared hosting such as NameCheap will not work, as you have to run c# application also

Please setup your MySQL database now and import the structure from here https://github.com/wnelson03/RestoreCord-Source-Code/blob/main/restorecord_db_schema.sql

Now for c# part

Note that this is written for Debian 11. For any other distro this is self explanatory. If you can't figure this out then leave.

wget https://packages.microsoft.com/config/debian/11/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
rm packages-microsoft-prod.deb
sudo apt-get update; \
  sudo apt-get install -y apt-transport-https && \
  sudo apt-get update && \
  sudo apt-get install -y dotnet-sdk-5.0 dotnet-runtime-5.0

For this next part make sure you are in the bot's root directory.

dotnet restore
dotnet build

You now have an executable!

Create a service using systemctl, make sure to replace the paths.

[Unit]
Description=Nebula Mods Inc. Restorecord
After=multi-user.target
[Service]
WorkingDirectory=/path/to/working/directory
ExecStart=/path/to/bot/executable 
SyslogIdentifier=Restorecord
Type=idle
Restart=always
RestartSec=15
RestartPreventExitStatus=0
[Install]
WantedBy=multi-user.target

Once you set this up, the bot should come online and slash commands should work, do / and you'll see slash commands

Here's a YouTube video showing how to use the bot https://nelsoncybersecurity.com/restorecord-tutorial.mp4

How to give yourself lifetime premium (replace yourUsernameHere with your username):

UPDATE `users` SET `role` = 'premium',`expiry` = 2224663363 WHERE `username` = 'yourUsernameHere'
Open Source Agenda is not affiliated with "RestoreCord Source Code" Project. README Source: wnelson03/RestoreCord-Source-Code

Open Source Agenda Badge

Open Source Agenda Rating