Hacking NDSTokyoTrim - batch trimmer with wifi detection

perkele

Well-Known Member
Member
Joined
Jul 19, 2006
Messages
126
Trophies
0
Website
Visit site
XP
112
Country
Finland
Ok i'll give you a hint. In order to replace the current background you need to create an encripted one, matching the same encription I used, which is based on random seeds, distribute it across the exe in several areas (it's not embedded as a resource), and have the checksum of various parts of it match certain values that affect the final rom size and trimming process. No background = wrong trimming.
Nice, now you admit you took all this effort just to keep your background picture from being altered, instead of putting that time into making a skinning engine or an easy to make option to show or hide the background.
Smart move.
 

ZAFDeltaForce

Specialist
Member
Joined
Sep 9, 2006
Messages
2,794
Trophies
1
XP
597
Country
Singapore
Ok i'll give you a hint. In order to replace the current background you need to create an encripted one, matching the same encription I used, which is based on random seeds, distribute it across the exe in several areas (it's not embedded as a resource), and have the checksum of various parts of it match certain values that affect the final rom size and trimming process. No background = wrong trimming.
Nice, now you admit you took all this effort just to keep your background picture from being altered, instead of putting that time into making a skinning engine or an easy to make option to show or hide the background.
Smart move.
Seeing you as a rather new member, I strongly recommend you read this before this evolves into a flame war.

EDIT: Grammar
 

BrianTokyo

NDSTokyoTrim Dev.
OP
Member
Joined
Jun 28, 2007
Messages
658
Trophies
1
Website
www.eden.fm
XP
340
Country
Ok i'll give you a hint. In order to replace the current background you need to create an encripted one, matching the same encription I used, which is based on random seeds, distribute it across the exe in several areas (it's not embedded as a resource), and have the checksum of various parts of it match certain values that affect the final rom size and trimming process. No background = wrong trimming.
Nice, now you admit you took all this effort just to keep your background picture from being altered, instead of putting that time into making a skinning engine or an easy to make option to show or hide the background.
Smart move.

Yep, although I have no need to explain what I spend my time on or what I put effort into, to anyone.

At first I didn't care much about the background tbh, but seeing how people changed it I got some motivation to try and see if I could make it really hard/impossible to replace; as for people using other backgrounds I don't really care, but achieving this protection was a goal.

Part of this also works for the embedded DLLs, the libraries to extract unrar and 7z archives (not made by me). Other trimmers include them in the zip and stay in the same application folder. That can lead to people downloading fake libraries which are actually virus, so I thought embedding them in the exe and loading them straight into memory would be nice, and also convenient when taking the trimmer around, as you only need the single exe.

This technique for loading the DLLs into memory without previously extracting to disk seems to crash the app in Vista 64 though, so I might need to change that for a 64-bit Vista release. (the linked test doesn't have rar/7z support, only zip, for which I didn't require a DLL).
 

Ducky

QUACKJECTION!
Member
Joined
Oct 13, 2007
Messages
1,084
Trophies
0
Age
29
Location
Duckling Land!
Website
Visit site
XP
361
Country
Iceland
I never thought.. A japanese/chinese guy would be anime fan..
blink.gif
 

Grimalkin

Waaaaaaaah!
Member
Joined
Jun 9, 2006
Messages
1,173
Trophies
0
Website
Visit site
XP
141
Country
Canada
Er... who would stick with 98? Get an new O/S man.

Brian does good work, so no one should be complaining. As I said before, if you don't like it, don't use it. End of discussion.
 

jelbo

Ōkami!
Member
Joined
Sep 12, 2003
Messages
867
Trophies
2
Location
Netherlands
Website
cursors.pocketheaven.com
XP
876
Country
Netherlands
Ok i'll give you a hint. In order to replace the current background you need to create an encripted one, matching the same encription I used, which is based on random seeds, distribute it across the exe in several areas (it's not embedded as a resource), and have the checksum of various parts of it match certain values that affect the final rom size and trimming process. No background = wrong trimming.
Nice, now you admit you took all this effort just to keep your background picture from being altered, instead of putting that time into making a skinning engine or an easy to make option to show or hide the background.
Smart move.

Yep, although I have no need to explain what I spend my time on or what I put effort into, to anyone.

At first I didn't care much about the background tbh, but seeing how people changed it I got some motivation to try and see if I could make it really hard/impossible to replace; as for people using other backgrounds I don't really care, but achieving this protection was a goal.

