Chocorean Blog
My struggles, stories, failures and sometimes achievements.
-
A few contributions to the Minecraft modding ecosystem
The story of AuthMod, a way to authenticate players on an `offline-mode=true` Minecraft server, and a couple of other mods.
-
A playground for the boys
How I got a domain name for free, and its configuration. I have almost not edited the original post. The jokes are still making me laugh.
Game Off 2026
Few contributions to the Minecraft modding ecosystem
A playground for the boys
A while back, when I was still in engineering school, there was a project to host a Minecraft server on the students association’s hardware. The goal was simple: a private server accepting only school students, regardless of whether they owned a paid game account. At first, we built a Minecraft launcher, which we hoped would automatically install the game, some mods, and authenticate students with their association’s account.
The poor thing was built with JavaFX, a GUI library made for (you guessed it) Java applications. We were using it at school for other projects, and Minecraft is developed in Java, so it seemed natural. Now it does not build anymore; JavaFX errors are popping up everywhere. I do not think it is worth it anyway, and I am just sad I do not have a screenshot to share.
Then we started inspecting how the official game handled authentication, how we could fake it, and dug a bit around on modding forums. It turned out it was a lot harder to fake than we expected, and we were advised to find a workaround. I am sorry I do not remember exactly how we failed, but the project was abandoned pretty quickly; at that point, we only had the launcher UI and the association login.
This is how I started writing AuthMod:
online-mode=false is now safe – what the hell?
The AuthMod journey: pride and humility
What problem was AuthMod intended to fix?
My naive approach
You may remember the “cracked” Minecraft launcher. This launcher allowed players to use any username they wanted. Multiplayer was of course not possible for most servers, unless…
# server.properties
online-mode=false
This line of configuration would completely disable server authentication, allowing anyone to connect. Now, how do we prevent people outside our school network from logging in? Whitelist? Unfortunately, the cracked launcher allows anyone to choose their username, so it was a no-go. What if a random person joins as the admin?
We needed another way to protect our community. AuthMod was the solution: a player database linking in-game identity, password, and school ID. My friend Mcdostone would be working on the website for registering people to the server as a member of the association, while I would be tinkering with Forge’s API.
That was brutal.
Saying that my first dive into decompiled Minecraft code was tough would be an understatement. I had no idea what I was doing or what I was looking for, and sometimes I was not even sure what I was looking at. I slowly made my way through the hundreds of files and directories and managed to create a few in-game commands for logging in and registering.
The idea was to prevent any incoming player from doing anything on the server until they logged in.
That means no movement, no chat, no commands, no damage dealt or taken, no item drops, no block placing, absolutely nothing.
The event handler is full of event.setCanceled(true);.
It was a cat-and-mouse game, trying to find every event a player could trigger so that we could cancel it until they logged in.
I eventually managed to get the mod into a decent state:
we added /register and /login; players were completely frozen on joining, everything looked good after logging in, and it was completely seamless for the client.
The mod is server-side only, which is great for players because that means they could join with a vanilla client.
Then Mcdostone stepped in.
Lesson in humility
One day, I ran git pull, hoping to see what my friend had been working on.
That day, I realized this project was no longer mine.
Mcdostone just rewrote everything. I mean everything.
We had interfaces, design patterns, factories, and many kinds of databases supported (my implementation was writing into a text file, because why not?), configuration, a better build system, I18n, better error handling, CI/CD, and more. He had touched almost every single piece of the project, had done a much better job than I had, and brought even more to it. As a strong Java developer, I could tell he had had fun — hopefully not too much at my expense.
I learned a lot thanks to him, and I respect him a lot. However, we do not agree on who introduced the other to Rust — I am pretty sure it was him, via a FasterThanLime blog post. Anyway, thanks to him, the project became much more reliable, and we soon started using it in production.
CurseForge and the unexpected “success” of the mod
I wanted to share the mod with the community because I knew it would help some people enjoy the game. However, this kind of mod is not appreciated by everyone, and after carefully reviewing the rules of a few forums, I decided not to advertise it. I just uploaded it on CurseForge, and traffic came organically. As I was porting the mod to newer versions, more people found it and started using it. I also got contacted by a Chinese person who asked for permission to repost it on Chinese forums.
Some people found bugs, and we tried to fix as many as we could, but I believe the last version is still broken somehow. The CurseForge comments are mainly people asking for ports to other Minecraft versions, or asking what version to use because the last one is buggy.
The mod ended up getting downloaded more than 35,000 times, which I believe is great for a server-side mod. The few downloads I got earned me a few tens of bucks, spent on Amazon gift cards. Mcdostone got his share too, don’t worry about it. I even received something like €1.50 from a Russian guy to support the work — what a chad!
Eventually, I lost the will and the time to maintain the project, but somehow it still lives:
More fun with MoreCommands
MoreCommands is also a server-side Minecraft mod I made for the school’s server. It sits at around 20K downloads and has its fair share of comments asking for ports and new commands.
This project was a QoL improvement over the base game: just like the old Essentials plugin (created in 2011…), it adds a few in-game commands for players to set up homes, teleport to other players, and so on. A few commands were also meant only for admins, for public transportation and moderation, for instance.
Fortunately, it was much easier to implement: AuthMod was already a good example, and I drew a lot of inspiration from Mcdostone’s style. I also really enjoy building things incrementally. Adding one feature after another, watching the project grow as a whole, and seeing it become an entity rather than a few things tossed together made it incredibly enjoyable to work on.
To finish on a light note, let’s look at the latest comment. I am glad I have been blessed by the bane of all game modders:
A third one for the joke
MoreSnowballs is my favorite bit of human-slop software I have made. It is a stupid mod that adds a few snowballs with uninteresting effects in large quantities.
This had no success at all (guess why?), but it still hit a small crowd. I got this gem, which made me laugh a lot when I reviewed the page today:
Closing thoughts
Modding with Forge in 2019 was hard in my opinion. I was already a Java hater at the time. I did not help.
The pace of updates would often break the Forge API, forcing every modder to rewrite a lot of code for no additional feature, just to support another game’s release. The documentation was very sparse, as the team was more focused on reverse-engineering the game and renaming classes and methods into something other than garbage. No one knew which Forge version would become popular for modding, so you had to support as many versions as possible. I mainly learned by spending hours digging through Forge and other people’s code (shout-out to Vazkii), and I eventually made a few contributions myself — something I am proud of. I have a lot of respect now for game modders and game developers, as I understand how hard it is to make software with so many hidden mechanisms, logic, and design decisions that have long-term impact, and then ship it, fix bugs, and try to please the community with updates.
Recently, with the development of AI, we have seen an avalanche of new mods and game fusions (Tony Hawk x Valheim, when?) as the skill bar needed to get started is at an all-time low. There was already a lot of slop back then (remember the state of McCreator at the time?), so I am not too worried that AI-slop will take over the modding scene. I just hope it helps people with good ideas and low development skills build fun stuff. I doubt it, though.
If I had to do it again, I would. I learned a lot, and I had the opportunity to work with my dear Mcdostone. We made something I believe was great, and it received some warmth online. Even for someone like me, who is used to tinkering with things, it was a great challenge — one I am glad I overcame.
Thanks for reading this old story.
Revamping my blog with my favorite toy of the moment
A playground for the boys
A playground for the boys
Important
First article, hopefully my prose is not too bad. I’m sorry it’s a bit long. I decided to tell this short story, because I struggled a bit to correctly setup my EU.org domain name and I realized I was probably not the first in this situation. Enjoy!
I have always wanted to have my own domain and website to play with. One can easily find out it is possible to host a website with self-signed certificates for free, but I always believed domain names were a mandatory non-free step, and I eventually gave up and got a domain from G-company.
My friend Mcdostone introduced me to EU.org, which gives to people like you and me the opportunity to get our own domain names for free. This story describes the process I had to go through in order to get a fully working domain name with EU.org.
Menu
Prerequisites
I will not cover how to:
- run a web server on a local host;
- do port forwarding on your router;
- get free SSL certificates signed by a CA (check out certbot).
I am running a very simple Flask web server on a Raspberry PI 4.
Request the domain name
First thing I had to do was to create an account. It is quick and simple, they ask for basic information that will be used later when requesting a domain name. They ask for a fax number (really?) and five address lines, and I unfortunately have only one. Felt discriminated but anyway.
After registering, I requested a domain name. Most of the fields were already filled, and I basically only had to choose my domain name. EU.org offers a lot of subdomains. Make sure you read EU.org policy to determine whether or not your project is compatible with their rules.
A point to note here is the Name servers form.
I am not an expert, so I just opted for their recommended option for correctness.
Finally, I added my domain name next to Name1, and the public IP address of my web server next to IP1.
I then submitted my request!
The EU.org team manually (I guess?) reviewed and eventually approved my request.
It took a few days for me, less than two weeks IIRC.
Once I got notified my domain and the appropriate records had been created, this is what my domains list looked like, at the exception of DNSSEC:
Su-per. (French accent)
I’ve just got my first free domain name. It took a few days to spread across the DNS servers, as expected. I was regularly checking if my domain was yet resolved, and I eventually noticed a lot of DNS servers wound not resolve it.
Why?
Configure DNSSEC
DNSSEC is basically a modification of the DNS protocol which improves its security by authenticating DNS exchanges, preventing spoofing. When I configured DNSSEC for my domain, I was still waiting for a response from the EU.org team, because I was surprised most of the DNS servers were still not resolving my domain name after three weeks. At this time, I did not know it would fix my issue.
I was a bit lost and started to browse around, looking for a way to add DS records to my domain. I was decided to ignore the warning from EU.org and to enable DNSSEC anyway on my domain.
I eventually followed a tutorial1 which was very helpful, but I ran into a few errors which were not covered, so I will describe the full process here.
Setup a bind server
The first task was be to install and run a DNS server.
On my Raspberry, I had to install the bind9 package, which is known to be the most used DNS server ever.
No less!
# apt install bind9
[...]
Now let’s enable DNSSEC:
# /etc/bind/named.conf.options
options {
[...]
dnssec-enable yes;
dnssec-validation yes;
dnssec-lookaside auto;
[...]
}
At this point, I forwarded my port 53 for both TCP and UDP protocols in my router configuration.
Generate and sign my keys
Note
My domain name has been replaced by
example, but you can still find it if you dig enough.
I want now to create two pairs of keys, the Zone Signing Key (ZSK) and the Key Signing Key (KSK).
For that, we will need the dnssec-tools package.
I’m running Arch so I have used:
# yay is fine too, but always read PKGBUILD!
$ paru -S dnssec-tools
[...]
Once the toolkit was installed, I navigated to the directory where bind looks for the keys, /var/cache/bind, and I generated them:
# dnssec-keygen -L 3600 -a ECDSAP256SHA256 -n ZONE -f KSK example.eu.org
Generating key pair.
Kexample.eu.org.+013+22641
# dnssec-keygen -L 3600 -a ECDSAP256SHA256 -n ZONE example.eu.org
Generating key pair.
Kexample.eu.org.+013+28911
It created two .key and two *.private files, which are two sets of public/private keys pairs.
I need now to create a zone file, which is the file I will sign.
You will have to replace <IP>, <EMAIL> and the filenames with your appropriate values.
for key in `ls Kexample.eu.org*.key`
do
echo "\$INCLUDE $key">> example.eu.org.zone
done
echo "example.eu.org. IN A <IP>" >> example.eu.org.zone
echo "@ IN SOA example.eu.org. <EMAIL> (3 604800 86400 2419200 604800)" >> example.eu.org.zone
echo " IN NS example.eu.org." >> example.eu.org.zone
Important
<EMAIL>is the email I registered with when requesting the domain name, but the@symbol becomes a.and all.previous to the@should be escaped. And you also end it with a last..
For instance:exa.mple@example.eu.orgturns intoexa\.mple.example.eu.org..
I could finally sign this fifth file, using dnssec-signzone:
# dnssec-signzone -A -3 $(head -c 1000 /dev/random | sha1sum | cut -b 1-16) -N INCREMENT -o example.eu.org -t example.eu.org.zone
Verifying the zone using the following algorithms:
- ECDSAP256SHA256
Zone fully signed:
Algorithm: ECDSAP256SHA256: KSKs: 1 active, 0 stand-by, 0 revoked
ZSKs: 1 active, 0 stand-by, 0 revoked
example.eu.org.zone.signed
Signatures generated: 7
Signatures retained: 0
Signatures dropped: 0
Signatures successfully verified: 0
Signatures unsuccessfully verified: 0
Signing time in seconds: 0.003
Signatures per second: 2100.210
Runtime in seconds: 0.016
Note that we use a random salt here.
TODO LEGENDAt this point, I needed to tell bind to use the new file example.eu.org.zone.signed:
# /etc/bind/named.conf.local
zone "example.eu.org" IN {
type master;
file "example.eu.org.zone.signed";
allow-transfer { 2.2.2.2; };
allow-update { none; };
};
I finally reloaded bind service with sudo systemctl reload bind9.
I checked if everything went fine using dig.
Everything looked good so far.
# dig DNSKEY example.eu.org. @localhost +multiline
;; Truncated, retrying in TCP mode.
; <<>> DiG 9.8.4-rpz2+rl005.12-P1 <<>> DNSKEY example.eu.org. @localhost +multiline
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 43986
;; flags: qr aa rd; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0
;; WARNING: recursion requested but not available
;; QUESTION SECTION:
;example.eu.org. IN DNSKEY
;; ANSWER SECTION:
example.eu.org. 86400 IN DNSKEY 256 3 7 (
AwEAActPMYurNEyhUgHjPctbLCI1VuSj3xcjI8QFTpdM
8k3cYrfwB/WlNKjnnjt98nPmHv6frnuvs2LKIvvGzz++
kVwVc8uMLVyLOxVeKhygDurFQpLNNdPumuc2MMRvV9me
fPrdKWtEEtOxq6Pce3DW2qRLjyE1n1oEq44gixn6hjgo
sG2FzV4fTQdxdYCzlYjsaZwy0Kww4HpIaozGNjoDQVI/
f3JtLpE1MYEb9DiUVMjkwVR5yH2UhJwZH6VVvDOZg6u6
YPOSUDVvyofCGcICLqUOG+qITYVucyIWgZtHZUb49dpG
aJTAdVKlOTbYV9sbmHNuMuGt+1/rc+StsjTPTHU=
) ; key id = 40400
example.eu.org. 86400 IN DNSKEY 257 3 7 (
AwEAAa2BE0dAvMs0pe2f+D6HaCyiFSHw47BA82YGs7Sj
qSqH3MprNra9/4S0aV6SSqHM3iYZt5NRQNTNTRzkE18e
3j9AGV8JA+xbEow74n0eu33phoxq7rOpd/N1GpCrxUsG
kK4PDkm+R0hhfufe1ZOSoiZUV7y8OVGFB+cmaVb7sYqB
RxeWPi1Z6Fj1/5oKwB6Zqbs7s7pmxl/GcjTvdQkMFtOQ
AFGqaaSxVrisjq7H3nUj4hJIJ+SStZ59qfW3rO7+Eqgo
1aDYaz+jFHZ+nTc/os4Z51eMWsZPYRnPRJG2EjJmkBrJ
huZ9x0qnjEjUPAcUgMVqTo3hkRv0D24I10LAVQLETuw/
QOuWMG1VjybzLbXi5YScwcBDAgtEpsQA9o7u6VC00DGh
+2+4RmgrQ7mQ5A9MwhglVPaNXKuI6sEGlWripgTwm425
JFv2tGHROS55Hxx06A416MtxBpSEaPMYUs6jSIyf9cjB
BMV24OjkCxdz29zi+OyUyHwirW51BFSaOQuzaRiOsovM
NSEgKWLwzwsQ5cVJBEMw89c2V0sHa4yuI5rr79msRgZT
KCD7wa1Hyp7s/r+ylHhjpqrZwViOPU7tAGZ3IkkJ2SMI
e/h+FGiwXXhr769EHbVE/PqvdbpcsgsDqFu0K2oqY70u
SxnsLB8uVKYlzjG+UIoQzefBluQl
) ; key id = 62910
;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Wed Nov 27 18:18:30 2013
;; MSG SIZE rcvd: 839
Submit DS records
Now that my DNS server was running, I needed to give EU.org my public keys so it could finally enable DNSSEC.
Back to DNSSEC configuration of my domain, I added my DS records.
They are actually the last line of the *.key files I generated earlier:
# cat *.key
; This is a key-signing key, keyid 24582, for example.eu.org.
; Created: 20220715005917 (Thu Jul 14 20:59:17 2022)
; Publish: 20220715005917 (Thu Jul 14 20:59:17 2022)
; Activate: 20220715005917 (Thu Jul 14 20:59:17 2022)
example.eu.org. 3600 IN DNSKEY 257 3 13 aGYV9tajrYYURYCvdTte4yvRJOgTlTSnuhHoXcGo5e+fMhcpvgvQzb+m E/EVDfquZLnVZbjrprFgqlmFsvjd8Q==
; This is a zone-signing key, keyid 62537, for example.eu.org.
; Created: 20220715005913 (Thu Jul 14 20:59:13 2022)
; Publish: 20220715005913 (Thu Jul 14 20:59:13 2022)
; Activate: 20220715005913 (Thu Jul 14 20:59:13 2022)
example.eu.org. 3600 IN DNSKEY 256 3 13 8wsphstJI+JVEih2myGoqyvXjTQ0vU67rm9Os06G8ZGyao8GyHDzl4Tz fyBsHqW8D6ifKlmDjro5y7d4IivrgA==
All lines starting with `;` are comments and should be ignored.
TODO LEGENDThe line with the 257 has to be the primary DS record, so I added it first, and then the second one.
Again, it may take a few minutes for changes to take effect, but it looked like it had been instantly processed for me. As soon as I submitted these records, I checked again if major DNS servers were now resolving my domains:
There are also tools like DNSViz to make sure DNSSEC has properly been enabled.
Avoid Zone Walking attacks
I’m not sure if this is really necessary but the article I followed considered important to teach how to protect ourselves from Zone Walking attacks.
From what I understand, this attack is difficult but not impossible, and may allow one to get unauthorized access to our resource records by requesting DNS servers and by trying to revert hashes.
To address this issue, it is recommended to update the salt that we used when signing our zone file.
This script 2 will automatically refresh the salt of our signed zone file, and can easily be automated using cron:
# sudo crontab -e
0 0 * * 0 /path/to/zonesigner.sh example.eu.org example.eu.org.zone
Don't forget to chmod this script!
This will refresh the salt every week for you.
End of the story
Thanks for reading this short story! I took me a bit of trial and errors to get there, but I really enjoyed tinkering with DNSSEC, and as always it feels good to learn something new. Now that my site is available for everyone, I gave access on my Raspberry to my friends and created them a user, so they can play with the website as they want.
The next story you don’t want to miss will probably be realized on Mcdostone’s blog! Cya <3
Resources
Worth mentioning are a few documents that helped me through this:
Chocorean - Software engineer
Contact: chocorean@pm.me — Website: chocorean.github.io
Experience
- RESEARCH SCIENTIST – George Washington University, 2025-now
- Contracting work for the Guided Wave Electromagnetics Group
- Development of a methodology for digital Traceability in research: Python, Snakemake, RO-Crate
- Development of tools to support such methodology: Ruby on Rails, Python
- LEAD DEVELOPER – Bamana Solutions, 2022-2023
- Development of a commercial website for robots: Ruby on Rails, SQL database
- GUEST RESEARCHER – National Institute of Standards and Technology, Software Security Group, 2022-2023
- Maintenance of the Software Assurance Reference Dataset, addition of new datasets, bug fixing and view improvements: Ruby on Rails, Typescript, Postgres database, ansible
- GUEST RESEARCHER – NIST, Multimodal Information Group, 2020-2022
- Development of several web applications to gather human feedback on AI-generated media: Rust (Actix, Yew), SQL database
- Generation of a few thousands deepfakes for a training dataset using DeepFaceLab, trainee management: Python, Slurm and GPGPU computing nodes
- Speed improvements for ActEV_Scorer by an 8-fold and datasets generation: Python
- TRAINEE – Excellium Services, Computer Emergency Response Team, 2019
- Creation of a data leak orchestration tool: Python, ClickHouse, SQL database
- Various CERT activities: technology watch, forensics, trainings, Splunk alerts
Education
- TELECOM Nancy, 2016-2019: IT Engineer/Master Degree – Cyber-security major
- Lycée Benjamin Franklin, 2014-2016: Competitive entrance examination to engineering schools
Side projects
- Rust: I am a reviewer and contributor in the Rust mdBook team.
- Game modding: I have made a few mods for Minecraft.
- Many more projects on my Github and Codeberg.