Shoutbox

[Tut-Updated 08/04/05] Resource Hacking - Hex Editing - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Skype & Live Messenger (/forumdisplay.php?fid=10)
+----- Thread: [Tut-Updated 08/04/05] Resource Hacking - Hex Editing (/showthread.php?tid=38961)

[Tut-Updated 08/04/05] Resource Hacking - Hex Editing by Ahmad on 02-21-2005 at 08:45 PM

What follows is a simple tutorial on how to use Resource Hacker to remove buttons/banners from MSN Messenger 7.

I hope I haven't made any errors, it was a big tutorial to put together! Let me know if you find any. Thanks everyone for the help and support! :)

Note: You must 'Compile Script' after you edit something, if you forget, it will prompt you to do so the next time you search for text.

First of all open Resource Hacker, then open msnmsgr.exe


Main Contact List Window

Removing the MSN Today Button

Find (Ctrl+F): <cmdbutton cmdid=40234 id=atom(msntodaybtn)

Result: UIFILE > 923 > 1033

code:
<cmdbutton cmdid=40234 id=atom(msntodaybtn) class="ToolbarBtn" layout=flowlayout(0,2,0,2) AccName=rcstr(4231) AccRole=57 AccDesc=rcstr(4230) ShortcutString=rcstr(4229)>

Delete id=atom(msntodaybtn)
Change layout=flowlayout(0,2,0,2) to layoutpos=none

Final result should look like this:
code:
<cmdbutton cmdid=40234 class="ToolbarBtn" layoutpos=none AccName=rcstr(4231) AccRole=57 AccDesc=rcstr(4230) ShortcutString=rcstr(4229)>


Removing the My Space Button

Find (Ctrl+F): <cmdbutton cmdid=40421 id=atom(spacebtn)

Result: UIFILE > 923 > 1033
code:
<cmdbutton cmdid=40421 id=atom(spacebtn) class="ToolbarBtn" layout=flowlayout(0,2,0,2) AccName=rcstr(4257) AccRole=57 AccDesc=rcstr(61769) ShortcutString=rcstr(4256)>

Delte id=atom(spacebtn)
Change layout=flowlayout(0,2,0,2) to layoutpos=none

Final result should look like this:
code:
<cmdbutton cmdid=40421 class="ToolbarBtn" layoutpos=none AccName=rcstr(4257) AccRole=57 AccDesc=rcstr(61769) ShortcutString=rcstr(4256)>

Removing the Add Contact Button

Find (Ctrl+F): <cmdbutton  id=atom(idAddContact)

Result: UIFILE > 923 > 1033
code:
<cmdbutton  id=atom(idAddContact) cmdid=40282 class="TasklistBtn" layout=flowlayout(0,2,0,2) background=ifhc(window, gradient(rgb(222,229,247), rgb(242,242,250), 1)) bordercolor=ifhc(buttonshadow, rgb(214,220,242)) borderthickness=rect(1,1,1,1) padding=rect(3,2,3,2)

Delete id=atom(idAddContact)
Change layout=flowlayout(0,2,0,2) to layoutpos=none

Final result should look like this:
code:
<cmdbutton  cmdid=40282 class="TasklistBtn" layoutpos=none background=ifhc(window, gradient(rgb(222,229,247), rgb(242,242,250), 1)) bordercolor=ifhc(buttonshadow, rgb(214,220,242)) borderthickness=rect(1,1,1,1) padding=rect(3,2,3,2)

Removing the Search Bar

Find (Ctrl+F): <element id=atom(idSearchContainer)

Result: UIFILE > 923 > 1033
code:
<element id=atom(idSearchContainer) layout=borderlayout() padding=rect(1,4,1,3)>

Change layout=borderlayout() to layoutpos=none
Change padding=rect(1,4,1,3) to padding=rect(0,0,0,0)

Final result should look like this:
code:
<element id=atom(idSearchContainer) layoutpos=none padding=rect(0,0,0,0)>

Removing the Ad Banner

Find (Ctrl+F): <element layoutpos=top layout=verticalflowlayout(0,2,2,2) padding=rect(2,0,3,2)>

Result: UIFILE > 923 > 1033
code:
<element layoutpos=top layout=verticalflowlayout(0,2,2,2) padding=rect(2,0,3,2)>

Change layoutpos=top to layoutpos=none

Final result should look like this:
code:
<element layoutpos=none layout=verticalflowlayout(0,2,2,2) padding=rect(2,0,3,2)>


Instant Message Window

Removing the MSN Logo from the Instant Message Window

Ctrl+F (Find): <png class="CaptionImg" id=atom(msnlogo)



Press F3 (Find Next) until it takes you to UIFILE > 920 > 1033 and shows you this line:
code:
<png class="CaptionImg" id=atom(msnlogo) layoutpos=ifhc(none, right) flip=false idres=1041/>

Now change it to this:
code:
<png class="CaptionImg" id=atom(msnlogo) layoutpos=ifhc(none, none) flip=false idres=1041/>

Press F3, do the same changes.

Repeat another 2 times. There are a total of 4 in UIFILE 920.

Removing the Winks Button

Ctrl+F (Find): <cmdbutton cmdid=35126 id=atom(winkbtn)

Result: UIFILE > 920 > 1033
code:
<cmdbutton cmdid=35126 id=atom(winkbtn) class="ToolbarBtn" layout=flowlayout(0,2,0,2) AccName=rcstr(60004) AccRole=57 AccDesc=rcstr(3178) ShortcutString=rcstr(60004)>
    <png flip=false idres=1093 class="ToolbarIcon" />
    <element id=atom(suppress) padding=rect(2,0,0,0) content=rcstr(60004) />
    <element class="ToolbarCaret"/>
</cmdbutton>

Delete id=atom(winkbtn)
Change layout=flowlayout(0,2,0,2) to layoutpos=none

