当前位置:网站首页>复现gallerycms字符长度限制短域名绕过
复现gallerycms字符长度限制短域名绕过
2022-08-01 22:08:00 【张小元.】
一、kali中安装beEF
用户名是:beef
密码是自己刚才登陆前输入的密码,成功后就是下面的界面。
二、本机搭建galleryCMS的服务器
1、打开小皮中的Apache和MySQL
2、 修改phpstudy_pro\WWW\localhost\GalleryCMS-2.0\application\config/database.php文件
如果报错为124,则修改phpstudy_pro\WWW\localhost\GalleryCMS-2.0\system\database/DB_driver.php
同时打开数据库里面添加gallerycms数据库
因为打开gallerycms注册之后会报错,说明还是有点问题
所以咱们直接在数据库里面添加,添加之前在数据库中要修改user表的结构,输入
alter table user modify last_ip varchar(100) not null default '127.0.0.1';
要不然直接添加会报错
这样就成功了!!
然后刷新一下网页,成功登入进来
3、限制长度35字符绕过
我们将源码中的45改为35
虽然xss-clean过滤了很多标签,但是他还没有过滤掉< svg >标签,所以我们使用< svg>标签进行一个测试。
发现我们添加成功,所以我们用svg标签来进行绕过,接下来就是解决字符的长短
我们能看到就这些已经29个字符了,所以我们只能通过修改域名长度,通过一个字符来代替三个字符,用来实现短域名绕过。
℠ expands to sm
㏛ expands to sr
st expands to st
㎭ expands to rad
℡ expands to tel
ff expands to ff
边栏推荐
- The Microsoft campus ambassador to shout you to autumn recruit!
- 小程序毕设作品之微信美食菜谱小程序毕业设计成品(6)开题答辩PPT
- scikit-learn no moudule named six
- Raspberry Pi information display small screen, display time, IP address, CPU information, memory information (C language), four-wire i2c communication, 0.96-inch oled screen
- 罗克韦尔AB PLC RSLogix5000中的比较指令使用方法介绍
- more grown, more lonely
- 使用分类权重解决数据不平衡的问题
- The must-have "fishing artifact" for programmers is here!
- VGUgarbage collector(垃圾回收器)的实现原理
- 模拟数据之mockjs
猜你喜欢
随机推荐
APP专项测试:流量测试
【ASM】字节码操作 MethodWriter
移动端人脸风格化技术的应用
SOM Network 2: Implementation of the Code
模拟数据之mockjs
(*゚ヮ゚)*【精品C语言整理】*(゚ヮ゚*)女盆友缠着你让你教她写代码怎么办?安排,三万字博文带你走遍C语言,从此不再害怕编程
2022 版 MySQL 巅峰教程,收藏好,慢慢看
恒星的正方形问题
Safe fifth after-school exercise
MySQL related knowledge
联邦学习的框架搭建
familiar friend
Kubernetes Scheduler全解析
Wechat Gymnasium Appointment Mini Program Graduation Design Finished Work (4) Opening Report
selenium无头,防检测
【C语言】猜数字小游戏
联邦学习入门
[Mobile Web] Mobile terminal adaptation
如何防范 DAO 中的治理攻击?
【Verilog刷题篇】硬件工程师从0到入门1|基础语法入门