首页 > 解决方案 > 为什么 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-3.xfunctionazure-functions

解决方案


这段代码如何发布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"}

和帖子不起作用


推荐阅读