Final result should look like this:
code:
<cmdbutton cmdid=35126 class="ToolbarBtn" layoutpos=none AccName=rcstr(60004) AccRole=57 AccDesc=rcstr(3178) ShortcutString=rcstr(60004)>
    <png flip=false idres=1093 class="ToolbarIcon" />
    <element id=atom(suppress) padding=rect(2,0,0,0) content=rcstr(60004) />
    <element class="ToolbarCaret"/>
</cmdbutton>

Removing the Packs Button

Find (Ctrl+F): <cmdbutton cmdid=40614

Result: UIFILE > 920 > 1033
code:
<cmdbutton cmdid=40614
        id=atom(themesbtn)
        class="ToolbarBtn"
        layout=flowlayout(0,2,0,2)
        AccName=rcstr(60013)
        AccRole=57
        AccDesc=rcstr(44082)
        ShortcutString=rcstr(60013)>
    <png flip=false idres=1012  class="ToolbarIcon" />
    <element id=atom(suppress) padding=rect(2,0,0,0) content=rcstr(60013) />
    <element class="ToolbarCaret"/>
</cmdbutton>

Delete id=atom(themesbtn)
Change layout=flowlayout(0,2,0,2) to layoutpos=none

Final result should look like this:
code:
<cmdbutton cmdid=40614
       
        class="ToolbarBtn"
        layoutpos=none
        AccName=rcstr(60013)
        AccRole=57
        AccDesc=rcstr(44082)
        ShortcutString=rcstr(60013)>
    <png flip=false idres=1012  class="ToolbarIcon" />
    <element id=atom(suppress) padding=rect(2,0,0,0) content=rcstr(60013) />
    <element class="ToolbarCaret"/>
</cmdbutton>

Removing the Nudge Button

Find (Ctrl+F): <cmdbutton cmdid=689


Result: UIFILE > 920 > 1033
code:
<cmdbutton cmdid=689


        id=atom(buzzbtn)
        class="ToolbarBtn"
        layout=flowlayout(0,2,0,2)
        AccName=rcstr(699)
        AccRole=57
        AccDesc=rcstr(700)
        >
    <png flip=false padding=rect(2,0,0,0) idres=911  class="ToolbarIcon" />
</cmdbutton>

Delete id=atom(buzzbtn)
Change layout=flowlayout(0,2,0,2) to layoutpos=none

Final result should look like this:
code:
<cmdbutton cmdid=689
       
        class="ToolbarBtn"
        layoutpos=none
        AccName=rcstr(699)
        AccRole=57
        AccDesc=rcstr(700)
        >
    <png flip=false padding=rect(2,0,0,0) idres=911  class="ToolbarIcon" />
</cmdbutton>

Removing the Search Button

Find (Ctrl+F): <element id=atom(searchbtnbk)

Result: UIFILE > 920 > 1033
code:
<element id=atom(searchbtnbk) class="SendButtonBk" layout=borderlayout()>

Delete id=atom(searchbtnbk)
Change layout=borderlayout() to layoutpos=none

Final result should look like this:
code:
<element class="SendButtonBk" layoutpos=none>

Removing the Text AdBanner


Find (Ctrl+F): <element id=atom(adbannercont)

Result: UIFILE > 920 > 1033
code:
<element id=atom(adbannercont) layout=filllayout() layoutpos=bottom >
    <element height=25 layout=borderlayout() borderthickness=rect(0,1,0,0) colorize=enabled/>
    <textadbanner id=atom(adbanner) layout=borderlayout() padding=rect(1,0,1,3) borderthickness=rect(0,1,0,0) colorize=enabled>
        <cmdbutton id=atom(adbannertextcontainer) layout=verticalflowlayout(0,0, 2, 2) layoutpos=left background=argb(0,0,0,0) selected=false tooltip=true AccName=rcstr(85) padding=rect(19,0,2,4) colorize=enabled>
            <wledit id=atom(adbannertext) class="ReadOnlyText" selected=false active=inactive />
        </cmdbutton>
    </textadbanner>
</element>

Delete all 8 lines.

Removing the Activities Button

Find (Ctrl+F): <cmdbutton cmdid=40617 id=atom(appdropdownbtn)

Result: UIFILE > 920 > 1033
code:
<cmdbutton cmdid=40617 id=atom(appdropdownbtn) class="TaskbarBtn" layout=borderlayout() AccName=rcstr(60041) AccDesc=rcstr(44037) ShortcutString=rcstr(60041)>

Delete id=atom(appdropdownbtn)
Change layout=borderlayout() to layoutpos=none

Final result should look like this:
code:
<cmdbutton cmdid=40617 class="TaskbarBtn" layoutpos=none AccName=rcstr(60041) AccDesc=rcstr(44037) ShortcutString=rcstr(60041)>


Removing the Color Button

Find (Ctrl+F): <cmdbutton cmdid=40317 id=atom(colorizedropdownbtn)

Result: UIFILE > 920 > 1033
code:
<cmdbutton cmdid=40317 id=atom(colorizedropdownbtn) class="TaskbarMiniBtn" layout=filllayout() AccName=rcstr(436) AccDesc=rcstr(435) >

Delete id=atom(colorizedropdownbtn)
Change layout=filllayout() to layoutpos=none

Final result should look like this:
code:
<cmdbutton cmdid=40317 class="TaskbarMiniBtn" layoutpos=none AccName=rcstr(436) AccDesc=rcstr(435) >

Removing the What's Hot Section (UIFILE > 940 > 1033)

Find (Ctrl+F): <element id=atom(contentgrp) layout=verticalflowlayout(0, 3, 3, 0) background=ifhc(menu, rgb( 238, 243, 250 ))>

Change layout=verticalflowlayout(0, 3, 3, 0) to layoutpos=none

