Author Topic: Early beta of nspire version string patcher  (Read 13582 times)

0 Members and 1 Guest are viewing this topic.

Offline Levak

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +208/-39
    • View Profile
    • My website
Re: Early beta of nspire version string patcher
« Reply #15 on: August 08, 2012, 01:07:43 am »
so now we can trick the sending software by telling it we are running another OS?

Yep =)
For example, I guess the software won't tell us to update.
I do not get mad at people, I just want them to learn the way I learnt.
My website - TI-Planet - iNspired-Lua

Offline tangrs

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 229
  • Rating: +98/-0
    • View Profile
    • tangrs blog
Re: Early beta of nspire version string patcher
« Reply #16 on: August 08, 2012, 06:09:39 am »
I've got better and shorter :
Code: [Select]
#include <os.h>
#include "libndls.h"

static unsigned addr_addrs[] = {0x107C1DDC, 0x10801E3C, 0x107A2DC8, 0x107FF0D0};
#define addr ((unsigned *)nl_osvalue((unsigned*)addr_addrs, 4))

int main(int argc, char* argv[]) {
char * lol  = "Whatever you want";
char * lol2 = malloc(sizeof(lol));
strcpy(lol2, lol);
    *(addr) = lol2;
    return 0;
}




el problemo ?


Edit : oh, and by the way, show_msg_usr_input() does not work in the current revision of Ndless because my patch for it didn't yet get pushed to the Ndless svn by ExtendeD.

What pointer are you patching? (Oh and watch your malloc - it'll always allocate 4 bytes :))

Or is this the format string?

Offline Levak

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +208/-39
    • View Profile
    • My website
Re: Early beta of nspire version string patcher
« Reply #17 on: August 08, 2012, 08:10:46 am »
What pointer are you patching? (Oh and watch your malloc - it'll always allocate 4 bytes :))

Or is this the format string?

I was patching the formatting String which was much easier than rewrite sprintf.

But you may look at the second code I've posted, where it also patch the areas that the Nspire uses to send to the Computer Link Software its version.
I do not get mad at people, I just want them to learn the way I learnt.
My website - TI-Planet - iNspired-Lua

Offline critor

  • Editor
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2079
  • Rating: +439/-13
    • View Profile
    • TI-Planet
Re: Early beta of nspire version string patcher
« Reply #18 on: August 08, 2012, 01:44:22 pm »
Please welcome vPatch, based on Levak code.
http://tiplanet.org/forum/viewtopic.php?f=43&t=10204

The tool asks you for the OS version you want to set.
It also stores the last version it is given in a config file and can automatically restore it if moved to the Ndless startup folder.

Which means that TI-Nspire Computer Link should now stop telling you to install OS 3.2. ;)


Download:
http://tiplanet.org/forum/archives_voir.php?id=6640
« Last Edit: August 08, 2012, 01:50:13 pm by critor »
TI-Planet co-admin.

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: Early beta of nspire version string patcher
« Reply #19 on: August 08, 2012, 01:49:03 pm »
Sweet :)
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline critor

  • Editor
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2079
  • Rating: +439/-13
    • View Profile
    • TI-Planet
Re: Early beta of nspire version string patcher
« Reply #20 on: August 08, 2012, 02:16:35 pm »
Just announed in news:
http://ourl.ca/16738.new#new
TI-Planet co-admin.

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: Early beta of nspire version string patcher
« Reply #21 on: August 09, 2012, 11:30:01 am »
I like how Levak's program makes every software think it is another version of the OS, but I also like how tangrs' program allows to write anything we want, not only numbers :)
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline Levak

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +208/-39
    • View Profile
    • My website
Re: Early beta of nspire version string patcher
« Reply #22 on: August 09, 2012, 12:11:18 pm »
I like how Levak's program makes every software think it is another version of the OS, but I also like how tangrs' program allows to write anything we want, not only numbers :)
In the first page, my first comment shows a program that allows you to rewrite the fomratting string with what you want in only 10 lines.
And also, tangrs, ExtendeD commited my patch in order to add the String API and the bug fix in show_msg_user_input().
« Last Edit: August 09, 2012, 12:12:59 pm by Levak »
I do not get mad at people, I just want them to learn the way I learnt.
My website - TI-Planet - iNspired-Lua