Part of this also works for the embedded DLLs, the libraries to extract unrar and 7z archives (not made by me). Other trimmers include them in the zip and stay in the same application folder. That can lead to people downloading fake libraries which are actually virus, so I thought embedding them in the exe and loading them straight into memory would be nice, and also convenient when taking the trimmer around, as you only need the single exe.

This technique for loading the DLLs into memory without previously extracting to disk seems to crash the app in Vista 64 though, so I might need to change that for a 64-bit Vista release. (the linked test doesn't have rar/7z support, only zip, for which I didn't require a DLL).
Haha, awesome post. OK, knowing about the niftyness of NDSTokyoTrim's insides makes it quite cool
biggrin.gif
I'll go ahead and give it a try sometime. So far I've been using trim.exe in my SendTo folder.
 

springah

Well-Known Member
Member
Joined
Aug 1, 2006
Messages
118
Trophies
1
Age
41
Location
Sydney, Australia
Website
Visit site
XP
315
Country
eggs!

sorry to offend, im just not "into" anime girls. anime in general is cool though. no reason to delay the bg change option because of me
tongue.gif


but hey, great prog, use it all the time. just simply not a fan of anime girls who look 12 years old with hardly any clothes on.
 

Scalpos

Member
Newcomer
Joined
Nov 27, 2006
Messages
10
Trophies
0
XP
94
Country
France
Thank you soooooo much BrianTokyo for this superb trimmer and your quite interesting site !!!
I can't wait for the option to rename trimmed roms, this would make NDSTokyoTrim THE PERFECT NDS trimmer.

Could you please tell me the name of your signature's anime ?

Regards
 

BrianTokyo

NDSTokyoTrim Dev.
OP
Member
Joined
Jun 28, 2007
Messages
658
Trophies
1
Website
www.eden.fm
XP
340
Country
Thank you soooooo much BrianTokyo for this superb trimmer and your quite interesting site !!!
I can't wait for the option to rename trimmed roms, this would make NDSTokyoTrim THE PERFECT NDS trimmer.

Could you please tell me the name of your signature's anime ?

Regards

Scene numbers thing: most probably in the next version

Anime: it's "The Melancholy of Haruhi Suzumiya" (Suzumiya Haruhi no Yuutsu)

%5Ba.f.k.%5D%20The%20Melancholy%20of%20Haruhi%20Suzumiya%20-%2003.avi%20-%2000001.jpg
 

Harley77

Member
Newcomer
Joined
Jul 18, 2007
Messages
14
Trophies
0
XP
100
Country
United States
The App is great, but even ignoring the Japedophile background, The pic makes the text way too hard to read. Gotta pass until that background becomes optional.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • K3Nv2 @ K3Nv2:
    Yeah I wanted to see shards of the titanic
  • BigOnYa @ BigOnYa:
    I kept thinking jaws was gonna come up and attack
  • K3Nv2 @ K3Nv2:
    Jaws is on a diet
  • K3Nv2 @ K3Nv2:
    Damn power went out
  • BigOnYa @ BigOnYa:
    Ok xdqwerty, your little bro prob tripped On the cord and unplugged you
  • K3Nv2 @ K3Nv2:
    Ya I'm afraid of the dark hug me
  • BigOnYa @ BigOnYa:
    Grab and hold close your AncientBoi doll.
  • K3Nv2 @ K3Nv2:
    Damn didn't charge my external battery either
  • BigOnYa @ BigOnYa:
    Take the batteries out of your SuperStabber3000... Or is it gas powered?
  • K3Nv2 @ K3Nv2:
    I stole batteries from your black mamba
    +1
  • K3Nv2 @ K3Nv2:
    My frozen food better hold up for an hour I know that
  • BigOnYa @ BigOnYa:
    Or else gonna be a big lunch and dinner tomorrow.
  • BigOnYa @ BigOnYa:
    Did you pay your power bill? Or give all yo money to my wife, again.
  • K3Nv2 @ K3Nv2:
    Oh good the estimated time is the same exact time they just said
    +1
  • BigOnYa @ BigOnYa:
    Load up your pc and monitor, and head to a McDonalds dining room, they have free WiFi
  • K3Nv2 @ K3Nv2:
    Sir please watch your porn in the bathroom
    +2
  • BigOnYa @ BigOnYa:
    No sir we can not sell you anymore apple pies, after what you did with the last one.
  • K3Nv2 @ K3Nv2:
    We ran out
  • HiradeGirl @ HiradeGirl:
    for your life
    +1
  • K3Nv2 @ K3Nv2:
    My life has no value my fat ass is staying right here
  • K3Nv2 @ K3Nv2:
    Nearly 4 hours without power :(
    K3Nv2 @ K3Nv2: Nearly 4 hours without power :(