Final result should look like this:
code:
<element id=atom(contentgrp) layoutpos=none background=ifhc(menu, rgb( 238, 243, 250 ))>

Again, Find (Ctrl+F): <element id=atom( PremiumPacks )

Result:
code:
<element id=atom( PremiumPacks )
                    layout=FillLayout()/>

Change layout=FillLayout() to layoutpos=none

Final result should look like this:
code:
<element id=atom( PremiumPacks )
                    layoutpos=none  />

Again, Find (Ctrl+F): <element id=atom( PremiumEmoticons)

Result, on top of that you will see:
code:
<element id=atom(contentgrp) layout=verticalflowlayout(0, 3, 3, 0) background=ifhc(menu, rgb( 238, 243, 250 ))>

Change layout=verticalflowlayout(0, 3, 3, 0) to layoutpos=none

Final result should look like this:

code:
<element id=atom(contentgrp) layoutpos=none background=ifhc(menu, rgb( 238, 243, 250 ))>


Don't forget, 'Compile Script' when you're done! Then save it as msnmsgr.exe (backup the original before you do so, just incase!)

------------------------------------------------------------------


Hex Editing
/*Updated offsets for version 7.0.0813 */

Enable Polygamy
Offset: 00147079
Normal: B7
Patched: B6

Remove Nudge Delay
Offset: 000FF52B
Normal: 8B 86 A8 02 00 00
Patched: 33 C0 40 90 90 90

Remove File Transfer Protection
Offset 1: 001233FB
Normal 1: 7C
Patched 1: EB

Offset 2: 001B8EDC
Normal 3: 74
Patched 4: EB

You can find a tutorial on how to find the polygamy offset here: http://www.m00.cx/dev/polygamy.html (by Segosa)

The tool that you'll need for the job is Olly Debugger, which you can find here: http://home.t-online.de/home/Ollydbg/download.htm

------------------------------------------------------------------


How to add an "Always On Top" button to the Contact List
and Instant Message window when the menu is hidden.


Open msnmsgr.exe in ResHacker

