Selaa lähdekoodia

MembersMgmtCommAttack: Added new testcase using CAIDA TTL values

Stefan Schmidt 6 vuotta sitten
vanhempi
commit
ce97149e84
1 muutettua tiedostoa jossa 5 lisäystä ja 0 poistoa
  1. 5 0
      code/Test/test_MembersMgmtCommAttack.py

+ 5 - 0
code/Test/test_MembersMgmtCommAttack.py

@@ -2,9 +2,14 @@ import Test.ID2TAttackTest as Test
 import ID2TLib.Utility as Util
 
 sha_default = '116b6cb3f1be37e50333a4f1a2535d96b1b053a4c950655391826b43585cff2b'
+sha_caida_ttl = '175a254c0d93c045a08540a5ffe8cfcdcfa044fb9c7f3b8fbd98c304ec3427db'
 
 
 class UnitTestMembersMgmtCommAttack(Test.ID2TAttackTest):
     def test_regression(self):
         self.checksum_test([['MembersMgmtCommAttack', 'hidden_mark=True']], sha_default, seed=42,
                            pcap=Util.TEST_DIR + "reference_telnet.pcap")
+
+    def test_mgmtcomm_with_caida_ttl(self):
+        self.checksum_test([['MembersMgmtCommAttack', 'hidden_mark=True', 'ttl.from.caida=True']], sha_caida_ttl,
+                           pcap=Util.TEST_DIR + "reference_telnet.pcap")