当前位置:网站首页>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
边栏推荐
- ABC 261 F - Sorting Color Balls(逆序对)
- pytorch的安装注意事项
- 45. [Application of list linked list]
- Soft Exam Summary
- Android安全性优化——APP加固
- 动态修改el-tab-pane 的label(整理)
- Soft Exam Study Plan
- In MySQL, the stored procedure cannot realize the problem of migrating and copying the data in the table
- leetcode 406. Queue Reconstruction by Height 根据身高重建队列(中等)
- 游戏商城表建立
猜你喜欢

mysql中关于存储过程无法实现迁移复制表中数据问题

Shell脚本 if语句

How to adjust Chinese in joiplay simulator

uniapp folding box secondary loop

flex-direction容器属性

Optimization of aggregate mentioned at DATA AI Summit 2022

HCIP Day 15 Notes
![[In-depth and easy-to-follow FPGA learning 14----------Test case design 2]](/img/c0/1130111c90b1bc175b088894c1c18f.png)
[In-depth and easy-to-follow FPGA learning 14----------Test case design 2]

How to import game archives in joiplay emulator

2D Transform Module && Media Queries
随机推荐
MySQL的grant语句
Soft Exam Study Plan
How to ensure the consistency of database and cache data?
Steven Giesel 最近发布了一个由5部分内容组成的系列,记录了他首次使用 Uno Platform 构建应用程序的经验。
Homework: iptables prevent nmap scan and binlog
How to Repair Word File Corruption
@requestmapping注解的作用及用法
uni-ui installation
H5跳转微信公众号解决方案
[In-depth and easy-to-follow FPGA learning 15---------- Timing analysis basics]
MPI简谈
第一个独立完成的千万级项目
45. [Application of list linked list]
MySQL中substring与substr区别
C# VSCode & Rider引用命名空间快捷键
uniapp折叠框二级循环
pytorch的安装注意事项
会议OA项目待开会议、所有会议功能
SWM32系列教程6-Systick和PWM
会员生日提前了一天