Find (Ctrl+F): <element id=atom(minmaxclose
Press F3 twice, you should now be in UIFILE 920 [Instant Message Window]

Result: <element id=atom(minmaxclosebase) layout=flowlayout(0,2,0,2)>

Add the following three lines beneath our search result:
code:
<cmdbutton cmdid=40027 class="CaptionBtn" layout=filllayout() AccName=rcstr(47012) AccDesc=rcstr(47012) active=mouse>
    <png class="CaptionImg" idres=869 contentalign=middlecenter padding=rect(0,0,0,0)/>
</cmdbutton>

Press F3 (we're still in UIFILE 920 [Instant Message Window]))

Add the following three lines beneath our search result:
code:
<cmdbutton cmdid=40027 class="CaptionBtn" layout=filllayout() AccName=rcstr(47012) AccDesc=rcstr(47012) active=mouse>
    <png class="CaptionImg" idres=869 contentalign=middlecenter padding=rect(0,0,0,0)/>
</cmdbutton>

Press F3 again (we're still in UIFILE 920 [Instant Message Window]))

Add the following three lines beneath our search result:
code:
<cmdbutton cmdid=40027 class="CaptionBtn" layout=filllayout() AccName=rcstr(47012) AccDesc=rcstr(47012) active=mouse>
    <png class="CaptionImg" idres=869 contentalign=middlecenter padding=rect(0,0,0,0)/>
</cmdbutton>

Press F3 again.. (we're still in UIFILE 920 [Instant Message Window])

Add the following three lines beneath our search result:
code:
<cmdbutton cmdid=40027 class="CaptionBtn" layout=filllayout() AccName=rcstr(47012) AccDesc=rcstr(47012) active=mouse>
    <png class="CaptionImg" idres=869 contentalign=middlecenter padding=rect(0,0,0,0)/>
</cmdbutton>

Click "Compile Script"


Now press F3 five times until you reach UIFILE 923 [Contact List]

Add the following three lines beneath our search result (notice the cmdid has changed for our last pasting):
code:
<cmdbutton cmdid=40044 class="CaptionBtn" layout=filllayout() AccName=rcstr(47012) AccDesc=rcstr(47012) active=mouse>
    <png class="CaptionImg" idres=869 contentalign=middlecenter padding=rect(0,0,0,0)/>
</cmdbutton>

Click "Compile Script"


Now that we've added the button to the Contact List, we need to give it an image.

Click: Action > Add a new Resource ...

Click: Open file with new resource...

Choose the PNG image you want to add, I suggest using this one [Image: attachment.php?pid=387756]

Now fill in the following fields with the details below..

Resource Type: PNG
Resource Name: 869
Resource Language: 1033

[Image: reshack8690vn.jpg]

(Note: change 1033 to the number that corresponds with your language)

Click Add Resource

Now let's save the file by clicking: File > Save (or Save As... if you wish to not overwrite the file)


Ok, now that's done, we need to add a string so that when we hover over the button, it will say "Always On Top".

So let's open msgslang.dll in ResHacker.

Click the plus next to the folder String Table (expanding it)
Scroll down to the folder numbered 2939, expand it (by clicking the plus sign) and click on 1033 (or whatever number you have there, it's a language identifier).
Now add this line to the end, before the curly bracket } :
code:
47012,  "Always On Top"

Click "Compile Script"

Save the file.

We're done, run MSN Messenger!


Some notes:

cmdid=40044 - 40044 is the command for toggling the Always On Top feature in the Contact List.
cmdid=40027 - 40027 is the command for toggling the Always On Top feature in the Instant Message Window.

I found these by browsing through the MENU resources in the msgslang.dll file.

idres=869 - 869 is the number of the PNG image we are using.

AccName=rcstr(47012) AccDesc=rcstr(47012) - 47012 is the number of the string we added to the msgslang.dll file.


How to change your Display Picture
(By clicking on it in the Contact List)

I noticed a few people were complaining that when they click their Display Picture in the Contact List, it shows them their contact card. So, I thought I'd post this little tutorial on how to change it back to changing the DP (I'm also going to include this feature in the next major release of my patch, that is if Microsoft decide to keep it like this). Enjoy!

Exit MSN Messenger (and back it up if you want)

Open msnmsgr.exe in ResHacker

Find (Ctrl+F): <usertileview id=atom(idMainWndUserTile) cmdid=40400

Result, UIFILE --> 923:
code:
<usertileview id=atom(idMainWndUserTile) cmdid=40400 active=mouseandkeyboard | nosyncfocus/>

Change cmdid=40400 to cmdid=310

It should now look like this:
code:
<usertileview id=atom(idMainWndUserTile) cmdid=310 active=mouseandkeyboard | nosyncfocus/>

Click 'Compile Script'

Save the file (File --> Save)

Open msgslang.dll in Resource Hacker..

Expand the String Table folder and navigate down to the folder numbered 2756.

Change: 44089,     "View My Contact Card"

To:
code:
44089,     "Change My Display Picture"

Compile Script, save the file.

And we're done! Run Messenger!


How to add a Properties option
when you right-click a contact


Exit MSN Messenger, open msgslang.dll in reshacker..

Goto Menu > 208 > 1033

Underneath MENUITEM "&Delete Contact",  40043,  GRAYED (on line 37), paste the following line:
code:
    MENUITEM "&Properties",  40041

Click 'Compile Script'.

Save msgslang.dll

You're done :) Run MSN Messenger!

Now you can right-click any contact on your list and check their "Properties" just like in MSNM 6.2.


Swap Now Playing Title & Artist

Windows Media Player

Exit MSN Messenger and Windows Media Player.

Open psmsong.dll in Resource Hacker...

Go to String Table > 7

Change 106,     "{0} - {1}" to 106,     "{1} - {0}"

Final Result:
code:
STRINGTABLE
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
{
102,     "MSN Messenger Music Plugin"
103,     "Changes your personal message in MSN Messenger to show the currently playing song."
106,     "{1} - {0}"
}

Click Compile Script
Save, run MSN Messenger! :)

WinAMP

Download the toaster Plug-in by Shane and install it: http://apatch.killercarrot.co.uk/index.php?cat=toaster

Open WinAMP, go to Options > Preferences > Plug-ins > General Purpose > click Toaster for Winamp..... > click Configure selected plug-in > click the Extra tab and change MSN Format from {0} - {1} to {1} - {0} > click OK

Done :)
RE: [Tutorial] Resource Hacking - Hex Editing by Millenium_edition on 02-21-2005 at 08:48 PM

great tut :wink:


RE: [Tutorial] Resource Hacking - Hex Editing by user27089 on 02-21-2005 at 08:54 PM

it is a tutorial for use with Resource hacker :lol:...

anyway. Nice tutorial (y)... Thanks dude :p.


RE: [Tutorial] Resource Hacking - Hex Editing by Caboose on 02-22-2005 at 02:42 AM

Hhhmm... for the 'How To Change Your Display Picture' part, my cmdid=310 was already there, but it doesn't work :S

Other then that, seems like a pretty good tutorial (Y)


RE: [Tutorial] Resource Hacking - Hex Editing by SikStyles on 02-22-2005 at 02:47 AM

awsome i was lookin for resource tuts...tnx man!


RE: [Tutorial] Resource Hacking - Hex Editing by Ahmad on 02-22-2005 at 10:22 AM

quote:
Originally posted by Caboose
Hhhmm... for the 'How To Change Your Display Picture' part, my cmdid=310 was already there, but it doesn't work :S

Other then that, seems like a pretty good tutorial (Y)

Probably because you're using 7.0.0425, or you patched it ... this tutorial is for 7.0.0604, but most of it will work for previous versions of 7

And thanks :)
RE: [Tutorial] Resource Hacking - Hex Editing by John Anderton on 02-22-2005 at 11:30 AM

Good tut man ;) (Y)


RE: [Tutorial] Resource Hacking - Hex Editing by Menthix on 02-22-2005 at 12:09 PM

I was wondering... the UIFILE's are somewhat obvious. But how do you find out the HEX values? For example pologamy

quote:
Enable Polygamy
Offset: 0013b12b
Normal: B7
Patched: B6
How did you figure out on which offset you should be and what to change it to? Are there any tools you use for it or another method? I would to know a bit more so i can do some hex editing on other programs as well :).

Thank you for taking the time to create this tutorial, i may know alot about computers and software, but Hex editing is something i never done before, very interesting ;).

Note to mods and admins: Ahmz posted this topic about a week ago too, it was deleted by Fraisie after a few hours that time. I talked to Fraisie and she said she shouldn't have deleted it and she won't do it again when this topic would be reposted...


RE: [Tutorial] Resource Hacking - Hex Editing by Pr0xY on 02-22-2005 at 04:39 PM

Great job Ahmz_55, I'm glad to see this was reposted again.  Alot of nice info for someone who wants to learn about Hex Editing. 

I hope there are most Tutorials like this posted, it would be Great to make a forum Section just for Tutorials.


RE: [Tutorial] Resource Hacking - Hex Editing by CookieRevised on 02-22-2005 at 04:57 PM

quote:
Originally posted by MenthiX
How did you figure out on which offset you should be and what to change it to?
He didn't :p

Easiest way, and the way that 99% of the people who create patches do it is simply by byte-comparing a patched executable with a non patched executable (This can even be done with the DOS command FC.exe). In other crude words: they simply copy the things that other people have found...

The disadvantage of this is that you don't know what exactly you're doing and why.

