Re: [casetta] Extract Program names and data from backups

[ Thread Index | Date Index | More lists.tuxfamily.org/casetta Archives ]


Hello,

I've test your functions, they work very well. Good job! I've add them into a new file inside casetta, named backups.py (and I've put my function to extract passwords here too), and upload it on the svn repository.

I've also correct my function to extract passwords, normally it work even if the name is not followed by 0x00 characters.

Thank you a lot for your work!

2007/3/21, Florian Birée < florian.biree@xxxxxxxxx>:
Hello

2007/3/21, Fabien ANDRE <fabien.andre.g@xxxxxxxxxx>:
Hello,

First of all, yes I think some programs names are not followed by 5 0x00 characters, or in can't use an hex editor :-).If you don't want to loose your time with checking, see attachments for a screenshot where you can see that(casio-names.png).

Ok, I'll change the password extractor function.

Thanks for your backups, they helped :-)


How program data is stored in raw backups:

Program names are composed of one to eight numbers/letters characters (and some other accepted characters "+","-", etc...).
If the length of the program name is inferior to eight, remaining space is filled by 0xff characters.
After the name of the program, you have 5 random characters (most of the time 0x00 characters).
After these 5 characters, you have 2 characters, which reprent the address of the beginning of the program.
In fact, they are reversed. For example, if you have 0xfe and 0xf7, the real adress of the beginning of the program is 0xf7fe.
See casio-names.png for an example.(Can I add this information in the formats wiki ?)

Yes, you should can (Anyone can edit pages inside the formats namespace), so you can add your work inside http://casetta.tuxfamily.org/formats/raw , by example.

See backup-prgm-extractor.py for the code. There are 2 functions, the first function takes a raw backup and returns a
list of tuples with the name and the reversed address of the program. The second functions takes a raw backup and a reversed adress (under the form of a string of 2 hex characters, as it is returned by the first function) and returns a raw cafix program.
I didn't put this code in any of casetta files, because I didn't know where !!!

I'll try it (not today ;-) ). It's very interesting, and will probably added in the 0.3 version.

About the future of casetta_gtk, you mockups look good to me : it will be easier for """"newbies"""" to understand how casetta_gtk
works and make functions easier to access (for example we will not have to right click anymore to create a new program).

Yes, it's my main goal.

I have an idea about how to include my backup extractor in casetta_gtk. See casetta-ext0.png and casetta-ext1.png

It's interesting. I'll add the integration of yours functions inside casetta_gtk on the roadmap.

PS : I couldn't get your sodoku solver (the first) work on my caculator... Is it normal ? I got a math error!

I've never finish the program :-) Working on casetta is more interesting!

Can I keep your DERIVEES program ?

It's the program from the casio 65 base. Normally, a password protect it ;-)

(You see that my functions are working, I was able to extract these 2 programs :-)
--
Fabien ANDRE aka Xion345
Linux User #418689 -- fabien.andre.g@xxxxxxxxxx -- xion345@xxxxxxxxxxxxx
Which mindset is right? Mine, of course. People who disagree with me are by definition crazy. (Until I change my mind, when they can suddenly become upstanding citizens. I'm flexible, and not black-and-white.) ( Linus Torvalds, Not dated )


Thank you a lot for this work, it's a very exiting feature!

--
Thesa ~ Florian Birée
e-mail : florian.biree@xxxxxxxxx
Messagerie Instantanée Jabber/XMPP/Google Talk : florian.biree@xxxxxxxxx
Site web et blog : http://filyb.info/



--
Thesa ~ Florian Birée
e-mail : florian.biree@xxxxxxxxx
Messagerie Instantanée Jabber/XMPP/Google Talk : florian.biree@xxxxxxxxx
Site web et blog : http://filyb.info/

Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/