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

HTB:Tactics[WriteUP]

目录

连接至HTB服务器并启动靶机

1.Which Nmap switch can we use to enumerate machines when our ping ICMP packets are blocked by the Windows firewall?

2.What does the 3-letter acronym SMB stand for?

3.What port does SMB use to operate at?

4.What command line argument do you give to `smbclient` to list available shares?

5.What character at the end of a share name indicates it's an administrative share?

6.Which Administrative share is accessible on the box that allows users to view the whole file system?

7.What command can we use to download the files we find on the SMB Share?

8.Which tool that is part of the Impacket collection can be used to get an interactive shell on the system?

ROOT_FLAG:f751c19eda8f61ce81827e6930a1f40c


连接至HTB服务器并启动靶机

靶机IP:10.129.23.181

分配IP:10.10.16.12


1.Which Nmap switch can we use to enumerate machines when our ping ICMP packets are blocked by the Windows firewall?

使用man命令查看nmap使用手册:可以找到-Pn参数

nmap使用了-Pn参数后,将不再想目标发送ICMP包,并跳过存活检测


2.What does the 3-letter acronym SMB stand for?

国产化后:SMB这三个字母缩写代表什么?

SMB 是 Server Message Block 的缩写,中文意思为服务器消息块

SMB 主要用于在计算机之间共享文件、打印机、串口等资源,它允许不同的操作系统(如 Windows、Linux、macOS 等)之间进行文件和打印机共享。SMB 协议可以在局域网和广域网中使用,为用户提供了方便的文件共享和访问方式。随着技术的发展,SMB 也在不断演进和改进,出现了 SMB2、SMB3 等版本,提高了性能、安全性和可靠性。


3.What port does SMB use to operate at?

国产化后:SMB使用的是哪个端口?

使用nmap对靶机进行脚本、服务信息扫描:

由nmap扫描结果可见,靶机SMB服务托管于445端口

在早期的 Windows 系统中,SMB 主要使用端口 139。后来,随着 SMB 协议的发展,特别是在 Windows 2000 及之后的版本中,开始更多地使用端口 445。端口 445 在一些情况下提供了更高效的文件共享和通信能力。


4.What command line argument do you give to `smbclient` to list available shares?

使用man命令查看smbclient使用手册:

通过使用手册查询可知,使用-L选项来列出所有可用共享


5.What character at the end of a share name indicates it's an administrative share?

使用smbclient列出靶机所有共享:

smbclient -L {TARGET_IP} -U Administrator

可见所有共享末尾都有:$字符。这代表着它是管理共享

因为我这里不知道什么原因导致报错,无法连接至靶机SMB1服务上,所以下面几个问题只给答案


6.Which Administrative share is accessible on the box that allows users to view the whole file system?

这里只有C$共享的Comment是Default share,所以它是可访问的


7.What command can we use to download the files we find on the SMB Share?

SMB服务中,连接至靶机后使用get命令将文件下载到本地


8.Which tool that is part of the Impacket collection can be used to get an interactive shell on the system?

Impacket集合中,我们可以使用psexec.py脚本在靶机上getshell:

python psexec.py administrator@{TARGET_IP}

最后在C:\Users\Administrator\Desktop目录下找到了flag.txt,直接查看文件内容:

type C:\Users\Administrator\Desktop\flag.txt

ROOT_FLAG:f751c19eda8f61ce81827e6930a1f40c


http://www.mrgr.cn/news/45587.html

相关文章:

  • C++——STL简介
  • 文件内容提取:Apache Tika 2.9.2
  • 有哪些工具可以辅助特定方法来提升DFT ATPG的coverage?
  • 26.删除有序数组中的重复项
  • vue3 对 vue2 有什么优势
  • 计组体系软考题2-计算机组成原理与计算机体系结构概论
  • Spring JDBC - Spring JDBC模版使用
  • 【C语言】指针和数组的内存使用详解
  • 【漏洞复现】飞企互联 FE企业运营管理平台 treeXml.jsp SQL注入漏洞
  • [SAP ABAP] INCLUDE程序创建
  • 时序论文17|ICML24 SAMformer:华为新奇视角讨论Transformer时序预测时的收敛优化问题
  • opencv学习:利用帧差法实现对视频移动物体的识别、帧差法的优缺点及完整代码实现
  • 可以自动点击网页按钮的 Chrome 插件(manifest_v3 20241008)
  • C语言复习题
  • 一分钟掌握 Java21 新特性
  • AOP(面向切面编程)
  • Java中的五种引用类型
  • [NewStar2024]
  • 在spring boot项目中使用Spring Security的BCryptPasswordEncoder类进行相同密码不同密文的加密和验证
  • tensorflow快速入门--如何定义张量、定义网络结构、超参数设置、模型训练???