(And this is also the cause that polygamy patches almost always patch different bytes then the ones shown by Ahmz_055. These different bytes/offsets are all copied from other patches. Note: Ahmz_055 changed this in his latest patch, before he also had those different bytes. To know what the difference is between the ones shown and the others see " Polygamy (what/why/how/etc...)")


The hard way (and only true way), is by disassembling the executable. The big benefit from this is that you know exactly what you're patching and why.



quote:
Originally posted by MenthiX
Are there any tools you use for it or another method?
Some compare tools to do the easy job (like anyone else). eg: fc.exe (standard DOS tool, compares text and binary) or any other dedicated tool (any decent hex-editor can do it also of course).

Some hex-editing (hexadecimal editor) tools. Again, searching the web is the answer, there are millions. Personaly I use the not-free but very decent Hexworks)

If you realy mean bussiness, some dissassembler. Yep, search the web... :p



quote:
Originally posted by MenthiX
I would to know a bit more so i can do some hex editing on other programs as well .
My advise would be to d/l some free hex-editor and start peeking around in files with it. And don't just do it on executables (most stuff you'll see will not make any sense anyways), but start with other files like GIF's, BMP's, word documents, StuffPlug-NG translation files, wav-files, etc... and also seek info about the file format that you're looking at (eg: on http://www.wotsit.org/ you'll find lots of formats)

And after that start changing some bits 'n bolds in the files with the hexeditor and see what it will do to the files. In this way you'll get a quick notion on what those strange numbers and characters are that you'll see in a hex-editor and how to deal with them (which is for each type of file very different).



May I also point out that the title of this thread isn't correct ;) This isn't a tutorial on Resource Hacker, nor on Hex-editing. (I once made one on hex-editing though, but the thread got deleted I think when the main subject of that thread became redundant (tabs in 6.1.x) :p)

quote:
Originally posted by Pr0xY
Alot of nice info for someone who wants to learn about Hex Editing. 
tbh, the info in this thread is of no value what-so-ever to those who want to learn about hex editing. Except for the polygamy patch (which isn't explained), there is nothing in this thread which has got anything todo with "hex-editing". Sorry, Ahmz_055... the "[how-to] skin/change stuff in msn messenger 7.0.0604"* of yours is nice though.

PS: Don't forget to update all your threads on all those forums when something changes, Ahmz_055 ;)

* "[how-to] skin/change stuff in msn messenger 7.0.0604" would be a more correct/appropiate title of this thread. ;)
RE: RE: [Tutorial] Resource Hacking - Hex Editing by Ash_ on 02-22-2005 at 09:35 PM

quote:
Originally posted by CookieRevised

If you realy mean bussiness, some dissassembler. Yep, search the web... :p



SoftICE and OllyDbg (or debug) are great dissaseblers.
i prefer OllyDbg, google that if you wanna get into this stuff.
RE: [Tutorial] Resource Hacking - Hex Editing by dotNorma on 02-23-2005 at 01:01 AM

Great tutorial man! This helped alot :grin:

Keep up the good work!


RE: [Tutorial] Resource Hacking - Hex Editing by Pipish on 02-23-2005 at 03:41 AM

i found when i tried to open up msn i could have im's but i couldnt open the main msn window :/ weird


fixed that

now i cant start convos ill jaust have to go back to the old msn


RE: [Tutorial] Resource Hacking - Hex Editing by Purity on 02-23-2005 at 03:45 AM

quote:
Originally posted by Ash_
SoftICE and OllyDbg (or debug) are great dissaseblers.
i prefer OllyDbg, google that if you wanna get into this stuff.
I like Softice.

RE: [Tutorial] Resource Hacking - Hex Editing by Ahmad on 02-23-2005 at 07:32 AM

quote:
Originally posted by Pipish
i found when i tried to open up msn i could have im's but i couldnt open the main msn window :/ weird


fixed that

now i cant start convos ill jaust have to go back to the old msn

Back up messenger next time :) Someone else had this problem also, it was because he deleted something he shouldn't have, but he did the tut again and all was fine. Everything in the tutorial is correct, it's just that you might have deleted or altered something you shouldn't have by accident.
RE: [Tut-Updated 24/2/05] Resource Hacking - Hex Editing by Ahmad on 02-23-2005 at 07:29 PM

Updated, added How to add a Properties option when you right-click on a contact.

Edit: CookieRevised: I don't see the point of you putting down what I've posted, this is a tutorial on how to remove stuff from Messenger using reshacker,

[Tutorial: Something that provides special, often individual instruction]

And in between, I decided to add a couple of Hex values.

As for me, I am a n00b compared to you and many others, but I'm trying to do my bit and share the little knowledge that I have so that others may benefit. Without the sharing of knowledge, how can anyone else learn? So instead of putting me down (however indirect), a little encouragement would be nice.

Thanks.


RE: [Tut-Updated 24/2/05] Resource Hacking - Hex Editing by CookieRevised on 02-23-2005 at 08:19 PM

quote:
Originally posted by Ahmz_055
CookieRevised: I don't see the point of you putting down what I've posted, this is a tutorial on how to remove stuff from Messenger using reshacker,
I didn't put you, nor your tutorial down. Reread my post:
quote:
Originally posted by CookieRevised
the "[how-to] skin/change stuff in msn messenger 7.0.0604" of yours is nice though.
Neither did I ever say on this forum or on the other forums where you've posted this tut, that your tuts/how-to's or whatever, suck or are wrong. So I fail to see how I have put you down...

quote:
Originally posted by Ahmz_055
this is a tutorial on how to remove stuff from Messenger using reshacker,
indeed, and hence the title is not correct and misleading... I, as many other people (if not all), started to read the thread and expecting to see a tutorial on how to use Resource Hacker and how to do hex-editing and what's-what.

