d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Writing C/c++ Programs For Fg > Come Hither
12Next
Add Reply New Topic New Poll
Member
Posts: 2,440
Joined: Jul 20 2006
Gold: 3,966.00
Jun 15 2016 12:21pm
Could use some extra fg, post the details of what you need and I'll give you a quote/timeframe.
Member
Posts: 3,451
Joined: Feb 26 2010
Gold: 0.20
Jun 18 2016 02: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?
Member
Posts: 13,425
Joined: Sep 29 2007
Gold: 0.00
Warn: 20%
Jun 18 2016 11:11am
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.
Member
Posts: 3,939
Joined: Feb 1 2013
Gold: 2,749.09
Warn: 20%
Jul 13 2016 10:55pm
Quote (AbDuCt @ Jun 18 2016 10:11am)
That's easy, just openprocess, virtuallallocec, writeprocessmemory, createremotethread, virtualfree, closehandle.


wrong
Member
Posts: 13,425
Joined: Sep 29 2007
Gold: 0.00
Warn: 20%
Jul 15 2016 06:58am
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
Member
Posts: 3,939
Joined: Feb 1 2013
Gold: 2,749.09
Warn: 20%
Jul 15 2016 02:23pm
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.

Member
Posts: 13,425
Joined: Sep 29 2007
Gold: 0.00
Warn: 20%
Jul 15 2016 05:46pm
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.
Banned
Posts: 4,407
Joined: Apr 28 2016
Gold: Locked
Trader: Scammer
Warn: 10%
Jul 15 2016 05:49pm
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.

Member
Posts: 23,838
Joined: Feb 18 2009
Gold: 0.01
Jul 20 2016 07:58pm
damn.. two brain geniuses going at it
Member
Posts: 2,440
Joined: Jul 20 2006
Gold: 3,966.00
Jul 21 2016 09:32am
Still taking on tasks for fg
Go Back To Programming & Development Topic List
12Next
Add Reply New Topic New Poll