A demo program to start cmd.exe from a Dll in windows.
Program will duplicate the process token of injected process and start cmd.exe with the token in the current user's desktop.
Can be used for process injection, Dll planting, Search order hijacking or Elevation of privilege.