Exetools  

Go Back   Exetools > General > General Discussion

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 12-11-2004, 15:55
sss
 
Posts: n/a
small question

I am newbie and working on exe (delphi code) file whose basic purpose is to upload data to fixed ftp IP address eg 123.12.123.123 ,but i want to edit the site IP address to say 123.123.123.123 by hex editor and save. Now what happens the file uploads data to 123.123.123.12 leaving the last digit 3. if I insert a decimal byte after 123.123.123.12 then the exe file gets corrupted.

Thanks kindly advice
Reply With Quote
  #2  
Old 12-11-2004, 20:35
D-Jester's Avatar
D-Jester D-Jester is offline
VIP
 
Join Date: Nov 2003
Location: Ohio, USA
Posts: 269
Rept. Given: 39
Rept. Rcvd 61 Times in 41 Posts
Thanks Given: 0
Thanks Rcvd at 4 Times in 4 Posts
D-Jester Reputation: 61
Just an observation, but is the IP Addr string a fixed length?

Since you add a character in the center, its only taking the original length.

In stead of 123.12.123.123 use 123.012.123.123 in the original code, recompile and you should be able to hex edit it without problems.
__________________
Even as darkness envelops and consumes us, wrapping around our personal worlds like the hand that grips around our necks and suffocates us, we must realize that life really is beautiful and the shadows of despair will scurry away like the fleeting roaches before the light.
Reply With Quote
  #3  
Old 12-12-2004, 09:16
sss
 
Posts: n/a
thanks

Actually there were two jumps first comes on the first digit of ANSI text string of IP address (was fixed for 14 bytes) and second jump landed just after this string.there fore I was unable to change the length of string.Anyway I found out solution and the programme is working very good.
Reply With Quote
  #4  
Old 12-12-2004, 10:29
TQN TQN is offline
VIP
 
Join Date: Apr 2003
Location: Vietnam
Posts: 343
Rept. Given: 142
Rept. Rcvd 20 Times in 12 Posts
Thanks Given: 169
Thanks Rcvd at 130 Times in 43 Posts
TQN Reputation: 20
Delphi string can be a short string, long string or a PChar type (null terminated). In your case, I guess it is a short string or a long string. If they are, the dword preceding will contain the length of string. So you need change it from 14 to 15 (0E to 0F). The Delphi long string need a null char (00) at the end of string content.
Regards,
TQN
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
2 small question about armadillo... Hero General Discussion 1 03-28-2007 19:39
Small linux forex General Discussion 6 12-02-2004 13:35


All times are GMT +8. The time now is 04:44.


Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX, chessgod101
( 1998 - 2024 )