+ Post New Thread
Results 1 to 2 of 2
Coding Thread, Account Impersonation in ASP in Coding and Web Development; I've realised I left one of the computers on at my university residence, and am on my way home for ...
  1. #1
    mrcrazy04's Avatar
    Join Date
    Nov 2006
    Location
    Bedfordshire/Cheltenham, UK
    Posts
    258
    Thank Post
    2
    Thanked 11 Times in 11 Posts
    Rep Power
    17

    Account Impersonation in ASP

    I've realised I left one of the computers on at my university residence, and am on my way home for Easter.
    I've figured I can upload an ASP page in order to run shutdown.exe, but in order to do that I need administrative privileges.

    Does anyone know a simple way to impersonate an account in ASP, I'm sure I recall seeing a WSH or similar object to facilitate it, but can't remember where I saw it, and can't find anything on the net.

  2. #2

    SYNACK's Avatar
    Join Date
    Oct 2007
    Posts
    11,060
    Thank Post
    853
    Thanked 2,674 Times in 2,269 Posts
    Blog Entries
    9
    Rep Power
    768
    This is code that performs a shutdown via WMI:
    http://www.robvanderwoude.com/files/shutdown_vbs.txt

    and this page is about impersonation:
    Microsoft Corporation

    but it looks like it only offers impersonation of the already existing process not providing new user credentials to run with.

    You may be able to use a shell.run though depending on the computers config:
    Code:
    <%
    Dim wshell, intReturn
    set wshell = server.createobject("wscript.shell")
    intReturn = wshell.run("shutdown -s", 0, True)
    Response.Write( intReturn )
    set wshell = nothing
    %>
    or even a command prompt that uses the runas command then uses sendkeys to type in the required password.

  3. Thanks to SYNACK from:

    mrcrazy04 (5th April 2009)

SHARE:
+ Post New Thread

Similar Threads

  1. Zimbra AD Account Email Account Link
    By kmount in forum *nix
    Replies: 10
    Last Post: 4th June 2011, 03:14 PM
  2. asp on linux
    By RabbieBurns in forum *nix
    Replies: 4
    Last Post: 1st February 2009, 09:47 PM
  3. some [more] asp help required please
    By RabbieBurns in forum Web Development
    Replies: 9
    Last Post: 17th September 2008, 03:40 AM
  4. ASP Host
    By Hightower in forum Web Development
    Replies: 14
    Last Post: 30th June 2008, 08:09 PM
  5. ASP help
    By kerrymoralee9280 in forum Web Development
    Replies: 12
    Last Post: 3rd October 2007, 08:11 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •