def _auth_callback(self, credentials, user_data):
for credential in credentials:
if credential[0] == libvirt.VIR_CRED_AUTHNAME:
credential[4] = self.options.esx.username
elif credential[0] == libvirt.VIR_CRED_NOECHOPROMPT:
credential[4] = self.options.esx.password
else:
raise CuckooCriticalError("ESX machinery did not recieve an object to inject a username or password into")
return 0
评论列表
文章目录