'Probe all vectors to find a working system-like function.
The method run_until is not used due to the check of shell_sh
enabling for every tested vector.
Args:
self.args: The dictionary of arguments
Returns:
Status value, must be Status.RUN, Status.FAIL, or Status.IDLE.'

def setup(self):

    check_digits = str(random.randint(11111, 99999))
    args_check = {'command': ('echo    %s' % check_digits), 'stderr_redirection': ''}
    (vector_name, result) = self.vectors.find_first_result(names=[self.args.get('vector', '')], format_args=args_check, condition=(lambda result: ((self.session['shell_php']['status'] != Status.RUN) or (result and (result.rstrip() == check_digits)))))
    if ((self.session['shell_php']['status'] == Status.RUN) and result and (result.rstrip() == check_digits)):
        self.session['shell_sh']['stored_args']['vector'] = vector_name
        return Status.RUN
    else:
        return Status.FAIL
