Thread: Overlay files?
View Single Post
  #10  
Old 09-12-2005, 01:52
oVERfLOW oVERfLOW is offline
Family
 
Join Date: Jan 2005
Location: Tehran
Posts: 117
Rept. Given: 127
Rept. Rcvd 42 Times in 19 Posts
Thanks Given: 2
Thanks Rcvd at 5 Times in 5 Posts
oVERfLOW Reputation: 42
Code:
(VB)

Open App.ExeFileName & ".exe" for binary access read as #1

lngHeaderPos = FindBinaryValue ( "oVERfLOW" , #1 ) 'a user defined function
Get #1, lngHeaderPos + 8&, lngMyNumber

Close #1
OK
We must compile this file with default options
and after that we must create a file with the following contents...

Code:
oVERfLOW1234
then we will go to command prompt and type the following command.

Code:
copy /b oVERfLOW.exe+oVERLAY.ovr OVERLAYED.exe
a file named overlayed.exe will be created that opens itself and reads a long integer value then closes itself

is it clear?
hopefully

have a good time ba bye
Reply With Quote