Ejemplo n.º 1
0
 def test_sha1_md5decrypt(self):
     """Test SHA1 hash with md5decrypt."""
     res = scraper.md5decrypt(self.browser, sha1, 'sha1')
     assert res
Ejemplo n.º 2
0
 def test_ldap_sha1_md5decrypt(self):
     """Test LDAP SHA1 hash with md5decrypt."""
     hash = str(base64.b64decode(ldap_sha1[5:])).replace("b'", "").replace(
         "\\n'", "")
     res = scraper.md5decrypt(self.browser, hash, 'sha1')
     assert res
Ejemplo n.º 3
0
 def test_md5_md5decrypt(self):
     """Test MDA5 hash with md5decrypt."""
     res = scraper.md5decrypt(self.browser, md5, 'md5')
     assert res
Ejemplo n.º 4
0
 def test_ntlm_md5decrypt(self):
     """Test NTLM hash with md5decrypt."""
     res = scraper.md5decrypt(self.browser, ntlm, 'ntlm')
     assert res
Ejemplo n.º 5
0
 def test_sha512_md5decrypt(self):
     """Test SHA512 hash with md5decrypt."""
     res = scraper.md5decrypt(self.browser, sha512, 'sha512')
     assert res
Ejemplo n.º 6
0
 def test_sha384_md5decrypt(self):
     """Test SHA384 hash with md5decrypt."""
     res = scraper.md5decrypt(self.browser, sha384, 'sha384')
     assert res
Ejemplo n.º 7
0
 def test_sha256_md5decrypt(self):
     """Test SHA256 hash with md5decrypt."""
     res = scraper.md5decrypt(self.browser, sha256, 'sha256')
     assert res
Ejemplo n.º 8
0
 def test_ldap_md5_md5decrypt(self):
     """Test LDAP MD5 hash with md5decrypt."""
     hash = str(base64.b64decode(ldap_md5[5:])).replace("b'", "").replace(
         "\\n'", "")
     res = scraper.md5decrypt(self.browser, hash, 'md5')
     assert res == 'password'