test_Joomla.py 749 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 = '27eb51f0b0bb417eb121a874174b09cf65240bf8895d984f3158817e48f9aba2'
  7. """
  8. CURRENT COVERAGE
  9. Name Stmts Miss Cover Missing (lines)
  10. ---------------------------------------------------------------------------
  11. Attack/JoomlaRegPrivExploit.py 127 4 97% 62, 71, 116, 123
  12. """
  13. # TODO: get 100% coverage
  14. class UnitTestJoomla(GenericTest):
  15. def test_default(self):
  16. # FIXME: maybe use another seed
  17. self.generic_test([['JoomlaRegPrivExploit']], sha_default)
  18. if __name__ == '__main__':
  19. unittest.main()