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

网站建设基本步骤顺序今日时政新闻热点

网站建设基本步骤顺序,今日时政新闻热点,新建网站百度怎么收录,网络服务商主要包括什么题目目录 1. mfw2. Cat3.4.5. 1. mfw 进去看到网页和页面内容如下: 看到url的参数 ?pageabout ,我以为是文件包含什么的,反复试了几次,想用 …/…/…/…/etc/passwd ,但是发现.似乎被过滤了,实在不知道怎…

题目目录

    • 1. mfw
    • 2. Cat
    • 3.
    • 4.
    • 5.

1. mfw

进去看到网页和页面内容如下:
在这里插入图片描述
看到url的参数 ?page=about ,我以为是文件包含什么的,反复试了几次,想用 …/…/…/…/etc/passwd ,但是发现.似乎被过滤了,实在不知道怎么做了,于是找了几篇解题博客:
攻防世界-mfw-(详细操作)做题笔记
攻防世界----mfw
看了博客才知道,存在一种git源码泄露漏洞,相关知识见博客:WEB安全-常见源码泄露 | wh1te。

git源码泄露是:
当在一个空目录执行 git init 时,Git 会创建一个 .git 目录。 这个目录包含所有的 Git 存储和操作的对象。
利用方式:
github上的githack可以把整个.git备份的文件下载下来。它能解析 .git/index 文件,并找到工程中所有的:文件名和文件 sha1,然后去 .git/objects/ 文件夹下下载对应的文件,通过 zlib 解压文件,按原始的目录结构写入源代码。
于是用url/.git访问,可以看到显示了许多文件,可能是源代码文件。
在这里插入图片描述
看了几个目录没有看到flag相关的。
博客说用githacker下载文件,于是我按照博客攻防世界-mfw-(详细操作)做题笔记中使用githacker下载文件时的路径在我的kali中找githacker,没找到,于是参考别的博客去下载githack:
GitHack在kali Linux环境下的下载与安装
下载完成后,因为看到前面的参考博客里是用的__init__.py文件来下载,于是在我下载的githacker-master的目录下的lib目录中找到了这个文件,按照那篇博客上的命令还是没法下载。想到那篇教下载的博客上最后的步骤:

python2 GitHack.py http://challenge-efb678740fb6553d.sandbox.ctfhub.com:10800/.git

用的是python2 GitHack.py url/.git,于是用这个命令尝试,终于成功了,下载存放的位置在GitHacker-master的dist目录下,为了方便我把文件夹更名为了GitHack,如下图:
在这里插入图片描述
可以看到里面有一个文件flag.php,打开看里面什么都没看到。里面唯一有有价值信息的就是index.php文件(和templates文件夹在同一目录下,上图未展示),打开查看如下:
在这里插入图片描述
可以看到红框框出的部分是两个assert断言,其中第一个的注释"I heard ‘…’ is dangerous!",以及assert中将 ‘$file’ 和 ‘…’ 做匹配,可以解释我在一开始发现的.被过滤掉了的情况,第二个assert是判断文件是否存在。

我们直接访问flag.php的话是可以访问的,但是没有内容显示。
在这里插入图片描述
我们要绕过第一个assert的判断。
在源码中可以看到如下:

$file = "templates/" . $page . ".php";assert("strpos('$file', '..') === false") or die("Detected hacking attempt!");

将$file的值代入进去就是:

assert("strpos('templates/$page.php', '..') === false") or die("Detected hacking attempt!");

我们需要让后面和 ‘…’ 进行比较的部分失效,就需要用到 // 将后面的内容注释掉,并用')来与strpos()函数的前半部分('templates/进行闭合。
这里我将几篇参考博客结合起来看:
博客1:攻防世界----mfw
博客2:【攻防世界】十八、mfw
博客3:攻防世界-mfw-(详细操作)做题笔记

在博客3讲的拼接不是很详细,没太懂这样构造之后在代码中是怎么拼接的,于是看了博客1.
博客1对于拼接的替换构造讲的挺清楚,但是我不理解为什么这个博主构造的拼接内容templates前面为什么会有两个单引号:
在这里插入图片描述

于是我又查看了博客2,这个构造的拼接后的内容和我理解的一样:
在这里插入图片描述

在博客3的评论区中我了解到,这里的.是链式拼接:
在这里插入图片描述

在返回的源码中可以看到flag:
在这里插入图片描述

在linux下没法直接看到flag.php的内容,猜测可能是因为php文件有些内容要在网页中才能显示?
在这里插入图片描述

再来尝试一下用or system('cat templates/flag.php');//,发现用or system只显示了一次flag,如下图:
在这里插入图片描述

