Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
23 May, 2013, 17:10:02 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   home   news downloads projects tutorials misc forums rules new posts irc about Login Register  
+-OmnomIRC

You must Register, be logged in and have at least 40 posts to use this shout-box! If it still doesn't show up afterward, it might be that OmnomIRC is disabled for your group or under maintenance.

Note: You can also use an IRC client like mIRC, X-Chat or Mibbit to connect to an EFnet server and #omnimaga.

Pages: 1 [2]   Go Down
  Print  
Author Topic: Early beta of nspire version string patcher -  (Read 1581 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
Levak
LV8 Addict (Next: 1000)
********
Offline Offline

Gender: Male
Last Login: Today at 13:48:53
Date Registered: 04 April, 2010, 23:42:49
Location: France
Posts: 843


Total Post Ratings: +148

View Profile WWW
« 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

Human always wants to survive and that's why he will fall one day.
My website - TI-Planet - iNspired-Lua
tangrs
LV4 Regular (Next: 200)
****
Offline Offline

Gender: Male
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

View Profile WWW
« 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 Smiley)

Or is this the format string?
Logged
Levak
LV8 Addict (Next: 1000)
********
Offline Offline

Gender: Male
Last Login: Today at 13:48:53
Date Registered: 04 April, 2010, 23:42:49
Location: France
Posts: 843


Total Post Ratings: +148

View Profile WWW
« 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 Smiley)

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

Human always wants to survive and that's why he will fall one day.
My website - TI-Planet - iNspired-Lua
critor
Editor
LV10 31337 u53r (Next: 2000)
*
Online Online

Gender: Male
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

View Profile WWW
« 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=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. Wink


Download:
http://tiplanet.org/forum/archives_voir.php?id=6640
« Last Edit: 08 August, 2012, 19:50:13 by critor » Logged

TI-Planet co-admin.
Lionel Debroux
LV10 31337 u53r (Next: 2000)
**********
Offline Offline

Gender: Male
Last Login: Today at 15:32:36
Date Registered: 17 December, 2009, 09:37:25
Location: France
Posts: 1854

Total Post Ratings: +208

View Profile WWW
« Reply #19 on: 08 August, 2012, 19:49:03 »
0

Sweet Smiley
Logged

Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.
critor
Editor
LV10 31337 u53r (Next: 2000)
*
Online Online

Gender: Male
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

View Profile WWW
« Reply #20 on: 08 August, 2012, 20:16:35 »
0

Just announed in news:
http://www.omnimaga.org/index.php?topic=14141.new#new
Logged

TI-Planet co-admin.
Hayleia
Programming Absol
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Last Login: Today at 07:16:27
Date Registered: 01 June, 2011, 20:12:47
Location: ud-ud ?
Posts: 2054


Total Post Ratings: +256

View Profile
« 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 Smiley
Logged





Spoiler for what I am according to...:
me: useless
Pokemon Test: an Absol
turiqwalrus: an eggplant
p2: A HUMAN BEING !
Blackpilar and p2: iplantonlyplantwantplanttoplantknowplantifplantyouplantareplantaplantboyplantorplantaplantgirlplant
click here to know where you got your last +1s
Levak
LV8 Addict (Next: 1000)
********
Offline Offline

Gender: Male
Last Login: Today at 13:48:53
Date Registered: 04 April, 2010, 23:42:49
Location: France
Posts: 843


Total Post Ratings: +148

View Profile WWW
« 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 Smiley
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

Human always wants to survive and that's why he will fall one day.
My website - TI-Planet - iNspired-Lua
Pages: 1 [2]   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Powered by MySQL Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Powered by PHP
Page created in 0.542 seconds with 30 queries.
Skin by DJ Omnimaga edited from SMF default theme with the help of tr1p1ea.
All programs, games and songs avaliable on this website are property of their respective owners.
Best viewed in Opera, Firefox, Chrome and Safari with a resolution of 1024x768 or above.