Exemple #1
0
 def testTimeIsFuzzed(self):
     data = ["Jul 18 11:43:25 localhost xentpm[8593]: The TPM is not pwned"]
     fuzz = TxtLogObfuscator(data)
     self.assertEqual([
         """Jul 18 XX:XX:XX localhost xentpm[8593]: The """
         """TPM is not pwned"""
     ], fuzz.fuzzTimes())
Exemple #2
0
 def testSingleDigitDateIsFuzzed(self):
     data = ["Aug 2 11:43:25 localhost xentpm[8593]: The TPM is not pwned"]
     fuzz = TxtLogObfuscator(data)
     self.assertEqual([
         """XXX XX 11:43:25 localhost xentpm[8593]: The """
         """TPM is not pwned"""
     ], fuzz.fuzzDates())
Exemple #3
0
 def testThreadIsFuzzed(self):
     data = ["Jul 18 11:43:25 localhost xentpm[8593]: The TPM is not pwned"]
     fuzz = TxtLogObfuscator(data)
     self.assertEqual([
         """Jul 18 11:43:25 localhost xentpm[XXXX]: The """
         """TPM is not pwned"""
     ], fuzz.fuzzThreadMarker())
Exemple #4
0
 def testTimeIsFuzzed(self):
     data = ["Jul 18 11:43:25 localhost xentpm[8593]: The TPM is not pwned"]
     fuzz = TxtLogObfuscator(data)
     self.assertEqual(["""Jul 18 XX:XX:XX localhost xentpm[8593]: The """
                       """TPM is not pwned"""], fuzz.fuzzTimes())
Exemple #5
0
 def testSingleDigitDateIsFuzzed(self):
     data = ["Aug 2 11:43:25 localhost xentpm[8593]: The TPM is not pwned"]
     fuzz = TxtLogObfuscator(data)
     self.assertEqual(["""XXX XX 11:43:25 localhost xentpm[8593]: The """
                       """TPM is not pwned"""], fuzz.fuzzDates())
Exemple #6
0
 def testThreadIsFuzzed(self):
     data = ["Jul 18 11:43:25 localhost xentpm[8593]: The TPM is not pwned"]
     fuzz = TxtLogObfuscator(data)
     self.assertEqual(["""Jul 18 11:43:25 localhost xentpm[XXXX]: The """
                       """TPM is not pwned"""], fuzz.fuzzThreadMarker())