3
0

test_MembersMgmtCommAttack.py 725 B

123456789101112131415
  1. import Test.ID2TAttackTest as Test
  2. import ID2TLib.Utility as Util
  3. sha_default = '116b6cb3f1be37e50333a4f1a2535d96b1b053a4c950655391826b43585cff2b'
  4. sha_caida_ttl = '175a254c0d93c045a08540a5ffe8cfcdcfa044fb9c7f3b8fbd98c304ec3427db'
  5. class UnitTestMembersMgmtCommAttack(Test.ID2TAttackTest):
  6. def test_regression(self):
  7. self.checksum_test([['MembersMgmtCommAttack', 'hidden_mark=True']], sha_default, seed=42,
  8. pcap=Util.TEST_DIR + "reference_telnet.pcap")
  9. def test_mgmtcomm_with_caida_ttl(self):
  10. self.checksum_test([['MembersMgmtCommAttack', 'hidden_mark=True', 'ttl.from.caida=True']], sha_caida_ttl,
  11. pcap=Util.TEST_DIR + "reference_telnet.pcap")