A forum for reverse engineering, OS internals and malware analysis 

Ask your beginner questions here.
 #20385  by EP_X0FF
 Mon Aug 05, 2013 3:47 pm
Seriously OP, are you banned in google? This is one of the most trivial and popular questions with tons of solutions.

EPROCESS = PsLookupProcessByProcessId
KeAttachProcess(EPROCESS)
Peb = PsGetProcessPeb(EPROCESS)
cmdLine = Peb->ProcessParameters->CommandLine;
Do whatever you want
KeDetachProcess(EPROCESS)
ObDereferenceObject(EPROCESS)

Next time use google before asking anything. Both - search and translate services.

Closed.