'This method will discard the output the shell sends, it will read it from
the xml where it expects it to be present.
NOTE: if \'debug\' is true then it is being run from a test case and the
output being sent is valid.'

def parseOutputString(self, output, debug=False):

    parser = MedusaParser(output)
    for item in parser.items:
        h_id = self.createAndAddHost(item['ip'])
        if self._isIPV4(item['ip']):
            i_id = self.createAndAddInterface(h_id, item['ip'], ipv4_address=item['ip'], hostname_resolution=item['host'])
        else:
            i_id = self.createAndAddInterface(h_id, item['ip'], ipv6_address=item['ip'], hostname_resolution=item['host'])
        port = (self.port if self.port else item['port'])
        s_id = self.createAndAddServiceToInterface(h_id, i_id, item['service'], ports=[port], protocol='tcp', status='open')
        self.createAndAddCredToService(h_id, s_id, item['user'], item['pass'])
        self.createAndAddVulnToService(h_id, s_id, 'Weak    Credentials', ('[medusa    found    the    following    credentials]\nuser:%s\npass:%s' % (item['user'], item['pass'])), severity='high')
    del parser
