text: #!/usr/bin/env python
  
  from impacket.krb5.ccache import CCache
  import base64
  import random
  
  print("[+] Paste the Base64EncodedTicket from Rubeus, add a newline then Ctrl+D")
  lines = []
  try:
      while True:
          lines.append(input())
  except EOFError:
      pass
  
  ticket = ''.join([line.replace(' ','') for line in lines])
  ccache = CCache()
  ccache.fromKRBCRED(base64.b64decode(ticket.encode('ascii')))
  filename = "ticket_%d.ccache" % random.randint(0, 100000)
  print("[+] Ticket is output as %s" % filename)
  ccache.saveFile(filename)
  