test_EternalBlue.py 780 B

123456789101112131415161718192021222324252627
  1. import unittest
  2. import unittest.mock as mock
  3. from Test.GenericTest import GenericTest
  4. from Test.Lib import test_pcap_ips
  5. # FIXME: create new hashes if new test.pcap is used
  6. sha_default = 'c115719657b597730ae46b42a05ac979e9d30dcfccfead1424321b1e3288e8b6'
  7. """
  8. CURRENT COVERAGE
  9. Name Stmts Miss Cover Missing (lines)
  10. ---------------------------------------------------------------------------
  11. Attack/EternalBlueExploit.py 246 10 96% 62, 72, 112, 119, 126-127, 133-134, 139, 266
  12. """
  13. # TODO: get 100% coverage
  14. class UnitTestEternalBlue(GenericTest):
  15. def test_default(self):
  16. # FIXME: maybe use another seed
  17. self.generic_test([['EternalBlueExploit']], sha_default)
  18. if __name__ == '__main__':
  19. unittest.main()