Exetools  

Go Back   Exetools > General > General Discussion

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 05-25-2011, 14:40
giv's Avatar
giv giv is offline
VIP
 
Join Date: Jan 2011
Location: Romania
Posts: 1,657
Rept. Given: 801
Rept. Rcvd 1,283 Times in 561 Posts
Thanks Given: 226
Thanks Rcvd at 562 Times in 240 Posts
giv Reputation: 1100-1299 giv Reputation: 1100-1299 giv Reputation: 1100-1299 giv Reputation: 1100-1299 giv Reputation: 1100-1299 giv Reputation: 1100-1299 giv Reputation: 1100-1299 giv Reputation: 1100-1299 giv Reputation: 1100-1299
How to change a filename in memory?

In the Documentation of VH2011 on this link in described at chapter 4 paragraph 4 a hook method described as:
Quote:
4. Form

Normally, the form file included in the EXE file is read-only, it can not be
changed.

Use OllyDbg or WinHex to scan memory, then change the form file name in memory. For example, we can change the form file name in memory (file name description) from VHTEST.SC* to XXTEST.SC*, and create a new form file VHTEST.SCX.

Reference code:
PROCEDURE Init
vh()
ENDPROC
In terms of OllyDBG and Winhex i'm a novice.
Please, someone could enlight me how to do such a opperation as change the name of a file in memory of a running program in such way that running program to call the dummy filename instead of the correct filename.
A tutorial will pe highly apreciated.
Thanks!
Reply With Quote
  #2  
Old 05-25-2011, 15:25
goku goku is offline
Banned User
 
Join Date: Feb 2009
Location: https://t.me/pump_upp
Posts: 128
Rept. Given: 30
Rept. Rcvd 34 Times in 15 Posts
Thanks Given: 23
Thanks Rcvd at 6 Times in 4 Posts
goku Reputation: 34
Giv I think that this step is more convenient
5. Memory

Use OllyDbg or WinHex directly modify the memory of VFP p-code.

VFP p-code can be change to:

0x01 0x76 0x68 0x28 0x29 0x0A
---- ------------------- ----
CMD vh() end

VFP p-code reference:

0x01 0x44 0x4F 0x3F 0x0A
---- -------------- ----
CMD DO? end

0x01 0x2A 0x?? 0x?? 0x0A
---- -------------- ----
CMD *?? end

0x39 0xD5 0xFE
---- ---------
READ EVENTS
Reply With Quote
  #3  
Old 05-25-2011, 17:53
giv's Avatar
giv giv is offline
VIP
 
Join Date: Jan 2011
Location: Romania
Posts: 1,657
Rept. Given: 801
Rept. Rcvd 1,283 Times in 561 Posts
Thanks Given: 226
Thanks Rcvd at 562 Times in 240 Posts
giv Reputation: 1100-1299 giv Reputation: 1100-1299 giv Reputation: 1100-1299 giv Reputation: 1100-1299 giv Reputation: 1100-1299 giv Reputation: 1100-1299 giv Reputation: 1100-1299 giv Reputation: 1100-1299 giv Reputation: 1100-1299
K Goku,
Make a live tutorial for us to understand (pdf with pictures or live with flash movie) to understand your words. I'm not so familliar with these notions as you are. That's the reason for this request.
Reply With Quote
  #4  
Old 05-30-2011, 22:46
congviet congviet is offline
Family
 
Join Date: Jun 2010
Location: Vi
Posts: 151
Rept. Given: 30
Rept. Rcvd 76 Times in 42 Posts
Thanks Given: 56
Thanks Rcvd at 52 Times in 30 Posts
congviet Reputation: 76
Hi Giv,
In VH2010, VH2011 has two examples about modify file name in memory.
I have two folders extracted from VH2010 as illustrative examples. You unzip and run the file for reference readme.htm
memory.zip
Reply With Quote
The Following User Gave Reputation+1 to congviet For This Useful Post:
giv (05-31-2011)
  #5  
Old 07-05-2018, 20:13
vilciucostel vilciucostel is offline
Friend
 
Join Date: Feb 2009
Location: Oltenita
Posts: 44
Rept. Given: 4
Rept. Rcvd 4 Times in 2 Posts
Thanks Given: 6
Thanks Rcvd at 1 Time in 1 Post
vilciucostel Reputation: 4
Quote:
Originally Posted by congviet View Post
Hi Giv,
In VH2010, VH2011 has two examples about modify file name in memory.
I have two folders extracted from VH2010 as illustrative examples. You unzip and run the file for reference readme.htm
Attachment 5840
Please upload file to mega or dropbox because don't have permission to access this page.

Thanks.
Reply With Quote
  #6  
Old 07-05-2018, 22:39
bolo2002 bolo2002 is offline
VIP
 
Join Date: Apr 2002
Posts: 615
Rept. Given: 111
Rept. Rcvd 14 Times in 13 Posts
Thanks Given: 219
Thanks Rcvd at 238 Times in 152 Posts
bolo2002 Reputation: 14
Quote:
Originally Posted by vilciucostel View Post
Please upload file to mega or dropbox because don't have permission to access this page.

Thanks.


did you see the year of post?
__________________
I like this forum!
Reply With Quote
The Following User Says Thank You to bolo2002 For This Useful Post:
tonyweb (07-08-2018)
  #7  
Old 07-06-2018, 18:37
LaDidi LaDidi is offline
VIP
 
Join Date: Aug 2004
Posts: 211
Rept. Given: 2
Rept. Rcvd 11 Times in 10 Posts
Thanks Given: 47
Thanks Rcvd at 41 Times in 24 Posts
LaDidi Reputation: 11
@giv:
Why you don't use WinHex ?
Reply With Quote
  #8  
Old 07-06-2018, 22:30
niculaita's Avatar
niculaita niculaita is offline
Family
 
Join Date: Jun 2011
Location: here
Posts: 1,344
Rept. Given: 948
Rept. Rcvd 89 Times in 61 Posts
Thanks Given: 4,333
Thanks Rcvd at 479 Times in 338 Posts
niculaita Reputation: 89
https://www69.zippyshare.com/v/AluAmqZi/file.html
__________________
Decode and Conquer
Reply With Quote
Reply

Thread Tools
Display Modes

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
Advanced IdaPython to change details UI cannot change chants General Discussion 1 07-31-2019 15:46
how can i change my username DMichael General Discussion 7 04-11-2015 18:50
change in VB EXE file. ivanov General Discussion 17 12-28-2004 17:58


All times are GMT +8. The time now is 17:48.


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