But, this isn't a tutorial on Resource Hacker, nor on Hex-editing. This is a How-To skin/change stuff in msn messenger 7.0.0604...

quote:
Originally posted by Ahmz_055
[Tutorial: Something that provides special, often individual instruction]
If you want to go technical, the word "tutorial" is often misused. A tutorial is normaly a piece of text which explains in detail what you need todo to accomplish something, but more importantly, also explains why you do it, gives examples, etc... (eg: why do you change some things in the UIFILE, why do you need to press compile, what's a resource, etc...)

A "how-to" is derived from that and only explains the steps needed to do what you want, without going in details. Just as this thread (eg: open this, open that, change this and that, press compile and save it).
RE: [Tut-Updated 24/2/05] Resource Hacking - Hex Editing by Pipish on 02-24-2005 at 07:56 AM

edit fixed now :)

anyone know what ui files are the ones for the webcam ivote games audio thingy in the chat window


RE: [Tut-Updated 24/2/05] Resource Hacking - Hex Editing by Ahmad on 02-24-2005 at 09:10 AM

quote:
Originally posted by Pipish
edit fixed now :)

anyone know what ui files are the ones for the webcam ivote games audio thingy in the chat window
UIFILE 920

You can search for invitetoimbtn for the invite button, webcambtn for the webcam button, gamesdropdownbtn for the games button, and audiobtn for the audio button

RE: [Tut-Updated 24/2/05] Resource Hacking - Hex Editing by Pipish on 02-24-2005 at 09:19 AM

woops i ment like the actual image where i can change it :)


RE: [Tut-Updated 24/2/05] Resource Hacking - Hex Editing by Ahmad on 02-24-2005 at 09:42 AM

quote:
Originally posted by Pipish
woops i ment like the actual image where i can change it :)
Well, for example, if we find the invite button by searching for invitetoimbtn, we end up with this..
code:
            <cmdbutton id=atom(invitetoimbtn) cmdid=40269 class="TaskbarBtn" layout=borderlayout() AccName=rcstr(60032) AccDesc=rcstr(44027) ShortcutString=rcstr(60032) >
                <png layoutpos=top flip=false idres=808 contentalign=topcenter class="TaskbarIcon" />
                <element id=atom(suppress) layoutpos=client padding=rect(2,-1,2,2) contentalign=bottomcenter                      />
            </cmdbutton>
For the image, the important bit here is
code:
<png layoutpos=top flip=false idres=808 contentalign=topcenter class="TaskbarIcon" />
Where idres=808 is the number of the image, so now that we know that PNG 808 is the image for the invite button, we click on folder PNG on the left panel in reshacker, scroll down and expand folder 808, right-click on 1033 and Replace Resource if you want to change it.

Note: using reshacker we can't see the images, but if we use heaventools resource tuner we can see the actual PNG images instead of just the bytes, the only downer is the resource tuner has  a 30 day trial limit.

Of course, we already know what the image looks like, but if we want to extract it, just left click on PNG > 808 > 1033 (this being the invite button graphic) and then in the top menu click Action > Save Resource as binary file ... and save it as 808.png, then you can open up the file you saved and view the graphic.

Hope that made sense :)
RE: [Tut-Updated 24/2/05] Resource Hacking - Hex Editing by giken on 02-24-2005 at 10:09 AM

Hi ahmz, if I can ask...
can you add some of this features (always on top button, properties option, change dp) to your patch?

Sorry if i'm bothering you but I think your patch is the best one for messenger 604 build and I like to have all possible options in it ;)


RE: [Tut-Updated 24/2/05] Resource Hacking - Hex Editing by Ahmad on 02-24-2005 at 10:11 AM

quote:
Originally posted by provolino
Hi ahmz, if I can ask...
can you add some of this features (always on top button, properties option, change dp) to your patch?

Sorry if i'm bothering you but I think your patch is the best one for messenger 604 build and I like to have all possible options in it ;)
the always on top button is a bit hard to incorporate into the patch at the moment, although adding the properties option isn't a problem..

and the change dp fix is already in the patch, i believe its under the contact list menu as change display picture link

and thanks for choosing my patch :P
RE: [Tut-Updated 24/2/05] Resource Hacking - Hex Editing by giken on 02-24-2005 at 10:50 AM

thank you
check my PM :)


RE: [Tut-Updated 24/2/05] Resource Hacking - Hex Editing by RaceProUK on 02-24-2005 at 03:31 PM

Now all that's needed is a way to do this in memory, so people who don't like patching their MSN can still get the same benefits.


RE: [Tut-Updated 24/2/05] Resource Hacking - Hex Editing by Ahmad on 02-24-2005 at 06:58 PM

You could use my loader,

http://spaces.msn.com/members/ahmad/

It doesn't have all the features of my patch, but it has most, I should probably update it.


RE: [Tut-Updated 24/2/05] Resource Hacking - Hex Editing by Ahmad on 03-06-2005 at 02:21 PM

After asking Segosa to teach me how to find the polygamy offset in Olly (which he very kindly did), he has posted an excellent tutorial which will walk you through step-by-step on how to find it yourself!

You'll find a link in the first post of this thread under the polygamy values.

Enjoy :D


RE: [Tut-Updated 07/03/05] Resource Hacking - Hex Editing by lylesback2 on 03-06-2005 at 05:39 PM

holy crap!  nice tutorial!  bookmarking for sure!

btw, you really should have a web site with this on it


RE: [Tut-Updated 07/03/05] Resource Hacking - Hex Editing by segosa on 03-08-2005 at 09:21 AM

quote:
Removing the Ad Banner

Find (Ctrl+F): <element layoutpos=top layout=verticalflowlayout(0,2,2,2) padding=rect(2,0,3,2)>

Result: UIFILE > 923 > 1033


