title: Break out of a C# instantiated batch script to get a shell?
body: <p>I am attempting to verify the security of an application. The scenario is this:<br>
  A C# WinForms application is run by a limited user via Terminal Services (no desktop, just the app). One of the things this C# app can do is execute a batch file that runs a lengthy process with elevated privileges. I am afraid that the limited user may be able to interrupt the batch script (vua Ctrl+C or some other method) and gain access to the underlying elevated shell.</p>
  
  <p>I have tried to do this myself with various combos of Ctrl+C and Ctrl+Break, etc. All I can get is the "Teminate batch job? (Y/N)" prompt, and if you choose terminate, then control is immediately returned to the C# app (which is good). I have not found a way to break this but it seems dangerous to me.</p>
  
  <p>Does anyone know of a way to break out of a C# instantiated batch script and access the underlying shell without returning to the C# app?</p>