metasploit 问题

metasploit 问题

我搜索了整个互联网寻找答案,但仍然没有找到,我决定卸载 metasploit,我输入了以下内容

$ cd /opt
opt$ ls
google  lol  sublime_text  tor-browser-en  wine-staging metasploit
opt$ cd metasploit
opt/metasploit$ ./uninstall

然后通常会出现卸载向导,然后当我要再次安装它时,我收到此错误

$ sudo apt-get install metasploit
Reading package lists... Done
Building dependency tree       
Reading state information... Done
metasploit is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up metasploit (4.5.2-2013031101-1raring0) ...
/var/lib/dpkg/info/metasploit.postinst: line 20: /opt/metasploit/properties.ini: No such file or directory
dpkg: error processing package metasploit (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
metasploit
E: Sub-process /usr/bin/dpkg returned an error code (1)

所以即使我尝试启动 metasploit 它也不起作用

  $ sudo service metasploit start
 /etc/init.d/metasploit: 15: exec: /opt/metasploit/ctlscript.sh: not found

有经验的人可以帮我解决这个问题吗?

答案1

卸载 Metasploit 的正确方法是先通过运行停止 Metasploit 服务./ctlscript.sh.stop,然后键入./uninstall从 Metasploit 目录运行卸载脚本。

对于您的情况,您可以通过以下方式完全删除/opt/metasploit

sudo rm -rf /opt/metasploit

相关内容