How did you find that out?
RE: [Tut-Updated 07/03/05] Resource Hacking - Hex Editing by Dempsey on 03-08-2005 at 12:32 PM

quote:
Originally posted by lylesback2

btw, you really should have a web site with this on it
Yes thats a great idea

Ahmad - if you want you can have another site to put them on if u wanna do it?

RE: [Tut-Updated 07/03/05] Resource Hacking - Hex Editing by Ahmad on 03-11-2005 at 11:38 AM

quote:
Originally posted by Segosa
How did you find that out?
Sorry for the late reply, I was away for a couple of days..

UFILE 923 is the Contact List, and I just browsed through it looking for something that looked like it could be an adbanner... tested it, and it worked. After doing it the first time it becomes a breeze on the newer versions.
RE: [Tut-Updated 07/03/05] Resource Hacking - Hex Editing by Goshi on 03-11-2005 at 01:34 PM

Is it possible to remove the ad banner of the contact list in hexadecimal ? I know how to do it with uifiles but i want it in hexadecimal


RE: [Tut-Updated 07/03/05] Resource Hacking - Hex Editing by Ahmad on 03-11-2005 at 02:19 PM

Use a hex editor that shows the text values as well, and do a search for the same string :P

Be careful not to delete or add bytes because that will corrupt the file, only overwrite bytes... and if you want to delete, then overwrite with a space.


RE: [Tut-Updated 07/03/05] Resource Hacking - Hex Editing by Goshi on 03-11-2005 at 06:34 PM

I have tested and didn't find it :(
Do you know what string I have to search ?


RE: [Tut-Updated 07/03/05] Resource Hacking - Hex Editing by Ahmad on 03-12-2005 at 04:26 AM

quote:
Originally posted by Goshi
I have tested and didn't find it :(
Do you know what string I have to search ?
Assuming your hex editor shows text values as well, then it's exactly the same as searching through the UIFILE.

So do a search for this string (ASCII):
code:
<element layoutpos=top layout=verticalflowlayout(0,2,2,2) padding=rect(2,0,3,2)>

[Image: had12cw.jpg]

If you're editor doesn't allow you to search for a string that long, then I'll save you some time and tell you that it's located at offset 005c2de7 as can be seen in the image.

Now we have to change the layout position from top to none, so we change layoutpos=top to layoutpos=none

[Image: had26bd.jpg]

But now we have a problem, there needs to be a space between layoutpos=none and layout=... - ideally we could just add a space, but I've tried that and it corrupts the file, so what we have to do is overwrite the rest of the text within that <element> tag with spaces (20 in hexadecimal).


[Image: had34xs.jpg]

Notice that I kept the final > because it's needed for the <element> tag.

That's it, save the file.

If you check it in Resouce Hacker now, you'll see that string now looks like this:
code:
<element layoutpos=none                                                        >


Note: I've updated the HEX offsets in the first post for 7.0.0632 and I have added how to change the "View my contact card" string to "Change My Display Picture".
RE: [Tut-Updated 12/03/05] Resource Hacking - Hex Editing by Goshi on 03-12-2005 at 12:53 PM

YES :p :p. Thanks a lot ahmad :)


RE: [Tut-Updated 12/03/05] Resource Hacking - Hex Editing by HalfDead on 03-13-2005 at 12:08 PM

does anyone know how to turn off nudge protection or isnt this part of hex - res editing


RE: [Tut-Updated 12/03/05] Resource Hacking - Hex Editing by Ahmad on 03-13-2005 at 12:26 PM

quote:
Originally posted by HalfDead
does anyone know how to turn off nudge protection or isnt this part of hex - res editing

What do you mean exactly?

When a nudge is sent you want your window to shake?
Or you want to be able to send nudges?
Or..?
RE: [Tut-Updated 12/03/05] Resource Hacking - Hex Editing by segosa on 03-13-2005 at 08:16 PM

He means remove the flood protection.


RE: [Tut-Updated 12/03/05] Resource Hacking - Hex Editing by HalfDead on 03-14-2005 at 09:39 AM

Segosa is right, i wanted to know how to remove the flood protection as i am trying to build up as much info as i can so that i  can make my own patch for myself (so when i have problems with for example the second edition of MessPatch that wont run properly it wont be too much of a problem)


RE: [Tut-Updated 16/03/05] Resource Hacking - Hex Editing by Ahmad on 03-15-2005 at 06:18 PM

Added how to Swap Now Playing Title & Artist for WinAMP and Windows Media Player, check the end of the first post.


RE: [Tut-Updated 16/03/05] Resource Hacking - Hex Editing by user13774 on 03-18-2005 at 09:38 AM

I got a small reshack question:

With 7.0.0632 when you want to change your display name, the textbox is kinda small... dodgy M$... why the hell did they make it smaller..

[Image: attachment.php?pid=409022]

Is there a way to reshack it, to make it larger? :grin:


RE: [Tut-Updated 16/03/05] Resource Hacking - Hex Editing by HalfDead on 03-18-2005 at 09:57 AM

it sure can be enlarged.
simply open msgslang.dll in reshacker and do one of the following:

1. go to Dialog, 202, 1033
then go to the tenth line down

2.or search for "type your name" ("typ je naam" in your case :)) and go to the line beneath it

which should read:
   CONTROL "", 1138, EDIT, ES_LEFT | ES_AUTOHSCROLL | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP, 21, 31, 87, 14

simply change the 87 (second to the end) to 173 so it looks like:

   CONTROL "", 1138, EDIT, ES_LEFT | ES_AUTOHSCROLL | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP, 21, 31, 173, 14

This should do it :)

Enjoy
HD

Edit: changed answer layout


RE: [Tut-Updated 16/03/05] Resource Hacking - Hex Editing by user13774 on 03-18-2005 at 10:10 AM

I love reshacking :P :D.

