当前位置:网站首页>【HackTheBox】dancing(SMB)
【HackTheBox】dancing(SMB)
2022-06-29 04:16:00 【Happy star】
Let's talk about stepping on the pit openvpn file name .ovpn
Open with this command vpn
The result is 
Cannot be opened , Straight out 
Or it's a dead cycle , Keep waiting
It took about an hour , Keep trying
Last , yes tcp Switch to udp, It's solved 
1、SMB What does that mean? ?
Server Message Block – SMB, Is a file sharing protocol . When the original document is in your A On the computer , And you want to use your mobile phone under the LAN 、iPad Or another computer to access A This file on your computer , You may need to use SMB share .
Server Message Block
2、SMB What port to use for operation ?

TCP port 139 yes NETBIOS Upper SMB. NETBIOS Is a transport layer protocol , It aims to use the Internet to Windows Used in the operating system .
TCP 445 Is based on IP Of SMB. This is a newer version , Can be in IP Normal use on the network SMB.
445
3、 stay Nmap Ports that appear in the scan 445 What is the name of your service ?
microsoft-ds
4、SMB Tools can be used “ List ” Shared content “ sign ” or “ switch ” What is it? ?
stay linux in , You can use the command line tool smbclient Connect ,smbclient Will try to connect to the remote host , And check if any authentication is required
Use -L The command displays the resources shared by the server -L
smbclient -L 10.129.193.22

This one is really stupid , I tried for a long time , Maybe the target host is not very stable smbclient -L=10.129.193.22 I tried this
The other three are shared by default , You can use your own physical machine to input commands net share You know the
All we care about WorkShares This
5、 If the password is empty , What is the name of the share we can eventually access ?
because s ending , I just tried the one above sharenameWorkShares
So we get ,WorkShares You don't need a password
Connect the shared file smbclient \\\\10.129.193.22\\WorkShares
In the same way, it can be connected to other smbclient \\\\10.129.193.22\\C$

Finally connected 
worknotes.txt It's not ours flag
Look at another directory , There are flag.txt
Direct use more You can see flag 了 
6、 We can do it in SMB shell What commands are used in to download the files we find ?
get
边栏推荐
- I came from a major, so I didn't want to outsource
- sql两列变为多行过滤显示
- Nuxt - set SEO related tags, page titles, icons, etc. separately for each page (page configuration head)
- Runtimeerror in yolox: dataloader worker (PID (s) 17724, 1364, 18928) exited unexpectedly
- 多机局域网办公神器 rustdesk 使用强推!!!
- 不使用union实现Mysql 列转行
- 【C语言】详解线程回收函数 pthread_join
- [new function] ambire wallet integrates Metis network
- Inftnews | metauniverse technology will bring a new shopping experience
- 使用AssetStudio/UnityStudio UABE等
猜你喜欢

干货丨微服务架构是什么?有哪些优点和不足?

Tech Cloud Report: Mixed Office B side: How Safety and Efficiency can be combined?

Blue Bridge Cup ruler method
![[filter design] customize the filter with MATLAB according to the design index](/img/b2/b5576c5eb6dbe9a0c64158802aa1d0.png)
[filter design] customize the filter with MATLAB according to the design index

【C语言】解决 “address of stack memory associated with local variable ‘num‘ returned”

How to keep database and cache consistent

Implementation of b+ tree index based on xlsx

Seattention channel attention mechanism

科技云报道:混合办公的B面:安全与效率如何兼得?

Build a simple website by yourself
随机推荐
干货丨微服务架构是什么?有哪些优点和不足?
How to back up all data on Apple mobile phone in 2 steps (free)
JSX的基本使用
科技雲報道:混合辦公的B面:安全與效率如何兼得?
Mécanisme d'attention du canal de fixation
树莓派用VNC Viewer方式远程连接
大神们 在富函数的open中从mysql连接池里取连接 连接池初始化是20个 如果富函数的并行度是1
Sword finger offer II 040 Largest rectangle in matrix
请问大佬,Oracle CDC报错 Call snapshotState on closed sou
My creation anniversary
moudo网络库剖析
1016 part a+b
1017 A除以B分
Implementation of b+ tree index based on xlsx
NotImplementedError: Could not run torchvision::nms
How to keep database and cache consistent
Seattention channel attention mechanism
【FPGA+sin】基于DDS(直接数字合成)的正弦信号发生器模块FPGA实现
SEAttention 通道注意力機制
CDC2.2.1还不支持postgresql14.1么?基于pgbouncer连接方式下,以5433