Valhalla Legends Forums Archive | General Programming | Calling or injecting code into another process

AuthorMessageTime
St0rm.iD
Hey guys,

Let's say I know the offset of a function I want to call in a running program. Is there any way for me to call into another totally seperate process?

If not, could I dynamically inject code in-memory? I'm thinking OpenProcess might help...?

Thanks for your help.
January 15, 2003, 6:36 PM
iago
No, and yes.

I suggest using CreateRemoteThread(), and yes, OpenProcess is necessary :D
January 16, 2003, 11:57 AM
St0rm.iD
I found the answer in an e-book Grok sent me a looong time ago ;)
January 16, 2003, 4:57 PM
Etheran
Share the answer, I'd like to know.  I'm currently learning how to inject code.  I'm using starcraft without any help from tutorials (I wanted to do something on my own).
January 17, 2003, 6:20 AM
iago
I can send you an ebook about the win32 api.. it'll tell you how to inject code, but it won't do it for you, it's designed as an educational book with everything from threading to dlls to injection.  Actually, Grok is the one who suggested I buy it originally :D
January 17, 2003, 11:37 AM
Zakath
Iago, send me that book, will you?

You know how to find me. :P
January 17, 2003, 5:36 PM
Etheran
yes!! plz kthx leet h4x0r time.  lol :P
January 17, 2003, 10:00 PM
Yoni
That's where it should have gone.

A year (exactly) old but it should still work:
http://www.valhallalegends.com/yoni/SampleHDL.zip
January 18, 2003, 8:54 AM
iago
You can get it here:
ftp://Guest:Guest@iago.no-ip.com:665/windows.chm

If it doesn't work, it means I turned off my computer, try again later :D
January 18, 2003, 3:21 PM
Etheran
nice one, thanks iago and Grok! :)
January 19, 2003, 2:31 AM
iago
[quote]You can get it here:
ftp://Guest:Guest@iago.no-ip.com:665/windows.chm

If it doesn't work, it means I turned off my computer, try again later :D[/quote]

Wow, 8 downloads in 12 hours.. it's at #1 on my ftp at.. 8 downloads :-)
January 19, 2003, 4:36 AM
Grok
Someone probably wanted extra copies for their friends.

=P
January 19, 2003, 11:28 AM
iago
That doesn't even make sense, and you know it! :-P

Besides, it's unique ip's.

But on that note, if when you're done with the file, please put it back so other people can use it (I only have so many copies)!
January 19, 2003, 1:57 PM
dRAgoN
/me looks around
Is that what that book is ^^
Sopose i'll have to read latteron. 8p
January 19, 2003, 5:53 PM
Etheran
I wish I could find an ebook library; that'd be sweet. :)
January 19, 2003, 6:48 PM
iago
By the way, that book I put up is ~1000 pages long, so don't plan on reading it all in one sitting :-)

I believe chapter 21 or possibly 22 is the important one :)
January 19, 2003, 6:59 PM
Eibro
[quote]I wish I could find an ebook library; that'd be sweet. :)[/quote]
Here's some:

http://www.ebone.at/files.php?show=Books
\http://www.tcfb.com/freetechbooks/bookcpp.html
http://www.ibiblio.org/obp/thinkCScpp/
http://www.maththinking.com/boat/computerbooks.html
http://www.stud.fim.ntnu.no/~oystesk/CPP/htm/ch01.htm
http://webster.cs.ucr.edu/Page_asm/ArtOfAsm.html
http://www.mindview.net/Books
http://www.intelinfo.com/free_computer_books.html
January 19, 2003, 7:02 PM

Search