SUOlivia / CHStegano

Tool to analyse steganography data from Clone Hero's screenshots
GNU General Public License v3.0
0 stars 0 forks source link

Error when analysing sample.png #3

Open RileyTheFox opened 3 years ago

RileyTheFox commented 3 years ago

Downloaded the python file as well as the samples and tried to analyse sample.png but this error is thrown: It took 76.82180404663086 ms to extract the data from the screenshot Traceback (most recent call last): File "CHStegano.py", line 219, in <module> AnalyseData(EmbedData) File "CHStegano.py", line 144, in AnalyseData CurPlayer.Name = str(Data[pos:pos+CurLen], 'utf-8') UnicodeDecodeError: 'utf-8' codec can't decode byte 0xdc in position 3: invalid continuation byte

Does this program still work?

Ghoelian commented 3 years ago

The project hasn't been updated for a while, and the CH devs tend to change/update their encoding stuff frequently as well, so it wouldn't surprise me if it's broken by now.

Problem is, you'd need to reverse engineer the steganography all over again with those changes which would be a lot of work, I think (I don't have any experience in this myself).

RileyTheFox commented 3 years ago

It seems like the samples just haven't been updated and the older screenshots don't work with the newer code. I got a v23.2.2 screenshot and it analyses it correctly.

Hope that this is updated for when v24 releases? I'm trying to fork this to C# for a project and it'll be tricky to reverse the steganography like you said, unless the developer documents what they know already on the image data.

Ghoelian commented 3 years ago

Ahh sorry didn't notice you mentioned using the included samples. Those should work, not sure what's up with that.

I've talked with Olivia before about this, iirc she's said she'd rather not share the details. It's meant to be a secure and verifiable way to submit scores to CH score challenges after all, if the exact method by which they do it became public they'd probably just change it again. So there's probably not going to be any documentation about this here.

And as for if this project is going to be updated, I wouldn't get my hopes up, the last commit is almost a year old.

RileyTheFox commented 3 years ago

Shame really. Would be really cool if some sort of API Endpoint could be made where it will return if the image is valid and the data contained within the image. That way anyone can make use of it and the details wouldn't have to be made public. Likelihood of that happening though is probably 0

Ghoelian commented 3 years ago

Yeah would be great if the CH devs themselves could provide some tool to do that, that way they can make sure the exact algorithm wouldn't be public.

Actually, thinking about it, they probably already have something for that, which they use for the score challenges and stuff.

RileyTheFox commented 3 years ago

It will most likely be just directly written into the bot they use. I doubt they'd set up an API for something only 1 thing has access to. That would be way too much extra work.

There's quite a few projects that would benefit greatly from being able to use this sort of thing so an API that would return all of the data found within the image would be so good.

SUOlivia commented 3 years ago

Hey i'm sorry i haven't worked on this in a while, i kinda left the CH community (and related projects) just because i wasnt interested anymore, i'm going to look into it and possibly update the program to support newer save formats. No promises but i'm going to check it out later when i'll have the time. Sorry for the late answer btw, hope you understand :)