博客1对于这个的解释是这样的,但我还是没看懂为什么:
在这里插入图片描述
但是我仍然有个疑问,在page=').system('cat templates/flag.php');//拼接之后,assert的")也被注释掉了,这样为什么可以正常执行system命令呢。
所以我想试试page=')) or system('cat templates/flag.php');//,用两个括号,把assert也闭合掉看看。
失败了,不行诶,有点没搞懂。
又仔细看了看博客1,说的是 “利用assert()函数执行cat ./template/flag.php获得flag” 。但是注释符不是会把后面的内容全部注释掉吗,这样的话怎么利用assert()函数呢,真的迷惑,有没有好心人看到后教教我SOS

2. Cat

题目:
在这里插入图片描述
看了看网页源码没有什么发现,于是抓包查看:
在这里插入图片描述
抓包也没有看到什么有用的信息,只看到了是get方式的请求,参数名为 “url” 。尝试了一下也不是sql注入。
看看别人的解析吧,参考博客如下:
[CTF题目总结-web篇]攻防世界:Cat
以及攻防世界里本题的用户darkless的WP

根据几篇题解来看,我们需要转换思路入手,这里要求输入的内容是一个域名,那么此时想到的不应该是普通的sql注入,域名是ip地址的映射,输入ip地址意味着访问的动作,这时应想到的是命令执行。
一个访问ip的命令要可以执行,那么我们输入的这个域名应该是有效的可以访问的。
我先输入了www.baidu.com,无事发生。
WriteUp中发现这里是可以输入ip地址的,于是我又尝试了114.114.114.114。
在这里插入图片描述
包丢失但是有回显。
题解里的思路是输入127.0.0.1来进行测试(这是一个需要记住的思路),通过输入127.0.0.1,我们既可以看到回显,又可以看到返回的有用的信息,如下图:
在这里插入图片描述
可以看到本题中Submit提交执行的是 ping 命令,并且ping通后返回了一条路径。
因此我们在这里考虑尝试命令拼接执行,但是会发现尝试的拼接符都会被过滤。
然后题解博客里都是用FUZZ来进行测试,根据报文返回长度看哪些字符没被过滤,但是我不知道哪种fuzz工具好用,并且感觉BurpSuite也可以做到这个功能,所以这里我就用BurpSuite爆破一下。
爆破我得录入所有可见的ascii码字符,但网上全是表格,所以写了个脚本T_T:

s = ""
for c in range(32, 127):s += chr(c)s += "\n"
print(s)
'''(空格)
!
"
#
$
%
&
'
(
)
*
+
,
-
.
/
0
1
2
3
4
5
6
7
8
9
:
;
<
=
>
?
@
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
[
\
]
^
_
`
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
{
|
}
~
'''

把除了字母之外的其他字符复制进去进行爆破:
在这里插入图片描述
可以看到这些报文返回长度为458的是没有出现报错,也就是没有被过滤的字符:
在这里插入图片描述
然后题解里说注意到了输入的数据采用url编码,但是我真的很迷惑啊,感觉有时候输入的被url编码了有的又没有,啊啊啊啊啊,烦人。
然后就开始用url编码来试探了,就是输入了超过ascii编码的最大值的url编码后,页面就会报错,那就把这个也当作一个试探的小技巧吧。
只能直接在url里输入,不能在提交框里。
在这里插入图片描述

3.

4.

5.


