'Run sqlmap and wait for it to finish before getting its output.
:param custom_params: A list with the extra parameters that we want to
send to sqlmap.
:return: Runs sqlmap and returns a tuple containing:
(last command run,
stdout,
stderr)'

def run_sqlmap(self, custom_params):

    process = self._run(custom_params)
    if (process is None):
        return (None, None, None)
    (self.last_stdout, self.last_stderr) = process.communicate()
    om.out.debug(('[sqlmap_wrapper]    %s' % self.last_command))
    for line in self.last_stdout.split('\n'):
        om.out.debug(('[sqlmap_wrapper]    %s' % line))
    return (self.last_command, self.last_stdout, self.last_stderr)
