1. 程式人生 > 實用技巧 >AttributeError: module ‘cgi‘ has no attribute ‘escape‘

AttributeError: module ‘cgi‘ has no attribute ‘escape‘

kali setoolkit 克隆網站接收資料輸出時報錯,報錯如下:
在這裡插入圖片描述
解決方法:
開啟harvester.py ,修改裡面的程式碼
vim /usr/share/set/src/webattack/harvester/harvester.py
1、在import cgi下加入import html
2、在334行中將cgi.escape改成html.escape

儲存後重新執行就可以了