Beispiel #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"
Beispiel #2
0
 def test_magic2(self):
     pe = PortableExecutable(None)
     assert "ASCII text" in pe._get_filetype("hello world")
Beispiel #3
0
 def test_magic2(self):
     pe = PortableExecutable(None)
     assert "ASCII text" in pe._get_filetype("hello world")
Beispiel #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"