<p>这是应用程序的问题,斯巴达?。
Kali Rolling基于的Debian Stretch在PyQt4中有<a href="https://lists.debian.org/debian-devel-announce/2015/05/msg00001.html" rel="noreferrer">mothballed</a>QtWebKit。</p>
<p>最新版本不包含QtWebkit.so。</p>
<p>不幸的是,有问题的代码需要更新以使用类似于PyQt5等效模块的替代方法。</p>
<p>2016年6月2日起,可在kali bug报告网站上找到与此相关的bug报告</p>
<hr/>
<h2>可选bodge/quick n dirty fix[适用于最新版本的Kali]</h2>
<p>同时,如果它是斯巴达,而您现在需要它的功能:<br/>
apt get安装python pyside.qtwebkit<br/>
从<a href="https://github.com/SECFORCE/sparta" rel="noreferrer">https://github.com/SECFORCE/sparta</a>复制一个副本到任何合适的地方,在我的情况下是/opt/recon/sparta,这会保留系统版本,以便它可以正常更新。<br/>
编辑sparta.py</p>
<p>从第22行删除QtWebKit<br/>
将代码从第26行插入到第30行</p>
<pre><code>21 try:
22 from PyQt4 import QtGui, QtCore
23 except:
24 print "[-] Import failed. PyQt4 library not found. \nTry installing it with: apt-get install python-qt4"
25 exit()
26 try:
27 from PySide import QtWebKit
28 except:
29 print "[-] Import failed. QtWebkit library not found. \nTry installing it with: apt-get install python-pyside.qtwebkit"
30 exit()
</code></pre>
<p>编辑ui/view.py<br/>
第15行注释</p>
<pre><code>15 #from PyQt4 import QtWebKit # to show html code (help menu)
16 from PySide import QtWebKit # to show html code (help menu)
</code></pre>
<p>编辑第54行原文如下</p>
<pre><code>54 self.helpWidget.load(QUrl('./doc/help.html'))
</code></pre>
<p>应该修改为</p>
<pre><code>54 self.helpWidget.load('./doc/help.html')
</code></pre>
<p>免责声明这是一个5分钟的修复,看看项目主页的长期修复。</p>