Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI-Nspire => Topic started by: excale on May 19, 2012, 05:21:13 pm

Title: TNS2XML
Post by: excale on May 19, 2012, 05:21:13 pm
Hi,

As you may know, since OS 1.2, TI does encrypts TNS files. Since then, two methods have been developed to retrieve the XML data:
-Using a script with nspire-emu: http://ourl.ca/12404/246559
-Using copy/pasta on TI-Nspire Computer Software: the Levak's Clipboard Dumper (http://levak.free.fr/ftp/nspire/ClipboardDumper/ClipboardDumper.exe)

These two methods both have pros and cons (as well as what I made  ;D ).
So, TNS2XML uses yet another way: it retrieves the XML data when you open a TNS files, directly on-calc, which can be very useful for some developers.

You can download it here: http://tiplanet.org/forum/viewtopic.php?t=9295

If you have any question about it, don't hesitate to ask :).
Title: Re: TNS2XML
Post by: cyanophycean314 on May 19, 2012, 09:30:57 pm
Yeah! Thanks for releasing this! It's really nice!  :D I can now use it to transfer Lua sources to my computer!
+1!
Title: Re: TNS2XML
Post by: Jim Bauwens on May 20, 2012, 05:52:25 am
Very nice work Excale :)
Title: Re: TNS2XML
Post by: Deep Toaster on May 20, 2012, 12:29:01 pm
Hey, great idea, dumping on calc :D Maybe this could be expanded to a full editor?
Title: Re: TNS2XML
Post by: excale on May 22, 2012, 02:04:07 pm
Well, it would be possible to make a full editor on-calc, but I can't see any practical use for it... The only self-made TNS I've seen so far are Notes (Nspire Text Editor or nCreator) or 'trolling-documents'.
(Also, saving the docs on-calc means fooling the Nspire with XML data it never asked for, which is much harder to do than just reading chunks of decrypted XML :) ).
Title: Re: TNS2XML
Post by: cyanophycean314 on May 22, 2012, 05:47:08 pm
Could you implement an easier way to exit this program without rebooting?
Title: Re: TNS2XML
Post by: Adriweb on May 22, 2012, 08:02:41 pm
Well it's based on a hook, and there isn't any call in ndless to uninstall them.
Hopefully Extended will make this sometime :P
Title: Re: TNS2XML
Post by: cyanophycean314 on May 22, 2012, 08:33:53 pm
Oh  :P

What exactly is a hook?
Title: Re: TNS2XML
Post by: excale on May 23, 2012, 08:27:02 am
Well, a hook places some jump instruction somewhere in the memory, jump which leads to some code. In my case, I placed some hook at some addresses in the OS which get executed when the Nspire retrieves the XML data.
The good thing is that I did not have to search how the XML is decrypted, but the bad thing is that since I have no idea how to decrypt it, there is no way I can make the same on PC (except in nspireEmu).
Title: Re: TNS2XML
Post by: cyanophycean314 on May 23, 2012, 04:58:42 pm
Ok. Thanks.  :)