Aszone\Avenger\SearchHackingEngine::validParamns PHP Method

validParamns() protected method

protected validParamns ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
    protected function validParamns(InputInterface $input, OutputInterface $output)
    {
        if (!$input->getOption('dork')) {
            $output->writeln('<error>Please, insert your dork... </error>');
            $output->writeln('<error>example: --dork="site:com inurl:/admin"</error>');
            $this->runHelp($output);
        }
        if (!$this->sanitazeValuesOfEnginers($input->getOption('eng'))) {
            $input->setOption('eng', 'google');
            $output->writeln('<info>setting --eng="google" for default... </info>');
        }
        $this->dork = $input->getOption('dork');
        $this->vp = $input->getOption('vp');
        $this->eng = $this->sanitazeValuesOfEnginers($input->getOption('eng'));
        $this->email = $input->getOption('email');
        $this->txt = $input->getOption('txt');
        $this->tor = $input->getOption('tor');
        $this->torl = $input->getOption('torl');
        $this->check = $this->sanitazeValuesOfEnginers($input->getOption('check'));
        $this->pl = $input->getOption('pl');
        $this->exploit = explode(',', $input->getOption('exploit'));
    }