pyjfuzz/core/pjf_external_fuzzer.py
def execute(self, obj):
        """
        Perform the actual external fuzzing, you may replace this method in order to increase performance
        """
        try:
            if self.config.stdin:
                    self.spawn(self.config.command, stdin_content=obj, stdin=True, timeout=1)
            else:
                if "@@" not in self.config.command:
                    raise PJFMissingArgument("Missing @@ filename indicator while using non-stdin fuzzing method")
                for x in self.config.command:
                    if "@@" in x:
                        self.config.command[self.config.command.index(x)] = x.replace("@@", obj)
                self.spawn(self.config.command, timeout=2)
            self.logger.debug("[{0}] - PJFExternalFuzzer successfully completed".format(time.strftime("%H:%M:%S")))
            return self._out
        except KeyboardInterrupt:
            return ""
        except Exception as e:
            raise PJFBaseException(e.message if hasattr(e, "message") else str(e))
def execute(self, obj):
        try:
            if self.config.stdin:
                    self.spawn(self.config.command, stdin_content=obj, stdin=True, timeout=1)
            else:
                if "@@" not in self.config.command:
                    raise PJFMissingArgument("Missing @@ filename indicator while using non-stdin fuzzing method")
                for x in self.config.command:
                    if "@@" in x:
                        self.config.command[self.config.command.index(x)] = x.replace("@@", obj)
                self.spawn(self.config.command, timeout=2)
            self.logger.debug("[{0}] - PJFExternalFuzzer successfully completed".format(time.strftime("%H:%M:%S")))
            return self._out
        except KeyboardInterrupt:
            return ""
        except Exception as e:
            raise PJFBaseException(e.message if hasattr(e, "message") else str(e))
def execute ( self , obj ) : try : if self . config . stdin : self . spawn ( self . config . command , stdin_content = obj , stdin = True , timeout = 1 ) else : if "@@" not in self . config . command : raise PJFMissingArgument ( "Missing @@ filename indicator while using non-stdin fuzzing method" ) for x in self . config . command : if "@@" in x : self . config . command [ self . config . command . index ( x ) ] = x . replace ( "@@" , obj ) self . spawn ( self . config . command , timeout = 2 ) self . logger . debug ( "[{0}] - PJFExternalFuzzer successfully completed" . format ( time . strftime ( "%H:%M:%S" ) ) ) return self . _out except KeyboardInterrupt : return "" except Exception as e : raise PJFBaseException ( e . message if hasattr ( e , "message" ) else str ( e ) )
Perform the actual external fuzzing, you may replace this method in order to increase performance
Perform the actual external fuzzing you may replace this method in order to increase performance