fixed missing import

This commit is contained in:
byt3bl33d3r 2014-07-12 11:26:25 +02:00
parent 1165100616
commit 5c2e88cd4f

View file

@ -7,7 +7,11 @@
import sys, os import sys, os
import pefile import pefile
import zipfile import zipfile
import logging
import json
import shutil
from bdfactory import pebin, elfbin from bdfactory import pebin, elfbin
from plugins.plugin import Plugin
from tempfile import mkstemp from tempfile import mkstemp
@ -24,7 +28,15 @@ class FilePwn(Plugin):
has_opts = True has_opts = True
log_level = logging.DEBUG log_level = logging.DEBUG
desc = "Backdoor executables being sent over http using bdfactory (STILL WORK IN PROGRESS!!)" 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): def initialize(self,options):
'''Called if plugin is enabled, passed the options namespace''' '''Called if plugin is enabled, passed the options namespace'''