fix metasploit path resolution of msfconsole

This commit is contained in:
TrustedSec 2016-11-20 18:51:03 -05:00
parent d1bdb9d1a5
commit 3fe96db503
2 changed files with 6 additions and 2 deletions

View file

@ -3,7 +3,7 @@ version 7.4.2
~~~~~~~~~~~~~~~~
* define function meta_path() better
* fixed a bug in binary2teensy that would not properly identify metasploit if launcher is in /usr/bin/msfconsole
~~~~~~~~~~~~~~~~
version 7.4.1

View file

@ -35,7 +35,11 @@ ipaddr = core.grab_ipaddress()
#
# metasploit_path here
#
msf_path = core.meta_path() + "msfconsole"
msf_path = core.meta_path()
if msf_path == "": msf_path = "/usr/bin/msfconsole"
else: msf_path = msf_path + "/msfconsole"
################################################################
#