Re: self modifying exe

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Farooq Khan (farooq_at_softechww.com)
Date: 06/23/04


Date: Wed, 23 Jun 2004 19:03:24 +0500

hi Elias,
well, i want it be modifying itself and writing back changes to disk. let me
tell what this application be doing exactly.
this applcation would be writing application exit time somewhere in it and
reading it afterwards when it is launched again to do some calculation. i
cannot go for registry or any other thing.
thanks.

bye,
Farooq Khan

"lallous" <lallous@lgwm.org> wrote in message
news:u$D5xUQWEHA.2844@TK2MSFTNGP09.phx.gbl...
> Hello
>
> What are you trying to achieve?
>
> Self modifying EXE (to modify itself and write back changes to disk) or
self
> modifying code (SMC)?
>
> It may be doable in C/C++ but in ASM it is far better and easier.
>
> --
> Elias
> "Farooq Khan" <farooq@softechww.com> wrote in message
> news:Oo4Qb$GWEHA.1048@tk2msftngp13.phx.gbl...
> > hi,
> > can anyone help me writing self modifying exe??? any article, site,
> > reference??????? i need to write one in C/C++ this has to be console
based
> > application.
> > thanks.
> >
> > bye,
> > Farooq Khan
>
>



Relevant Pages

  • Re: ListView-style column headers?
    ... writing from scratch (or modifying a CodeProject component) is probably ... articles on CodeProject on how to do this. ... Writing a Treeview/Listview control from scratch is not a trivial task. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Write to executable which has done execve
    ... and try to open old file for writing in new ... You cannot modify a program's running image ... So if modifying the program file was allowed, ...
    (comp.unix.programmer)
  • Re: self modifying exe
    ... i want it be modifying itself and writing back changes to disk. ... Self-modifying EXEs don't work because Windows itself locks the EXE file. ... Modifying EXEs in general usually won't work because ordinary users don't ...
    (microsoft.public.vc.language)
  • RE: vb.net - datagrids inserting records
    ... modifying the generated code, we have to create the DataAdapter by writing ... Prev by Date: ...
    (microsoft.public.data.ado)
  • Re: Shock and Awe
    ... Changing bytes IN an open file is absurd! ... modifying the file on disk, then forcing the app to be paged out. ...
    (comp.sys.mac.system)