Ejemplo n.º 1
0
    def __init__(self, properties, parent = None):
        global all_properties
        __primitive__.__init__(self, properties, all_properties, parent)
        self.ignore = True
        supported = [ "crc32", "md5", "sha1", "sha224", "sha256", "sh384",
                      "sha512" ]

        if self.get('type') not in supported:
            raise Exception('unsupported hash type requested')
Ejemplo n.º 2
0
    def __init__(self, properties, parent = None):
        global all_properties
        __primitive__.__init__(self, properties, all_properties, parent)
        self.completed = False

        self.load_primitives(properties.get('primitives'))

        lmod = importlib.import_module("logic." + self.logic[0].upper() +\
                                       self.logic[1:])
        self.logic = getattr(lmod,
                             self.logic[0].upper() + self.logic[1:])(self)
Ejemplo n.º 3
0
    def __init__(self, properties, parent=None):
        global all_properties
        __primitive__.__init__(self, properties, all_properties, parent)
        self.completed = False

        unit = Utils.read_json(Utils.getRoot() + "/units/" + self.unit +
                               ".json")
        self.load_primitives(unit.get('primitives'))

        lmod = importlib.import_module("logic." + self.logic[0].upper() +\
                                       self.logic[1:])
        self.logic = getattr(lmod,
                             self.logic[0].upper() + self.logic[1:])(self)
Ejemplo n.º 4
0
 def __init__(self, properties, parent=None):
     global all_properties
     __primitive__.__init__(self, properties, all_properties, parent)
Ejemplo n.º 5
0
 def __init__(self, properties, parent=None):
     global all_properties
     __primitive__.__init__(self, properties, all_properties, parent)
     if self.get('fuzzable'):
         self.original_value = copy.deepcopy(self.value)
         self.library_index = 0