It is currently Sat May 25, 2013 1:20 pm

All times are UTC - 8 hours




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: How to edit strings in dll files
PostPosted: Mon Nov 01, 2010 4:07 am 
Offline

Joined: Mon Mar 16, 2009 11:56 am
Posts: 252
POST DELETED


Last edited by spicydog on Tue May 17, 2011 4:13 am, edited 2 times in total.

Top
 Profile  
 
 Post subject: Re: How to edit strings in dll files
PostPosted: Mon Nov 01, 2010 4:20 am 
Offline

Joined: Mon Feb 15, 2010 1:23 am
Posts: 84
Quote:
The closest I can get to that is by using Radialix but the string length (in characters) restriction is very difficult to bypass.

If i'm understanding stuff correctly, then changing this is impossible without recompiling the library. Reason is that lowlevel, things aren't dynlength - and the way how memory is managed and marked is not standardized. Phrased differently: This requires understanding the application and changing it according to its own rules - it isn't search'n replace - it's program modification.


Top
 Profile  
 
 Post subject: Re: How to edit strings in dll files
PostPosted: Mon Nov 01, 2010 6:26 am 
Offline

Joined: Mon Mar 16, 2009 11:56 am
Posts: 252
lyx wrote:
If i'm understanding stuff correctly, then changing this is impossible without recompiling the library. Reason is that lowlevel, things aren't dynlength - and the way how memory is managed and marked is not standardized. Phrased differently: This requires understanding the application and changing it according to its own rules - it isn't search'n replace - it's program modification.


I know all that and I can confirm that I have been successfully (for years) editing dlls with the tools I mentioned in my 1st post... Unfortunately sometimes I come across some hard-coded strings that are very short (few char only) and in such situations I need to bypass the string length restriction, hence my post in this forum.

Anybody with a more creative response than the one I just received?


Top
 Profile  
 
 Post subject: Re: How to edit strings in dll files
PostPosted: Mon Nov 01, 2010 1:03 pm 
Offline

Joined: Thu Jul 15, 2010 2:05 pm
Posts: 37
Location: Staten Island, NY, USA
Why? You can't make the strings longer than they are AFAIK without the source and or modifying some stuff in the pe header....

_________________
~Rob
(Gunner)
Gunners File Type Editor
http://www.gunnerinc.com


Top
 Profile  
 
 Post subject: Re: How to edit strings in dll files
PostPosted: Mon Nov 01, 2010 1:31 pm 
Offline

Joined: Mon Mar 16, 2009 11:56 am
Posts: 252
Gunner wrote:
Why? You can't make the strings longer than they are AFAIK without the source and or modifying some stuff in the pe header....

If you (know your way around and) are familiar with Radialix (in combination with the IDA disassembler plugin) you can.

With these tools it is possible to increase the hardcoded* strings length but it is a real PITA... That's why I am posting here to see if someone can suggest me an easier way to do that.

Hopefully somebody will provide some positive input :mrgreen:

* For the other (non-hardcoded) strings it is real easy, even without the plugin!


Top
 Profile  
 
 Post subject: Re: How to edit strings in dll files
PostPosted: Mon Nov 01, 2010 3:00 pm 
Offline
User avatar

Joined: Sun Mar 01, 2009 5:48 pm
Posts: 442
Location: Charleston,SC.
What does this have to do with JauntePE?
What exactly are you working on Spicydog?

_________________
"Defects are always more tolerable than the changes necessary to correct them"


Top
 Profile  
 
 Post subject: Re: How to edit strings in dll files
PostPosted: Mon Nov 01, 2010 3:09 pm 
Offline

Joined: Mon Mar 16, 2009 11:56 am
Posts: 252
Napiophelios wrote:
What does this have to do with JauntePE?
What exactly are you working on Spicydog?


Oh shit, sorry guys... I did not realize that I posted in the JauntePE section... My bad :oops:

Can I somehow move the thread myself or do I have to contact the forum admin for that?


Top
 Profile  
 
 Post subject: Re: How to edit strings in dll files
PostPosted: Mon Nov 01, 2010 5:40 pm 
Offline

Joined: Thu Jul 15, 2010 2:05 pm
Posts: 37
Location: Staten Island, NY, USA
Until it is moved:

Strings in the resource section are not a problem, but lets say I put a string in the code section of the pe (so it is harder to modify). take this code for example:
Code:
   jmp      @F
   szStringIinCode   BYTE   'Why you wanna modify me?', 0
   @@:
   mov      eax, 10
   mov      ebx, 10
   mul      ebx


if you try to make that string longer, you are going to step on the instructions that follow, or is that what you are trying to do?

And strings that are in the data area:
Code:
szStrings   db "string 1",13,10
          db "string 2",13,10
          db "string 3",13,10,0
szAnother   db "Another string", 0


If you try to make string 3 longer, you are going to corrupt szAnother string...

_________________
~Rob
(Gunner)
Gunners File Type Editor
http://www.gunnerinc.com


Top
 Profile  
 
 Post subject: Re: How to edit strings in dll files
PostPosted: Mon Nov 01, 2010 6:55 pm 
Offline
User avatar

Joined: Sat Jun 10, 2006 11:54 am
Posts: 180
[moderator] Moved to Chit-Chat section.


Top
 Profile  
 
 Post subject: Re: How to edit strings in dll files
PostPosted: Mon Nov 01, 2010 11:13 pm 
Offline

Joined: Mon Mar 16, 2009 11:56 am
Posts: 252
usdcs wrote:
[moderator] Moved to Chit-Chat section.

Thanks for having taken care of that and once more sorry if I inadvertently posted in the wrong section.

Chit-Chat section? Hahaha, yeah, that's more like it I guess, since I do not seem to get any realistic response to my query I feel that it's just better I shut up and continue doing what I did until now and leave the damn hardcoded strings alone :mrgreen:

Anyway, THANKS to everybody for the creative input and for having taken part to this 'amazingly fruitful' thread :mrgreen:


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group