当前位置:网站首页>Asser uses ant sword to log in
Asser uses ant sword to log in
2022-07-31 00:15:00 【Miracle_ze】
1. Write a php Trojan file
2.Open Ant Sword
Pass 1 as eval and password as 2, try to form the eval() function
The body in the request message and the connection password of 1 are used to form the eval() function
Test results
At this time, the returned data is empty and the connection fails, because eval() is a language constructor, and he cannot use the variable function provided by PHP to call
Use 1=assert&2 directly as the password
Using the burp suite tool to capture the package, it is found that the value of 2 is a string of a series of PHP functions to obtain files that are directly input
The parameter of the assert() function cannot be a string, it must be a function to execute the statement
Use the packet capture tool to view the traffic
Change encoding
Test again
It is found that because the encoding method is base64 at this time, eval(base64_decode()) is automatically called in 2 places to decode the PHP file-related functions, which satisfies the condition that the assert() function parameter must be a function
Try using 1=assert 2=eval($_POST['3']) method
At this time, the variable function is assert(eval($_POST['3'])) which also satisfies assert()The parameter must be a function, and there are parameter values that can be passed in the eval statement, so the connection is successful
边栏推荐
- Steven Giesel recently published a 5-part series documenting his first experience building an application with the Uno Platform.
- 【深入浅出玩转FPGA学习14----------测试用例设计2】
- 天空云变化案例
- leetcode 406. Queue Reconstruction by Height
- 从编译的角度来学作用域!
- h264和h265解码上的区别
- software development design process
- JS中? ?和??=和?.和 ||的区别
- 常用的正则表达式
- 2D转换模块&&媒体查询
猜你喜欢
随机推荐
An easy-to-use interface testing tools - the Postman
消息队列存储消息数据的MySQL表设计
Soft Exam Summary
从两个易错的笔试题深入理解自增运算符
一款好用的接口测试工具——Postman
H5跳转微信公众号解决方案
Optimization of aggregate mentioned at DATA AI Summit 2022
45.【list链表的应用】
mysql 中手动设置事务提交
SWM32系列教程6-Systick和PWM
Installation considerations for pytorch
A Brief Talk About MPI
.NET 跨平台应用开发动手教程 |用 Uno Platform 构建一个 Kanban-style Todo App
How to Repair Word File Corruption
uniapp develops WeChat applet - soft exam brushing applet
@requestmapping注解的作用及用法
Summary of the stock problem of state machine dynamic programming
IOT跨平台组件设计方案
如何在WordPress网站上添加导航菜单
限制字符绕过