|
Levak
|
 |
« Reply #15 on: 08 August, 2012, 07:07:43 » |
0
|
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.
|
|
|
|
|
Logged
|
|
|
|
tangrs
LV4 Regular (Next: 200)
  
Offline
Gender: 
Last Login: Today at 07:34:12
Date Registered: 13 July, 2011, 04:32:25
Location: Australia
Posts: 188
Topic starter
Total Post Ratings: +84
|
 |
« Reply #16 on: 08 August, 2012, 12:09:39 » |
0
|
I've got better and shorter : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
| #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?
|
|
|
|
|
Logged
|
|
|
|
|
Levak
|
 |
« Reply #17 on: 08 August, 2012, 14:10:46 » |
0
|
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.
|
|
|
|
|
Logged
|
|
|
|
critor
Editor
LV10 31337 u53r (Next: 2000)
Online
Gender: 
Last Login: Today at 16:50:50
Date Registered: 14 July, 2009, 23:57:37
Location: Aix-Marseille, France
Posts: 1724
Total Post Ratings: +370
|
 |
« Reply #18 on: 08 August, 2012, 19:44:22 » |
0
|
Please welcome vPatch, based on Levak code. http://tiplanet.org/forum/viewtopic.php?f=43&t=10204The 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: 08 August, 2012, 19:50:13 by critor »
|
Logged
|
|
|
|
|
|
critor
Editor
LV10 31337 u53r (Next: 2000)
Online
Gender: 
Last Login: Today at 16:50:50
Date Registered: 14 July, 2009, 23:57:37
Location: Aix-Marseille, France
Posts: 1724
Total Post Ratings: +370
|
 |
« Reply #20 on: 08 August, 2012, 20:16:35 » |
0
|
|
|
|
|
|
Logged
|
|
|
|
|
Hayleia
|
 |
« Reply #21 on: 09 August, 2012, 17:30:01 » |
0
|
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 
|
|
|
|
|
Logged
|
|
|
|
|
Levak
|
 |
« Reply #22 on: 09 August, 2012, 18:11:18 » |
0
|
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: 09 August, 2012, 18:12:59 by Levak »
|
Logged
|
|
|
|
|