python-3.x - 为什么 wpide_save_file&filename=/ 不起作用?
问题描述
我的网站 POSTxxx.com/wp-admin/admin-ajax.php
Host: xxx.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:84.0) Gecko/20100101 Firefox/84.0
Accept: */*
Accept-Language: tr-TR,tr;q=0.8,en-US;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate, br
Referer: xxx.com/wp-admin/admin.php?page=wpide
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
X-Requested-With: XMLHttpRequest
Content-Length: 1
Origin: xxx.com
Connection: keep-alive
Cookie:
post:action=wpide_save_file&filename=/uploads/2021/01/totoyyshg.phP&_wpnonce=844da21b3a&content=getlwn
我可以在 livehttp 标头中发送数据,但 python 不满足 post 功能
我的 py 代码:
LH = {'Host': 'xxx.com',
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:84.0) Gecko/20100101 Firefox/84.0',
'Accept': '*/*',
'Accept-Language': 'tr-TR,tr;q=0.8,en-US;q=0.5,en;q=0.3',
'Accept-Encoding': 'gzip, deflate, br',
'Referer': 'xxx.com/wp-admin/admin.php?page=wpide',
'Content-Type': 'application/x-www-form-urlencoded',
'X-Requested-With': 'XMLHttpRequest',
'Content-Length':'109',
'Origin':'xxx.com',
'Connection': 'keep-alive',
'Cookie': ''
}
filj={"action":"wpide_save_file","filename":"/uploads/2021/01/totoys.phP","content":"getlwn"}
resultwya = req.post('xxx.com/wp-admin/admin-ajax.php',headers=LH,data=filj,timeout=25)
为什么不发布python?
解决方案
这段代码如何发布python代码:
wpide_save_file&filename=/uploads/2021/01/totoyyshg.phP&_wpnonce=844da21b3a&content=getlwn
my convert {"action":"wpide_save_file","filename":"/uploads/2021/01/totoys.phP","content":"getlwn"}
和帖子不起作用
推荐阅读
- typescript - 打字稿导入文本文件“错误 TS2307:找不到模块”
- java - 我应该如何将值传递给 JPQL 查询?
- c++ - 解析`int_`的X3规则然后重复等于`int_`的双精度
- php - ES:匹配布尔和模糊查询
- join - 在 presto 中加入/联合以将电子邮件保留在一列中
- sql-server - 从 SQL Server 2012 中的字符串返回最长的数字序列
- javascript - 使用 Electron/Node.js,我如何异步实现简单的顺序代码?
- android - 在android studio的viewPager中设置扩展FragmentPagerAdapter的ViewPagerAdapter的异常
- office-ui-fabric - 使用 lib-common-js 在 Jest 测试中未定义 ResponsiveMode
- javascript - MaterializeCSS datepicker:setDate 不更新视图