Exemple #1
0
def test_m2crypto():
    pe = PortableExecutable("tests/files/icardres.dll")
    sig0 = pe.run()["signature"][0]
    assert sig0["organization"] == "Microsoft Corporation"
    assert sig0["sha1"] == "9e95c625d81b2ba9c72fd70275c3699613af61e3"
Exemple #2
0
 def test_magic2(self):
     pe = PortableExecutable(None)
     assert "ASCII text" in pe._get_filetype("hello world")
Exemple #3
0
 def test_magic2(self):
     pe = PortableExecutable(None)
     assert "ASCII text" in pe._get_filetype("hello world")
Exemple #4
0
def test_m2crypto():
    pe = PortableExecutable("tests/files/icardres.dll")
    sig0 = pe.run()["signature"][0]
    assert sig0["organization"] == "Microsoft Corporation"
    assert sig0["sha1"] == "9e95c625d81b2ba9c72fd70275c3699613af61e3"