removed unuseful prints

This commit is contained in:
Bernardo Damele
2012-12-17 13:29:19 +00:00
parent ac44cf3ec0
commit 0500712a03
2 changed files with 7 additions and 7 deletions

View File

@@ -615,13 +615,15 @@ def _setMetasploit():
if not conf.msfPath:
def _(key, value):
retVal = None
try:
from _winreg import ConnectRegistry, OpenKey, QueryValueEx, HKEY_LOCAL_MACHINE
_ = ConnectRegistry(None, HKEY_LOCAL_MACHINE)
_ = OpenKey(_, key)
retVal = QueryValueEx(_, value)[0]
except Exception, ex:
print ex
except Exception:
logger.debug("unable to identify Metasploit installation path via registry key")
return retVal
conf.msfPath = _(r"SOFTWARE\Rapid7\Metasploit", "Location")