d2jsp
d2jsp Forums > Programmer's Haven > C/C++/C# > Writing C/c++ Programs For Fg > Come Hither
12Next
Add Reply New Topic New Poll
Darkemperor121
#1 Jun 15 2016 12:21pm
Group: Member
Posts: 2,417
Joined: Jul 20 2006
Gold: 4,454.00
Could use some extra fg, post the details of what you need and I'll give you a quote/timeframe.
silvermace
#2 Jun 18 2016 02:57am
Group: Member
Posts: 3,451
Joined: Feb 26 2010
Gold: 0.20
I'm looking for a way to hook into every modern and win32 app launch on Windows and pop my own dialog. How long/much you need?
AbDuCt
#3 Jun 18 2016 11:11am
Group: Member
Posts: 13,425
Joined: Sep 29 2007
Gold: 0.00
Warn: 30%
Quote (silvermace @ Jun 18 2016 04:57am)
I'm looking for a way to hook into every modern and win32 app launch on Windows and pop my own dialog. How long/much you need?


That's easy, just openprocess, virtuallallocec, writeprocessmemory, createremotethread, virtualfree, closehandle.

Just google code injection it's everywhere.
boxboxbox
#4 Jul 13 2016 10:55pm
Group: Member
Posts: 3,939
Joined: Feb 1 2013
Gold: 2,749.09
Warn: 20%
Quote (AbDuCt @ Jun 18 2016 10:11am)
That's easy, just openprocess, virtuallallocec, writeprocessmemory, createremotethread, virtualfree, closehandle.


wrong
AbDuCt
#5 Jul 15 2016 06:58am
Group: Member
Posts: 13,425
Joined: Sep 29 2007
Gold: 0.00
Warn: 30%
Quote (boxboxbox @ Jul 14 2016 12:55am)
wrong


That's nice explain how I am wrong. Seeing how I have used this method before for similar circumstances this will be interesting.

Also to add to my before mentioned post ld_preload on linux can simulate the same dynamic loadable concept as code caving in Windows without the need to manually inject your code.

This post was edited by AbDuCt on Jul 15 2016 07:00am
boxboxbox
#6 Jul 15 2016 02:23pm
Group: Member
Posts: 3,939
Joined: Feb 1 2013
Gold: 2,749.09
Warn: 20%
Quote (AbDuCt @ Jul 15 2016 05:58am)
That's nice explain how I am wrong. Seeing how I have used this method before for similar circumstances this will be interesting.

Also to add to my before mentioned post ld_preload on linux can simulate the same dynamic loadable concept as code caving in Windows without the need to manually inject your code.


He asked how to respond to process creation, you just told him a way to inject code into a running process. What he really needs is, for example, a DLL (two if he wants 64 and 32 bit support) to "pop his dialog", and a method to automatically inject that into new processes (a global hook with SetWindowsHookEx for example).

This is cleaner, more reliable, and actually satisfies his stated requirement.

AbDuCt
#7 Jul 15 2016 05:46pm
Group: Member
Posts: 13,425
Joined: Sep 29 2007
Gold: 0.00
Warn: 30%
Quote (boxboxbox @ Jul 15 2016 04:23pm)
He asked how to respond to process creation, you just told him a way to inject code into a running process. What he really needs is, for example, a DLL (two if he wants 64 and 32 bit support) to "pop his dialog", and a method to automatically inject that into new processes (a global hook with SetWindowsHookEx for example).

This is cleaner, more reliable, and actually satisfies his stated requirement.


So your only dispute is that I told him to inject code directly rather than inject a DLL and that I only answered half the question... get off your high horse. You still need to allocate memory for the pathname of the DLL so you can use the windows API to load it. From there you can use the DLL constructors to spawn a dialog box when the main initialization method is called when the DLL is loaded.
eLeMeNt477
#8 Jul 15 2016 05:49pm
Group: Banned
Posts: 4,407
Joined: Apr 28 2016
Gold: Locked
Trader: Scammer
Warn: 10%
Quote (AbDuCt @ Jul 15 2016 07:46pm)
So your only dispute is that I told him to inject code directly rather than inject a DLL and that I only answered half the question... get off your high horse. You still need to allocate memory for the pathname of the DLL so you can use the windows API to load it. From there you can use the DLL constructors to spawn a dialog box when the main initialization method is called when the DLL is loaded.




vs.

Haxs
#9 Jul 20 2016 07:58pm
Group: Member
Posts: 23,834
Joined: Feb 18 2009
Gold: 0.01
damn.. two brain geniuses going at it
Darkemperor121
#10 Jul 21 2016 09:32am
Group: Member
Posts: 2,417
Joined: Jul 20 2006
Gold: 4,454.00
Still taking on tasks for fg
Go Back To C/C++/C# Topic List
12Next
Add Reply New Topic New Poll