From 5c2e88cd4f8ec23cad8fb815be3b783b8ad761c9 Mon Sep 17 00:00:00 2001 From: byt3bl33d3r Date: Sat, 12 Jul 2014 11:26:25 +0200 Subject: [PATCH] fixed missing import --- plugins/FilePwn.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/plugins/FilePwn.py b/plugins/FilePwn.py index 4194af5..4bb67f8 100644 --- a/plugins/FilePwn.py +++ b/plugins/FilePwn.py @@ -7,7 +7,11 @@ import sys, os import pefile import zipfile +import logging +import json +import shutil from bdfactory import pebin, elfbin +from plugins.plugin import Plugin from tempfile import mkstemp @@ -24,7 +28,15 @@ class FilePwn(Plugin): has_opts = True log_level = logging.DEBUG desc = "Backdoor executables being sent over http using bdfactory (STILL WORK IN PROGRESS!!)" - + + def convert_to_Bool(self, aString): + if aString.lower() == 'true': + return True + elif aString.lower() == 'false': + return False + elif aString.lower() == 'none': + return None + def initialize(self,options): '''Called if plugin is enabled, passed the options namespace'''