Author Topic: TNS2XML  (Read 11468 times)

0 Members and 1 Guest are viewing this topic.

Offline excale

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 103
  • Rating: +19/-1
    • View Profile
TNS2XML
« 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

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 :).

Offline cyanophycean314

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 363
  • Rating: +43/-1
  • It's You!
    • View Profile
Re: TNS2XML
« Reply #1 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!

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: TNS2XML
« Reply #2 on: May 20, 2012, 05:52:25 am »
Very nice work Excale :)

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: TNS2XML
« Reply #3 on: May 20, 2012, 12:29:01 pm »
Hey, great idea, dumping on calc :D Maybe this could be expanded to a full editor?




Offline excale

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 103
  • Rating: +19/-1
    • View Profile
Re: TNS2XML
« Reply #4 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 :) ).

Offline cyanophycean314

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 363
  • Rating: +43/-1
  • It's You!
    • View Profile
Re: TNS2XML
« Reply #5 on: May 22, 2012, 05:47:08 pm »
Could you implement an easier way to exit this program without rebooting?

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: TNS2XML
« Reply #6 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
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline cyanophycean314

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 363
  • Rating: +43/-1
  • It's You!
    • View Profile
Re: TNS2XML
« Reply #7 on: May 22, 2012, 08:33:53 pm »
Oh  :P

What exactly is a hook?

Offline excale

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 103
  • Rating: +19/-1
    • View Profile
Re: TNS2XML
« Reply #8 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).
« Last Edit: May 23, 2012, 08:28:26 am by excale »

Offline cyanophycean314

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 363
  • Rating: +43/-1
  • It's You!
    • View Profile
Re: TNS2XML
« Reply #9 on: May 23, 2012, 04:58:42 pm »
Ok. Thanks.  :)