当前位置:网站首页>Vulnhub narak
Vulnhub narak
2022-07-03 11:47:00 【Plum_ Flowers_ seven】
Catalog
Two 、 Service version detection
3、 ... and 、 information gathering
Four 、dirsearch Catalog explosion
6、 ... and 、cewl Custom dictionary
8、 ... and 、davtest Upload bounce shell
One 、 Full open scan

Two 、 Service version detection

3、 ... and 、 information gathering
No interface is found in the source code comment , Source code leakage , Hide directories, etc
either robots.txt,readme.txt file .
No files contain ,sql Inject ,xss And other common vulnerabilities
Other jump pages also have no information that can help us manage our success
Four 、dirsearch Catalog explosion
1. Default dictionary and status code 401
401 Indicates that the directory exists , But it needs to be verified
403 Indicates that a directory or file exists , But refuse to request resources , Because of the server configuration
404 not found No .

2.dirb Common Dictionaries
dirsearch -u http://192.168.29.135 -f -e html,txt,php -w /usr/share/wordlists/dirb/common.txt

Here is a tips.txt, But this information is useless

5、 ... and 、webdav
webdav effect :
Is based on http1.1 A communication protocol , Be similar to ftp An agreement of , You can upload and download files . This is our breakthrough point , Try admin/admin guest/guest root/root And other common weak passwords . Not successful . We have to blow up , But I don't even know the user name , This blasting is too difficult . So try to customize the dictionary to attack

6、 ... and 、cewl Custom dictionary
working principle : Crawl through the crawler to get the corresponding URL Various resources on , Through analysis and combination , Generate a dictionary .
cewl http://192.168.29.135/ > dict.txt
perhaps
cewl http://192.168.29.135/ -w dict.txt
7、 ... and 、hydra Blast

Successfully logged in

8、 ... and 、davtest Upload bounce shell
1. Test statement
davtest -auth yamdoot:Swarg -url http://192.168.29.135/webdav
Which can be uploaded , What can be executed , Be crystal clear
There is a target here php Running environment

2. Upload php
What we use is kali There is one php rebound shell
davtest -auth yamdoot:Swarg -uploadfile php-reverse-shell.php -uploadloc exp.php -url http://192.168.29.135/webdav

3. Monitor execution

Nine 、0day Raise the right
adopt CVE-2021-3479 Right to come .
The target didn't gcc Compiler tools , Upload and execute after local compilation .

Ten 、 Normal right raising
1. information gathering
Find a subordinate as root, Permissions belong to the master and the group, which can be executed , Other documents that can be written , Find one hell.sh file , Check the content and find that it is a paragraph BF Words of language
find / -user root -type f -perm -ug=x,o=w -exec ls -al {} \; 2>/dev/null

11、 ... and 、BF Language
The full name is brainfuck
This website executes this language , Get a string of characters :chitragupt, Try to get the permission of a normal user as a password ,ssh here we are inferno This user
tio.run/#brainfuck

first flag.txt

Twelve 、modo Inject
1. information gathering
There is one 00-header file , And it's a shell Script


2.motd
motd English full name :message of the day Chinese interpretation : Daily tips , The function is that when we log in , To execute motd file , Achieve the purpose of prompt . The rest of us also have the right to modify , And the owner is root, Can be used to raise rights .
3. modify 00-header file
Add... At the end shell sentence

4.su root

边栏推荐
- Slam mapping and autonomous navigation simulation based on turnlebot3
- The excel table is transferred to word, and the table does not exceed the edge paper range
- 利用Zabbix动态监控磁盘I/O
- Mmc5603nj geomagnetic sensor (Compass example)
- ftp登录时,报错“530 Login incorrect.Login failed”
- 基于turtlebot3实现SLAM建图及自主导航仿真
- R语言使用data.table包进行数据聚合统计计算滑动窗口统计值(Window Statistics)、计算滑动分组中位数(median)并合并生成的统计数据到原数据集中
- After using the thread pool for so long, do you really know how to reasonably configure the number of threads?
- R语言使用aggregate函数计算dataframe数据分组聚合的均值(sum)、不设置na.rm计算的结果、如果分组中包含缺失值NA则计算结果也为NA
- ASP.NET-酒店管理系统
猜你喜欢
随机推荐
Some common terms
Double linked list of linear list
STL教程10-容器共性和使用场景
软件测试周刊(第78期):你对未来越有信心,你对现在越有耐心。
Program process management tool -go Supervisor
R语言使用gridExtra包的grid.arrange函数将lattice包的多个可视化图像横向组合起来,ncol参数自定义组合图列数、nrow参数自定义组合图行数
《剑指offer 03》数组中重复的数字
优化接口性能
Kubernetes 三打探针及探针方式
Capturing and sorting out external Fiddler -- Conversation bar and filter [2]
AI模型看看视频,就学会了玩《我的世界》:砍树、造箱子、制作石镐样样不差...
vulnhub之momentum
How PHP solves the problem of high concurrency
Web security summary
After setting up ADG, instance 2 cannot start ora-29760: instance_ number parameter not specified
R语言使用aggregate函数计算dataframe数据分组聚合的均值(sum)、不设置na.rm计算的结果、如果分组中包含缺失值NA则计算结果也为NA
Cuiyusong, CTO of youzan: the core goal of Jarvis is to make products smarter and more reliable
简单工厂和工厂方法模式
rxjs Observable filter Operator 的实现原理介绍
Programmers' entrepreneurial trap: taking private jobs








