Skip to content

Instantly share code, notes, and snippets.

@sideangleside
Created February 26, 2019 17:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sideangleside/c138cf4dd69a0a5f04a9b2efe0b7e05e to your computer and use it in GitHub Desktop.
Save sideangleside/c138cf4dd69a0a5f04a9b2efe0b7e05e to your computer and use it in GitHub Desktop.
Printing out the encrypted virt-who password
else:
try:
self._values[decrypted_pass_key] = Password.decrypt(unhexlify(pwd))
pw_file = open("/tmp/password.txt","w")
pw_file.write(Password.decrypt(unhexlify(pwd)))
except (TypeError, IndexError, UnicodeDecodeError):
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment