当前位置:网站首页>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
边栏推荐
猜你喜欢
随机推荐
Oracle一个诡异的临时表空间不足的问题
DNS解析过程【访问网站】
asser利用蚁剑登录
神经网络(ANN)
Summary of the stock problem of state machine dynamic programming
网络常用的状态码
WebServer流程讲解(注册模块)
encrypted transmission process
[In-depth and easy-to-follow FPGA learning 15---------- Timing analysis basics]
机器学习1一回归模型(二)
ES6中 async 函数、await表达式 的基本用法
flutter 做底部的三个按键,有叠加,有填充
Steven Giesel recently published a 5-part series documenting his first experience building an application with the Uno Platform.
【深入浅出玩转FPGA学习14----------测试用例设计2】
The first level must project independently
[In-depth and easy-to-follow FPGA learning 14----------Test case design 2]
binglog日志追踪:数据备份并备份追踪
uni-ui安装
Axure轮播图
ABC 261 F - Sorting Color Balls(逆序对)