`

[转]Access to every PC and become local Admin

 
阅读更多
原文地址:http://www.gosecure.it/blog/art/500/sec/sethc-access-to-every-pc-and-become-local-admin/

This article talk about to connetting to a pc when you don’t have password and:
– you have physical access to the pc
– you can boot from a CD/usb/other HD

This is an old method that I rediscovered after many years and, with big surprise, is still present on modern MS operating systems (win 7 and.
At the base of this “feature” I’m going to describe there is a windows executable: c:\windows\system32\sethc.exe (but it’s not the only way: you can also use shutdown.exe).

If you have a Windows system you can activate this program by pressing 5 times the left SHIFT, this operation runs the executable (sethc.exe).

There are two problems if you analyze this situation: first it can be runned also in the login screen before authentication, second the privilege used to run the executable is SYSTEM (in the login screen no user is already logged in)
This is quite terrible.
Before, in XP sp2 and early xp sp3, this file was used to escalate privilege whitout phisycal access to the pc: the file was accessible by everyone and was not locked by the system, so a user could remove the legittimate sethc.exe, copy the cmd.exe from the same folder and rename it in sethc.exe.

What was the window that poped-up when the user hits CTRL for 5 times after this alteration? A CMD shell! What was the privilege of this shell? System!
Luckily Microsoft patched this problem in late XP sp3 and now the file is locked and can’t be manipulated when the Operating System is started, but the setch.exe is still there.

Some weeks ago I had some problems to access a windows laptop (win 7 SP1). Although I had the authorization to access to it I didn’t have the password to enter and no options to recover it. so I tried this:
I put a linux bootable CD and boot the pc using it. Then I simply mounted the windows file system and used some command like this:

[root@localhost /]#  mkdir -p /media/c
[root@localhost /]#  mount -t ntfs /dev/hd02 /media/c
[root@localhost /]#  cd /media/c/Windows/System32
[root@localhost /]#  cp sethc.exe _sethc.exe
[root@localhost /]#  cp cmd.exe sethc.exe
Than I rebooted the system from HD and, when in the login screen, I simply pressed 5 times the left SHIFT.Ta-da! I got a SYSTEM shell.
I used a basic command line to create a new user and put it in Administrators group and, less than 5 minutes later, I had the full graphic control of the box.

This caused me a hundred of ideas, so, put aside this latop, I went on with my tests.
I tried it over a Win8 box, on a domain PC and against a server with strong domain policy and every time it worked fine.

So this is my assume (but you can refute):
If you have physical access and if you can boot from an external device (using bios or physically adding a new HD to the pc case) you can log into a Windows pc using SYSTEM privilege.

That’s why in every Company, that believe in IT security, the external device booting, the PXE, and the access to the PC case must be regulated.

ASAP I will write some example to become Domain admin strarting from this point, to highlight how dangerous is every litle door that a sys admin leaves open.
分享到:
评论

相关推荐

    PC Access SMART 说明书

    PC Access SMART 说明书 PC Access SMART 是西门子公司针对 S7-200 SMART PLC 与上位机通信推出的 OPC(OLE for Process Control)服务器软件。其作用是跟其他标准的 OPC 客户端(Client)通信并提供数据信息。 PC...

    pc access v2.3最新下载

    标题 "PC Access V2.3最新下载" 涉及的主要知识点是西门子的工业自动化软件PC Access,以及如何利用该软件通过OPC(OLE for Process Control)通信协议与S7-200 SMART系列PLC进行数据交互。PC Access是一款用于连接...

    V1.0 PC Access SP6 完整安装包 解决出现错误问题 支持win7

    "V1.0 PC Access SP6 完整安装包 解决出现错误问题 支持win7" 这个标题指的是一个特定版本的软件,即PC Access的Service Pack 6(SP6)的V1.0版本。PC Access是西门子为工业自动化领域提供的一种软件解决方案,它...

    s7 200 SMART Pc Access

    S7‑200 PC Access SMART 是可用来从 S7‑200 SMART PLC 提取数据的一款软件应用程序。 您可以创建 PLC 数据变量,然后使用内含的测试客户端进行 PLC 通信。 S7‑200 PC Access SMART 安装了“Siemens PC Access ...

    vb下使用PC ACCESS 与P LC 通讯

    vb下使用PC ACCESS 与P LC 通讯 通过OPC 与S7-200进行通讯

    chrome 插件 Allow access to file URLs

    AxureRP-extension-for-Chrome-0.6.2 Chrome Version 33.0.1750.146 m 因为众所周知的原因,此插件不能正常下载,但是可以通过离线安装 使用说明: 1 设置---更多工具--扩展程序 2 打开开发者模式 ...

    西门子 PC Access Smart V2.0

    西门子PC Access Smart V2.0是一款专为S7-200 Smart系列PLC设计的OPC服务器软件。该软件提供了与这些小型西门子PLC进行数据通信的强大工具,使得用户能够轻松地从个人计算机(PC)访问和控制PLC的数据,实现了工业...

    Pc_Access_for_S7-200SMART_V2.0

    《全面解析Pc_Access_for_S7-200SMART_V2.0:与西门子PLC的高效通信》 在工业自动化领域,西门子S7-200SMART系列PLC(可编程逻辑控制器)是广泛应用的控制系统。为了实现与这些设备的有效通信,西门子开发了一款名...

    Access转SQL工具

    【Access转SQL工具】是一种专门用于将Access数据库文件(.mdb或.accdb)转换为SQL Server格式的实用程序。这种工具对于那些希望将基于Access的数据系统迁移到更强大的SQL Server平台的用户来说非常有用。Access虽然...

    S7-200SMART-PC-ACCESS-V2.3安装包-链接地址.txt

    S7-200SMART_PC_ACCESS_V2.3安装包

    Mysql To Access工具 Mysql转Access

    一个相当好用的MYSQL到ACCESS转换工具

    PC Access SMART 通讯常见问题

    标题中的“PC Access SMART 通讯常见问题”是指在使用PC Access SMART软件进行设备通信时遇到的一些典型问题。PC Access SMART通常是一款用于与自动化设备、PLC(可编程逻辑控制器)或其他智能设备进行数据交换的...

    PC_ACCESS_V2.3.iso

    S7200 SMART OPC 软件 PC_ACCESS_V2.3,PC Access SMART 2.3,不能安装在XP系统。

    PC ACCESS通讯程序

    《PC ACCESS通讯程序详解——实现电脑与西门子S7-200 PLC的高效连接》 在工业自动化领域,PLC(可编程逻辑控制器)是不可或缺的重要设备,而西门子S7-200系列作为其中的经典产品,被广泛应用在各种生产环境中。在...

    西门子PC ACCESS入门资料

    西门子PC Access是一款面向S7-200 PLC的OPC服务器软件,它允许用户通过标准OPC客户端与PLC进行通信并交换数据。本文将详细介绍PC Access软件的基本设置、典型应用和常见问题,帮助初学者快速入门。 ### 概述 #### ...

    Clean Architecture A Craftsman's Guide to Software Structure and Design

    Practical Software Architecture Solutions from the Legendary ...Register your product at informit.com/register for convenient access to downloads, updates, and/or corrections as they become available.

    S7-200_PC_ACCESS_v1.0_SP5和SP6安装包

    《S7-200 PC ACCESS v1.0 SP5和SP6安装包详解》 在工业自动化领域,西门子的S7-200系列PLC(可编程逻辑控制器)广泛应用于各种生产线和设备控制。为了方便用户对这些设备进行编程、监控和调试,西门子开发了PC ...

    How to configure ODBC DSN to access local DB2 for Windows

    This article introduces how to configure ODBC DSN in Server to access local DB2 for windows in detail. Then I give a sample how to access local DB2 database with ODBC by DB Query Analyzer expediently.

    PC Access 概述及使用

    《PC Access:西门子PLC的 OPC Server详解》 PC Access是西门子推出的一款专为S7-200 PLCs设计的OPC Server软件,它为OPC客户端提供数据服务,允许与任何符合OPC标准的客户端进行通信。这款软件特别适合初学者学习...

Global site tag (gtag.js) - Google Analytics