cherriesandmochi / gdmaim

GDMaim is a GDScript obfuscation plugin for the Godot Engine.
MIT License
78 stars 7 forks source link

Multiline strings + print seem to trip the obfuscation #15

Open sourcelocation opened 2 weeks ago

sourcelocation commented 2 weeks ago

Source code:

func _ready():
    print("""===== Game name =====
⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡟⣛⡉⢹⢛⣛⢻⣿⣿⣿⣿⣿⣿⣿⣿⣿
⣿⣿⣿⣿⣿⣿⣿⡟⣫⡆⠀⣿⣷⣬⣼⡿⢸⣿⣿⣿⣿⣿⣿⣿⣿⣿
⣿⣿⣿⣿⣿⣿⣿⣷⡘⢿⣾⡿⠿⠿⠛⢃⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿
⣿⣿⣿⣿⣿⣿⣿⣿⣿⣌⠫⠶⠿⠟⣋⣼⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿
⣿⣿⣿⣿⣿⣿⣿⡏⠉⠏⠩⣭⣭⠉⠘⠉⠻⣿⣿⣿⣿⣿⣿⣿⣿⣿
⣿⣿⣿⣿⣿⣿⣿⡇⠠⠤⠴⢯⣭⢤⠤⢄⢰⣿⣿⣿⣿⣿⣿⣿⣿⣿
⣿⣿⣿⣿⣿⠋⠀⠀⠶⠬⢼⣸⣇⢠⠬⠼⠌⠀⠀⢹⣿⣿⣿⣿⣿⣿
⣿⣿⣿⣿⣿⡆⠀⠀⠀⠀⠙⠙⠛⠉⠀⠀⠀⠀⠠⣾⣿⣿⣿⣿⣿⣿
⣿⣿⣿⣿⠏⠀⢀⣮⣅⣛⠻⠇⠿⢛⣃⣩⣴⠃⠀⠈⣿⣿⣿⣿⣿⣿
⣿⣿⣿⣧⡀⠀⠘⢿⣿⠿⠟⠻⠟⣛⠻⢿⠿⠀⠀⣼⣿⣿⣿⣿⣿⣿
⣿⣿⣿⣿⣿⢀⠀⠀⠲⠈⣭⣭⢩⣭⡴⠐⠀⠀⡌⣿⣿⣿⣿⣿⣿⣿
⣿⣿⣿⣿⠇⣾⣷⣦⣀⠀⠀⠈⠀⠀⠀⣠⣴⣿⣿⡸⣿⣿⣿⣿⣿⣿
⣿⣿⣿⡏⣼⣿⣿⣿⣿⣿⣶⣤⣀⣴⣿⣿⣿⣿⣿⣧⢹⣿⣿⣿⣿⣿
⣿⣿⣿⣶⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣶⣿⣿⣿⣿⣿
⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿
Some more text, not sure if that's what trips it""")

Output:

Screenshot 2024-06-25 at 01 35 42
sourcelocation commented 2 weeks ago

Sorry for the title error, a 2AM error lol. Awesome project by the way! :)

cherriesandmochi commented 2 weeks ago

Thank you! I'm currently rewriting most of the obfuscator, which should improve stability a lot and also properly handles the above code. If things go well, I might be able to release the update within a couple days.

sourcelocation commented 2 weeks ago

sounds good :) My game is a multiplayer competitive shooter, and even with authoritative server model people will find exploits in the codebase due to how open Godot is. Your project is God's work, thank you

cherriesandmochi commented 1 week ago

sounds good :) My game is a multiplayer competitive shooter, and even with authoritative server model people will find exploits in the codebase due to how open Godot is. Your project is God's work, thank you

Yea, a multiplayer game I've been working on is the reason for the existence of this addon haha.

sourcelocation commented 1 week ago

Off topic, but @cherriesandmochi , your GH account is so weird... signed up in 2013, but had 0 contributions over the course of 10 years straight 💀

cherriesandmochi commented 1 week ago

Off topic, but @cherriesandmochi , your GH account is so weird... signed up in 2013, but had 0 contributions over the course of 10 years straight 💀

Lmao, I don't remember why I signed up 11 years ago, I started using git(hub) about 3-4 years ago, around the time I got into Godot. And well, all the projects I made since then are private, except this one. Iirc the reason for signing up was that you had to be signed in to download repos as zip file?