'Adds the -oX parameter to get xml output to the command string that the
user has set.'

def processCommandString(self, username, current_path, command_string):

    self._output_file_path = os.path.join(self.data_path, ('masscan_output-%s.xml' % random.uniform(1, 10)))
    arg_match = self.xml_arg_re.match(command_string)
    if (arg_match is None):
        return re.sub('(^.*?masscan)', ('\\1    -oX    %s' % self._output_file_path), command_string)
    else:
        return re.sub(arg_match.group(1), ('-oX    %s' % self._output_file_path), command_string)
