Exemplo n.º 1
0
    def addSystemCredential(self, blob):
        """Adds DPAPI_SYSTEM token to the pool.

        blob is a string representing the LSA secret token

        """
        self.system = credhist.CredSystem(blob)
Exemplo n.º 2
0
 def test_parse(self):
     self.assertRaises(struct.error, credhist.CredSystem, "")
     c = credhist.CredSystem("\x01\x00\x00\x00" + "a" * 20 + "b" * 20)
     self.assertEquals(c.revision, 1)
     self.assertEquals(c.machine, "a" * 20)
     self.assertEquals(c.user, "b" * 20)