Jump to content

Photo

Set command line in PEB


  • Please log in to reply
No replies to this topic

#1 V01D1nCuB4T0R Posted 16 May 2015 - 09:58 AM

V01D1nCuB4T0R

    Soldier

  • Members
  • Pip
  • 1 posts

Hey, guys.

Sorry for possible spelling mistakes. English is not my native language.

 

How do I correctly set the command line of process?

 

This code is not working:

 
Process p = new Process();
p.StartInfo.FileName = @"c:\windows\system32\cmd.exe";
p.StartInfo.Arguments = "test";
p.Start();


System.Threading.Thread.Sleep(1400);


var sharp = new MemorySharp(p.Id);


var peb = sharp.Peb;


peb.ProcessParameters = IntPtr.Zero;

Edited by V01D1nCuB4T0R, 16 May 2015 - 09:59 AM.

  • Back to top
  • Report




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users