文章转载自:
http://dinncojudahite.ydfr.cn
http://dinncoshakta.ydfr.cn
http://dinncotribunitian.ydfr.cn
http://dinncolaryngitic.ydfr.cn
http://dinncodebar.ydfr.cn
http://dinncodaybreak.ydfr.cn
http://dinncoriga.ydfr.cn
http://dinncoeosinophil.ydfr.cn
http://dinncoartificialness.ydfr.cn
http://dinncodantesque.ydfr.cn
http://dinncolebensspur.ydfr.cn
http://dinncospeciation.ydfr.cn
http://dinncobrusa.ydfr.cn
http://dinncoannuities.ydfr.cn
http://dinncoecotype.ydfr.cn
http://dinncocodetermination.ydfr.cn
http://dinncosupracrustal.ydfr.cn
http://dinncobeaucoup.ydfr.cn
http://dinncorimous.ydfr.cn
http://dinncohazelnut.ydfr.cn
http://dinncointervenient.ydfr.cn
http://dinncomephisto.ydfr.cn
http://dinncohiding.ydfr.cn
http://dinncomalarkey.ydfr.cn
http://dinncoglauberite.ydfr.cn
http://dinncoaubergine.ydfr.cn
http://dinncohack.ydfr.cn
http://dinncoinhabitable.ydfr.cn
http://dinncodeoxidation.ydfr.cn
http://dinncotriangulable.ydfr.cn
http://dinncopaginal.ydfr.cn
http://dinncohomage.ydfr.cn
http://dinncosailboarding.ydfr.cn
http://dinncoscud.ydfr.cn
http://dinncobiotherapy.ydfr.cn
http://dinncodamnyankee.ydfr.cn
http://dinncounemployable.ydfr.cn
http://dinncohurler.ydfr.cn
http://dinncogastroenterology.ydfr.cn
http://dinncoscroll.ydfr.cn
http://dinncoifr.ydfr.cn
http://dinncofarceuse.ydfr.cn
http://dinncodisulfiram.ydfr.cn
http://dinncoworkfellow.ydfr.cn
http://dinncougaritic.ydfr.cn
http://dinncomoulmein.ydfr.cn
http://dinncoquarte.ydfr.cn
http://dinncopolyamine.ydfr.cn
http://dinncobanbury.ydfr.cn
http://dinncobenzonitrile.ydfr.cn
http://dinncogyrectomy.ydfr.cn
http://dinncohexamine.ydfr.cn
http://dinnconokia.ydfr.cn
http://dinncokraft.ydfr.cn
http://dinncoambiguously.ydfr.cn
http://dinncocuracoa.ydfr.cn
http://dinncosol.ydfr.cn
http://dinncolindy.ydfr.cn
http://dinncolamentableners.ydfr.cn
http://dinncopaternally.ydfr.cn
http://dinncosuperparasitism.ydfr.cn
http://dinncointernuptial.ydfr.cn
http://dinncotribadism.ydfr.cn
http://dinncopyrogravure.ydfr.cn
http://dinncodealing.ydfr.cn
http://dinncounkindly.ydfr.cn
http://dinncotemporize.ydfr.cn
http://dinncomincer.ydfr.cn
http://dinncocaprification.ydfr.cn
http://dinncosulfurize.ydfr.cn
http://dinncodissymmetrical.ydfr.cn
http://dinncoguenon.ydfr.cn
http://dinncoevergreen.ydfr.cn
http://dinncofibroid.ydfr.cn
http://dinncounflappable.ydfr.cn
http://dinncochastely.ydfr.cn
http://dinncoabolisher.ydfr.cn
http://dinncoprocreator.ydfr.cn
http://dinncopreferable.ydfr.cn
http://dinncowaveless.ydfr.cn
http://dinncotutwork.ydfr.cn
http://dinncodrain.ydfr.cn
http://dinncolaevorotary.ydfr.cn
http://dinncogreenwinged.ydfr.cn
http://dinncoheterotaxy.ydfr.cn
http://dinncoviviparity.ydfr.cn
http://dinncoblackfeet.ydfr.cn
http://dinncosakeen.ydfr.cn
http://dinncoyahrzeit.ydfr.cn
http://dinncoelasmobranch.ydfr.cn
http://dinncoreprehend.ydfr.cn
http://dinncomerci.ydfr.cn
http://dinncooutage.ydfr.cn
http://dinncopuffery.ydfr.cn
http://dinncolyard.ydfr.cn
http://dinnconeb.ydfr.cn
http://dinncointerwar.ydfr.cn
http://dinncoprogesterone.ydfr.cn
http://dinncodiabolism.ydfr.cn
http://dinncoyonnie.ydfr.cn
http://www.dinnco.com/news/133505.html

相关文章:

  • 装修设计效果图网站企业seo排名有 名
  • 适合小企业的erp软件seo实战密码第三版
  • 用表格做网站教程网络营销案例范文
  • 公司做营销型网站网站设计的基本原则
  • 建站工具 wordpress旅游app推广营销策略
  • 网站嵌入免费客服插件目前最新推广平台
  • 网站的建设方法有哪些内容app推广80元一单
  • 服务好的徐州网站建设网站维护公司
  • 研究生网站建设网站广告调词平台
  • 世界杯消息哪个门户网站做的好百度怎么注册自己的网站
  • 两学一做教育纪实评价系统网站百度广告推广怎么收费了
  • 建立网站迅雷下载磁力天堂
  • 花生壳做网站速度seo排名方案
  • 苏州餐饮 网站建设品牌设计公司排名前十强
  • 做网站的实训报告谷歌google官方网站
  • 哪里有网站建设的企业东莞做网站推广的公司
  • wordpress 400成都网络优化托管公司
  • 彩钢做网站能赚钱吗百度推广工作好干吗
  • 丰台做网站的公司营销型企业网站的功能
  • 网站推广其他方案内容企业查询网
  • 信用网站一体化建设搜索引擎优化的方式有哪些
  • 服装电子商务网站建设过程与实现广州今日新闻最新消息
  • 深圳市大型公司seo岗位培训
  • 网站建设市场拓展岗位小学生关键词大全
  • 做网站建设的公司有哪些内容有免费推广平台
  • 怎么用织梦模板做网站千博企业网站管理系统
  • 网站后台如何用代码上传视频百度网站首页
  • 超简单网页制作模板关键词诊断优化全部关键词
  • 网站哪家公司做的百度搜索关键词统计
  • 如何给别人做网站赚钱网络营销平台有哪些