Thank you very much! I changed both (the Name and the Personal message box) to 200 so the box is extra wide :tongue:.


RE: [Tut-Updated 16/03/05] Resource Hacking - Hex Editing by kevinsham on 03-27-2005 at 10:07 AM

remove What's Hot for Winks:

same as other "What's Hot ", but search "PremiumWinks"


RE: [Tut-Updated 16/03/05] Resource Hacking - Hex Editing by Ahmad on 03-27-2005 at 10:48 AM

quote:
Originally posted by kevinsham
remove What's Hot for Winks:

same as other "What's Hot ", but search "PremiumWinks"
Ah, I never knew the winks button had a whats hot section, I guess they just added that - thanks for filling me in :P
RE: [Tut-Updated 16/03/05] Resource Hacking - Hex Editing by Kruxx on 03-27-2005 at 11:31 AM

Hey could you explain how to change messenger's default 'name' you've explained about removing the beta tag but I'd like to change 'MSN Messenger' to something else


RE: [Tut-Updated 16/03/05] Resource Hacking - Hex Editing by Ahmad on 03-27-2005 at 12:54 PM

quote:
Originally posted by Kruxx
Hey could you explain how to change messenger's default 'name' you've explained about removing the beta tag but I'd like to change 'MSN Messenger' to something else
In Resource Hacker, open msgslang.dll

String Table > 3822

Edit the string number 61143:
code:
61143,     "MSN Messenger"

Compile Script, save.

:)
RE: [Tut-Updated 16/03/05] Resource Hacking - Hex Editing by Kruxx on 03-27-2005 at 02:03 PM

Thanks alot man, nice


RE: [Tut-Updated 16/03/05] Resource Hacking - Hex Editing by Fenix-TX on 03-30-2005 at 10:24 PM

How can i disable tabs on main window (like option messpatch: show enable/disable tabs checkbox)?

Thanks!


RE: [Tut-Updated 16/03/05] Resource Hacking - Hex Editing by Ahmad on 03-31-2005 at 05:43 AM

quote:
Originally posted by Fenix-TX
How can i disable tabs on main window (like option messpatch: show enable/disable tabs checkbox)?

Thanks!

What's the version and build number of your Messenger?
RE: RE: [Tut-Updated 16/03/05] Resource Hacking - Hex Editing by Fenix-TX on 03-31-2005 at 08:56 AM

quote:
Originally posted by Ahmad
quote:
Originally posted by Fenix-TX
How can i disable tabs on main window (like option messpatch: show enable/disable tabs checkbox)?

Thanks!

What's the version and build number of your Messenger?



7.0.0732 8-)
RE: [Tut-Updated 16/03/05] Resource Hacking - Hex Editing by Ahmad on 03-31-2005 at 09:04 AM

quote:
Originally posted by Fenix-TX
7.0.0732 8-)
^o) Well then this can be done manually by going to:

Tools > Options > Security and unticking This is a shared computer so don't display my tabs
RE: [Tut-Updated 16/03/05] Resource Hacking - Hex Editing by faint_mist on 03-31-2005 at 10:26 AM

OR~~you could use msn shell from www.msnshell.com (it also docks the main wondow)


RE: [Tut-Updated 16/03/05] Resource Hacking - Hex Editing by hugocolome on 04-07-2005 at 04:40 PM

Hi! Where do I get the resource hacker program to edit msn messenger?? Thanks !!

hugocolome@hotmail.com


RE: [Tut-Updated 16/03/05] Resource Hacking - Hex Editing by Ahmad on 04-07-2005 at 04:52 PM

http://www.softpedia.com/get/Programming/File-Edi...ource-Hacker.shtml


RE: [Tut-Updated 08/04/05] Resource Hacking - Hex Editing by Ahmad on 04-08-2005 at 01:56 PM

Updated and added hex values for 7.0.0777


RE: [Tut-Updated 08/04/05] Resource Hacking - Hex Editing by DJHasis on 12-04-2005 at 12:54 PM

Segosa's polygamy-tutorials link is broken and Olly's debuggers link is also broken :(


RE: [Tut-Updated 08/04/05] Resource Hacking - Hex Editing by CookieRevised on 12-05-2005 at 02:31 PM

quote:
Originally posted by DJHasis
Segosa's polygamy-tutorials link is broken and Olly's debuggers link is also broken :(
Because this thread is old. Not all links stay the same forever ;)

Nevertheless, go to Segosa's link anyways and search for the page on its new location by clicking on the categories in the top bar.

http://www.m00.cx/dev/polygamy.php

And for Ollydbg search google, its the first result...

http://www.ollydbg.de/


RE: RE: [Tut-Updated 08/04/05] Resource Hacking - Hex Editing by DJHasis on 12-05-2005 at 03:05 PM

quote:
Originally posted by CookieRevised
quote:
Originally posted by DJHasis
Segosa's polygamy-tutorials link is broken and Olly's debuggers link is also broken :(
Because this thread is old. Not all links stay the same forever ;)

Nevertheless, go to Segosa's link anyways and search for the page on its new location by clicking on the categories in the top bar.

http://www.m00.cx/dev/polygamy.php

And for Ollydbg search google, its the first result...

http://www.ollydbg.de/




Thanks for your help!

But this thread still contains lots of things that work with the newest versions of msn messenger, even in msn 8 aka wlm. :D
RE: [Tut-Updated 08/04/05] Resource Hacking - Hex Editing by CookieRevised on 12-05-2005 at 03:32 PM

quote:
Originally posted by DJHasis
Thanks for your help!

But this thread still contains lots of things that work with the newest versions of msn messenger, even in msn 8 aka wlm.
the basic principle explained in the first posts would be the same, true. However many specific things have changed quite a lot and the tutorial shouldn't be taken literally anymore, it is version specific.