Stealing Storage from Discord
Summary
TLDRこのビデオでは、無料で大きな容量のファイルを保存する方法が紹介されています。Google Driveの無料ストレージが不足し、有料アップグレードを勧められた際に、ソフトウェア工学の知識を駆使してDiscordを活用してファイルを保存する方法を提案します。YouTubeはビデオのアップロードに適しているものの、圧縮によるデータ損失が懸念されるため、Discordの25MBのファイルサイズ制限を利用して、ファイルを小さなチャンクに分割してアップロードする手法を開発しました。プライバシーを確保するために、チャンクを暗号化し、Discordサーバー上でのみアクセス可能な方法でデータを保管しています。実際にデータをアップロードし、ダウンロードするプロセスも解説されており、データの整合性と持続可能性についても触れられています。
Takeaways
- 🔑 作者在上传文件到Google Drive时注意到了免费存储空间即将用完的警告横幅。
- 💼 Google Drive的付费存储计划相对便宜,但作者选择了不花钱的方案。
- 🛠️ 作者利用软件工程知识,通过牺牲时间和理智,避免了大约50美元的支出。
- 🎵 作者通过将文件存储在Discord上,实现了免费存储数百GB的文件。
- 📚 作者提到了iCloud和Google Drive等云存储服务的免费限制,并考虑了免费获取大量存储空间的可能性。
- 📈 作者认为社交媒体平台本质上是上传文件并与他人分享的地方,可以利用这一点来获取免费存储。
- 📹 作者首先考虑使用YouTube作为存储平台,但由于转换、上传和压缩的问题,最终放弃了这个想法。
- 🗣️ 作者选择了Discord作为存储平台,尽管有25MB的文件大小限制。
- 🔒 作者通过创建只有机器人和自己在内的Discord服务器来保持文件的私密性。
- 🔒 作者还通过加密每个文件块来进一步保护隐私,即使有人能够访问Discord上的附件,也无法阅读数据。
- 📈 作者通过编写前端和后端程序,实现了文件的上传和下载,尽管这个过程比较慢。
- 📊 作者进行了速度测试,发现上传55GB的文件需要2.5小时,下载速度稍快。
- 📅 经过几个月的测试,作者确认上传的文件没有过期,仍然可以下载和解码。
- ⚠️ Discord宣布将改变外部CDN链接的工作方式,作者计划在变更后进行跟进,以检查其存储方法是否仍然有效。
Q & A
Google Driveの無料ストレージ容量に近づいたらどのような警告が表示されると説明されていますか?
-Google Driveの無料ストレージ容量に近づくと、上部に小さなバナーが表示され、追加のストレージを購入するよう促す警告が表示されると説明されています。
ストレージの価格は現在どのような状況にあると話されていますか?
-ストレージの価格は現在歴史的低水準にあると話されています。
なぜ話者はGoogle Driveのストレージ容量を購入するのを避けたいと考えていますか?
-話者はソフトウェア工学の知識を使って時間をかけてお金を使わずにデータを保存したいと考えています。
話者はなぜDiscordを使ってデータを無料で保存しようと思ったのですか?
-Discordは無料でファイルをアップロードできるサービスであり、各ファイルは25メガバイトまでの制限がありますが、大きなファイルを25メガバイトのチャンクに分割してアップロードできると話されています。
YouTubeをストレージとして使用するアイデアはなぜ却下されましたか?
-YouTubeはビデオファイルのみをサポートし、変換、アップロード、ダウンロードが遅いという欠点があり、また圧縮によってデータが失われる可能性があるため却下されました。
Discordでファイルをアップロードする際のファイルサイズの制限は何バイトですか?
-Discordでファイルをアップロードする際のファイルサイズの制限は25メガバイトです。
話者はDiscordアプリケーションを作成し、どのような機能を実装しましたか?
-話者はDiscordアプリケーションを作成し、ファイルを25メガバイトのチャンクに分割し、各チャンクをDiscordサーバーにアップロードする機能を実装しました。
アップロードされたファイルがDiscord上で公開される可能性があるため、話者はどのようにプライバシーを確保しようとしていますか?
-話者はファイルをチャンクに分割して暗号化し、ダウンロード時に復号化することでプライバシーを確保しようとしています。
話者はDiscordにデータをアップロードするプロセスはどのくらいの時間がかかりましたか?
-アップロードは時間がかかり、特に大きなファイルでは数時間かかることがあると話されています。
アップロードとダウンロードの速度はどのくらいでしたか?
-アップロードは約2分45秒/ギガバイト、ダウンロードは約1分40秒/ギガバイトと評価されています。
Discordが外部CDNリンクの動作を変更する予定があることについて話者はどのように対応する予定ですか?
-話者は変更が行われた後にフォローアップビデオを計画しており、その変更が現在の方法に影響を与えるかどうかを確認する予定です。
Outlines
😀 Google DriveとDiscordを使った無料でストレージを確保する
ビデオでは、Google Driveの無料ストレージが不足し、アップグレードを促すバナーに遭遇したことから、無料でストレージを確保する方法を探求します。YouTubeはビデオを無料でアップロードできるが、コンバージョンとアップロードが遅く、圧縮によりデータが失われる可能性があるという欠点がありました。しかし、Discordは25MBまでのファイルを無料でアップロードでき、チャンネルを作成してボットとのみで管理することでプライバシーを確保することができます。
🔒 Discordを利用してファイルを安全にアップロードする
Discordを利用してファイルをアップロードする際には、プライバシーの問題が懸念されますが、チャンネルID、メッセージID、添付ファイル名を知る必要があるため、安全です。しかし、より安全に保つために、ファイルをチャンクに分割して暗号化し、Discordにアップロードします。ダウンロード時には、各チャンクを復号化して元のファイルに戻します。この方法で、Discord上でデータを安全に保管し、アップロードとダウンロードの速度も測定されていますが、遅いと感じるかもしれません。Discordは外部CDNリンクを変更する予定で、外部からのリンクは24時間後に失効するという変更もありますが、Discord内からのリンクは機能し続けます。
Mindmap
Keywords
💡Google Drive
💡ストレージプラン
💡ソフトウェアエンジニアリング
💡Discord
💡ファイルのチャンキング
💡エンコードとデコード
💡暗号化
💡アップロードとダウンロード
💡データの整合性
💡Discord API
Highlights
The user uploaded files to Google Drive and noticed a banner warning about approaching free data limits.
Google Drive's storage plans are not too expensive, but the user prefers a $0 solution.
The user considered using software engineering to avoid spending money on storage.
The idea of getting a lot of free storage by exploiting social media platforms was proposed.
YouTube was initially considered for its ability to upload large video files for free.
FFMpeg was suggested as a tool to convert various file types to video for YouTube storage.
Drawbacks of using YouTube include slow conversion, upload times, and potential data corruption due to compression.
Discord was identified as a superior alternative for free storage due to its file upload feature.
Discord has a 25-megabyte limit per file, but files can be split into smaller chunks.
The user created a Discord application and server to handle file uploads and downloads.
A React front end was developed for a simple file upload interface.
Files are split into 25-megabyte chunks, encrypted, and uploaded as Discord message attachments.
Discord's public nature raises privacy concerns, so the user suggests creating a private server.
Encrypting file chunks ensures privacy even if someone gains access to the Discord server.
The process of uploading files to Discord is time-consuming but feasible.
Performance tests show slow upload and download speeds, but acceptable for infrequent access.
Discord's recent policy changes regarding external CDN links may affect the storage method.
The user plans to make a follow-up video to address potential impacts of Discord's policy changes.
Transcripts
the other day I was uploading some files
to my Google Drive like I do sometimes
and I noticed this little Banner at the
top warning me that I was getting close
to my free data allocation and
encouraging me to give Google just a
little bit of money for some more
storage looking at their plans these are
actually not too terribly expensive and
storage prices are currently at historic
low so I could even buy myself a terab
or so for a pretty reasonable price but
you know what's an even more reasonable
price $0 so using a bit of software
engineering knowhow I wisely traded tens
of hours of my life and much of the
sanity I had left to avoid spending
probably $50 here's how I managed to
store hundreds of gigabytes of my files
on Discord for
[Music]
free if you're like me you have a lot of
files and you're probably getting pretty
close to the free limits for iCloud or
Google drive if you're not already
paying for extra storage but I've been
thinking if you can get a little bit of
storage for free why can't you get a lot
of free storage if you think about it
every social media platform is really
just a place where you can upload your
files or content if you prefer and have
other people look at them right Facebook
YouTube Instagram they're all the same
you upload your files and share them
with people the key part to keep in mind
here is that mostly these companies
might set limits on file sizes or
quantities per post but they usually
don't limit the amount of data a single
user or account can upload and we can
absolutely abuse this feature to get as
much storage as we want for
free my first candidate for a platform
to steal storage from was YouTube
YouTube lets you upload videos for free
and each one can be 256 GB or 12 hours
long
whichever comes first so this seemed
like a solid way of getting lots of 256
GB size trunks of storage obviously this
would only work for video files so I
need some way of converting all my data
like word docs text files images Etc to
video fortunately somebody smarter than
me has already figured out a way to do
this with FFM Peg and posted the script
for it on
GitHub storing files on YouTube with
this script would probably work but
there were a few drawbacks some issues
are that it's slow to convert to and
from video it's also pretty slow to
upload a video wait for YouTube to
process it and then download it later
the video file size ends up being
several times the size of the original
file but the big issue would probably be
compression YouTube processes and
compresses its videos to save storage
which is great for them but potentially
bad for being able to read my data later
compression could lead to losing some
information and ultimately corrupt my
files all of these problems were
probably solvable it would just make
things slow but speed's not a huge
concern for me anyway because I mostly
just want to store a bunch of files I
don't access frequently but I decided
pretty early on to give up on the
YouTube route because I realized there's
a much better solution there's another
service that lets you upload files for
free it's called Discord you may have
heard of it sure most people use
discord's text chat and voice chat
features to do boring things like play
games with friends but you can also
upload files to Discord as message
attachments unfortunately there's a 25
megabyte limit but fun fact one big file
is really just a bunch of small files
all put together in a row so all I need
to do is split up my files larger than
25 megab into 25 megab chunks so that I
can upload them and even though there
are different types of files like text
photos videos with all sorts of file
formats when it comes down to it it's
all just data as long as I have all the
original bits of data in the right order
and I know what the original name of the
file was I can chop up any file into
tiny bits store them in Discord then
download them and reassemble the
original file
later so I got to work I created a
Discord application in the developer
portal and wrote a server in noj as to
handle uploading and downloading files
from Discord I wrote a very basic front
end in react to give me a simple way of
interacting with the server when I want
to upload a file I can go to the front
end website and hit upload like you
would on any regular website that
accepts file uploads the files then
transferred to my backend server which
splits it up into 25 megabyte chunks
then uploads each chunk as a message
attachment in a Discord server the bot
has joined when the bot sends a file
attached to a message to Discord Discord
publishes that message to the channel
and replies to the bot with a unique ID
of that message the bot keeps track of
the message IDs of each chunk and stores
them in a database with some extra
information about the file like the
original name size and format later when
I want to download a file I can send the
server the name of the file I want to
download the server can then use the
file name to look up which chunks are
associated with that file get the
message IDs of those chunks and use the
Discord API to download all those
attachments then it can put them all in
the right order and write each chunk one
after another back to disk with the
original file name in this way we can
upload an download files of arbitrary
size by breaking them into small 25
megab
chunks but there's still a pretty big
problem here privacy Discord is of
course public so anyone on the server
can see the messages and attachments
that the bot sends the easiest way to
keep my files private would be to just
create a Discord server where the bot
and I are the only members and that way
no one else would be able to read my
data this would probably work although
anybody can download an attachment from
Discord CDN you would need to know the
exact Channel ID message ID and even
attachment name associated with an
attachment in order to properly download
it which I think is pretty unlikely for
anyone to guess on their own but it
doesn't hurt to be extra safe even if
nobody's in my server right now it's
possible hypothetically for instance
that the IRS could join later this year
when tax season comes around and they'd
be able to see all my sensitive tax
documents with my plans to commit tax
Rod I of course do not want this so it
would be good to conceal my data
fortunately I can do that pretty quickly
each chunk of file I encode will be
encrypted then when I read the file back
I can decrypt each chunk before putting
it back together now nobody can see what
the data I'm writing actually is if they
look at the message attachments all
they'll see is a bunch of random symbols
and
characters now that I had it all coded
up the last thing left to do was to just
upload all my data this is not
particularly fast first I have to upload
the file through my browser to the
backend server which takes some time
next the server has to read the whole
file break it into Trunks and encrypt it
which also takes time then it has to
upload all the trunks to Discord which
takes even more time I added a status
bar so I'd be able to tell if anything
was actually happening because uploads
and downloads can take several hours but
ultimately I did get all my files
uploaded without too much
effort now let's talk about performance
if I had to describe it in one word it
would be eh I did a speed test and for a
55 GB file it took me 2 and 1/2 hours to
upload that's about 2 minutes and 45
seconds per gigabyte which is definitely
slow but not actually too bad I guess
downloads are a little bit faster we're
looking at about a minute and 40 seconds
per gigabyte to download which again is
pretty okay and probably much faster
than this deeply cursed project really
deserves in terms of data integrity and
Longevity so far everything seems good
it doesn't seem like any of my data has
expired it's taken me a couple months to
get this all done and in that time the
first file I uploaded for testing still
downloads and decodes without
issue quick note here it's a few months
later as I'm editing this and Discord
just announced that they're going to
change how external CDN links work
because believe it or not people have
been hosting malware on Discord now CDN
links from outside of Discord will break
after 24 hours but links within Discord
will still function I'm planning a
follow-up video after they make this
change because it's possible it'll break
what I'm doing here but I actually think
it might not so keep an eye out for that
in the near future so that's how I'm
storing all my files on Discord thanks
for watching
Browse More Related Video
![](https://i.ytimg.com/vi/iR99LO28nzM/hq720.jpg)
Uploading Files to ChatGPT: A More Powerful Experience #chatgpt #plugin #openai #booklet
![](https://i.ytimg.com/vi/zmo_ef3ZZHI/hq720.jpg)
【要注意】今すぐ変更すべきWindows 11の設定!
![](https://i.ytimg.com/vi/uT5J6PLTpMY/hq720.jpg)
【完全攻略】Google Colaboratoryの使い方【Pythonの環境構築は不要】
![](https://i.ytimg.com/vi/mxqg90KnvZs/hq720.jpg)
DocuTrack Demo // hosted on 100% ICP blockchain
![](https://i.ytimg.com/vi/A20h3kzGxio/hq720.jpg)
【1時間の動画を記事化】 Google Gemini 1.5 Proの凄さ
![](https://i.ytimg.com/vi/iN3V5rEqoxU/hq720.jpg)
【プロが教える】最強データ管理!HDDが壊れても大丈夫!家庭用NASが便利すぎる!【激安10G環境も!】QNAP
5.0 / 5 (0 votes)