sa3q
asked on
how can i write my code in DLL and embed it in exe and how to inject it to winlogon.exe
how can i write my code in DLL and embed it in exe and how to inject it to winlogon.exe
any help can i get from any one
if C Security can solve this Q i will be thank
any help can i get from any one
if C Security can solve this Q i will be thank
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Was my long article enough? If you got any question related to my comment don't hesitate to ask
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks thanks thank you i will use your code and i will close this question after that
what is this AdjustTokenPrivileges?
what is this AdjustTokenPrivileges?
ASKER
in your comment 11/01/10 03:03 PM, ID: 26288639
in the code line 23
it didn't run because
hThread[0] = CreateRemoteThread(hProces s, NULL, 0, (LPTHREAD_START_ROUTINE)lo adlibaddr, (LPVOID)dllNameMem, NULL, NULL);
not run and the injection not happend
why?
-------------------------- --------
the code you provide to me in http://www.dreamincode.net/code/snippet407.htm
it run when i test it to notepad.exe
it open new notepad.exe and inject the dll in it and it run perfect
but i didn't want to open new notepad i want to inject the proccess that run only not creat new one
because i try to use that with winlogon or any thing else it didn't open other process or inject dll
i suggest that it didn't make that because it create new process and i want to add my dll to running process
thank you
in the code line 23
it didn't run because
hThread[0] = CreateRemoteThread(hProces
not run and the injection not happend
why?
--------------------------
the code you provide to me in http://www.dreamincode.net/code/snippet407.htm
it run when i test it to notepad.exe
it open new notepad.exe and inject the dll in it and it run perfect
but i didn't want to open new notepad i want to inject the proccess that run only not creat new one
because i try to use that with winlogon or any thing else it didn't open other process or inject dll
i suggest that it didn't make that because it create new process and i want to add my dll to running process
thank you
Instead of CreateProcess or WinExec it have to Open Notepad, change that with OpenProcess and find out target process's Process ID.
AdjustPrivilege gives you full permission and access to inject codes in some processes you can't.
AdjustPrivilege gives you full permission and access to inject codes in some processes you can't.
ASKER
ok thank you for that i inject the dll to winlogon.exe but their big problem
no function of the dll run it run one second and after that still in memory but not work ???
i try with notepad.exe it work perfect but in winlogon.exe :|( ???????
no function of the dll run it run one second and after that still in memory but not work ???
i try with notepad.exe it work perfect but in winlogon.exe :|( ???????
That's again something new. Now you inject DLL in WinLogon and Ported your EXE to DLL. For those type of errors, you need DEBUG, find the exact source of problem, post a question and we'll look into it
ASKER
thanks i will post new question for the other problem
ASKER
https://www.experts-exchange.com/questions/25030345/want-to-make-win32-app-or-service-active-in-the-pre-login-winlogon-how.html
i opend this question to solve the second problem that appear