From e7041c08bff99d0d08f82e1b9289ec5b658186c0 Mon Sep 17 00:00:00 2001 From: trustedsec Date: Wed, 23 Jan 2013 20:58:55 -0500 Subject: [PATCH] Updated setcore to check for python-pycrypto and warn if not installed --- src/core/setcore.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/core/setcore.py b/src/core/setcore.py index 7a3e74f8f..f8f37362b 100644 --- a/src/core/setcore.py +++ b/src/core/setcore.py @@ -17,7 +17,14 @@ import string import inspect import base64 from src.core import dictionaries -from Crypto.Cipher import AES + +# check to see if we have python-pycrypto +try: + from Crypto.Cipher import AES + +except ImportError: + print_error("The python-pycrypto python module not installed. You will loose the ability to use multi-pyinjector.") + pass # used to grab the true path for current working directory definepath = os.getcwd()