Image
 
linkedin_logo.png rss_logo.jpg
twitter_logo.png youtube_logo.jpg
Latest Additions
 
EH-Net Login
Welcome Guest.






Lost Password?
No account yet? Register
Who's Online
We have 61 guests and 1 member online
 
Advertisement

You are here: Home arrow Ethical Hacking Discussions and Related Certificationsarrow Otherarrow Escalating priveledges in xp
EH-Net
May 24, 2013, 06:03:37 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Go back to The Ethical Hacker Network Online Magazine Home Page
 
   Home   Help Calendar Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Escalating priveledges in xp  (Read 5867 times)
0 Members and 1 Guest are viewing this topic.
ric2007
Newbie
*
Offline Offline

Posts: 7


View Profile
« on: July 31, 2007, 01:41:29 PM »

Hi everyone, i am sure you have all seen what i am about to tell you but as there are so many senoir security guys i trust they can further explain why this works and how to prevent it..

1) open cmd.exe
2) type in "at (time) /interactive cmd.exe"
3) should be a time two or one minute ahead of the current time
4) at the specified time another box will popup ( SVCHOST will be in title bar)
5) once this has happened open up task manager and click on explorer.exe then end process
6) in the new cmd window type explorer.exe and you will now have system access.. ( It will not work on guest account but on power users etc)

Please correct me if i am wrong.. and i hope this is able to enlighten someone and i'll be watching for your replies(Thats to all the experts)
Logged
BillV
Hero Member
*****
Offline Offline

Posts: 1892


View Profile WWW
« Reply #1 on: July 31, 2007, 02:51:18 PM »

Yes, you have to have sufficient access already in order to use that command. A standard user won't be able to use the at command. I believe you can also block it by using Group Policy, but I'm not 100% sure.

Here's the simple reason as to why it works. When the at command runs and opens up a new terminal window, it is the system account that is opening that window. You then kill explorer, ending your current session. Then you go back to the other terminal and re-open explorer, but you're opening it from a terminal owned by the system account, which in turn basically logs you in as the system account.
Logged
LSOChris
Guest
« Reply #2 on: July 31, 2007, 03:07:25 PM »

"SC" is the replacement for "at"

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\sc
DESCRIPTION:
        SC is a command line program used for communicating with the
        NT Service Controller and services.
USAGE:
        sc <server> [command] [service name] <option1> <option2>...

        The option <server> has the form "\\ServerName"
        Further help on commands can be obtained by typing: "sc [command]"
        Commands:
          query-----------Queries the status for a service, or
                          enumerates the status for types of services.
          queryex---------Queries the extended status for a service, or
                          enumerates the status for types of services.
          start-----------Starts a service.
          pause-----------Sends a PAUSE control request to a service.
          interrogate-----Sends an INTERROGATE control request to a service.
          continue--------Sends a CONTINUE control request to a service.
          stop------------Sends a STOP request to a service.
          config----------Changes the configuration of a service (persistant).
          description-----Changes the description of a service.
          failure---------Changes the actions taken by a service upon failure.
          qc--------------Queries the configuration information for a service.
          qdescription----Queries the description for a service.
          qfailure--------Queries the actions taken by a service upon failure.
          delete----------Deletes a service (from the registry).
          create----------Creates a service. (adds it to the registry).
          control---------Sends a control to a service.
          sdshow----------Displays a service's security descriptor.
          sdset-----------Sets a service's security descriptor.
          GetDisplayName--Gets the DisplayName for a service.
          GetKeyName------Gets the ServiceKeyName for a service.
          EnumDepend------Enumerates Service Dependencies.

        The following commands don't require a service name:
        sc <server> <command> <option>
          boot------------(ok | bad) Indicates whether the last boot should
                          be saved as the last-known-good boot configuration
          Lock------------Locks the Service Database
          QueryLock-------Queries the LockStatus for the SCManager Database
EXAMPLE:
        sc start MyService

Logged
jimbob
Guest
« Reply #3 on: July 31, 2007, 04:44:05 PM »

"SC" is the replacement for "at"
I thought sc was just for managing services, can it also be used to schedule tasks?

Jim
Logged
LSOChris
Guest
« Reply #4 on: July 31, 2007, 09:37:07 PM »

yeah pretty sure it can.

i'll have to go dig thru my GCIH notes to totally remember the syntax its definitely more involved that the at command syntax.

but google says:
http://blogs.msdn.com/adioltean/archive/2004/11/29/271987.aspx
http://blogs.msdn.com/adioltean/articles/271063.aspx

« Last Edit: July 31, 2007, 09:39:33 PM by ChrisG » Logged
ric2007
Newbie
*
Offline Offline

Posts: 7


View Profile
« Reply #5 on: August 03, 2007, 02:57:10 PM »

Many thanks to you all.. Your answers are very insightful...  Smiley on another note.. do you know of any website that would give me outlines/templates for the various security policies that must be instituited in a company be it small, medium to large? Once again thanks for the time you take to answer my questions and for sharing your vast knowledge on the subject/s..
Logged
What90
Full Member
***
Offline Offline

Posts: 120


View Profile WWW
« Reply #6 on: August 04, 2007, 06:43:50 AM »

Both SANS and NIST have good policy templates to start with. Have a llok through those and tweak them for your own needs:

http://www.sans.org/resources/policies/?ref=3731
http://csrc.nist.gov/

Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Page created in 0.075 seconds with 23 queries.
 
Exclusive Deal

sansfire13_245x90_cw90.jpg
SANSFIRE 2013
June 15 - 22

5% Off w/ Code: EHN_5

SANS Deals 4 EH-Netters
5% OFF Any SANS Course in Any Format!
Coupon Code: EHN_5 Including SANS Rocky Mountain 2013 & SANS Boston 2013
Polls
Compared to this year, 2013 will be:
 
Recent Forum Topics
EH-Net News Feeds
Latest Additions
 
         
Advertisement

© 2013 The Ethical Hacker Network
Joomla! is Free Software released under the GNU/GPL License.