diff --git a/README.md b/README.md index 3cb9253..a916ba1 100644 --- a/README.md +++ b/README.md @@ -63,6 +63,11 @@ In the above example, the directories `cars` and `mlos` are excluded from the se FivemCipherFinder logs the found ciphers in a file named `CipherLog-HH-MM-SS.txt`, making it easy to review the results. +**Keep in mind** +- The CipherFinder can't find 100% of maybe placed ciphers. +- Should you use a Code Formatter, it's possible when you use the Deletion function, that your scripts can fail to start bc of syntax errors. + + ## Troubleshooting If you encounter any issues with FivemCipherFinder, here are some troubleshooting steps you can follow: diff --git a/big.model b/big.model deleted file mode 100644 index be28fda..0000000 --- a/big.model +++ /dev/null @@ -1 +0,0 @@ -{"charset": "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", "ngram_size": 2, "counts": {"a": {"a": 1162, "b": 8940, "c": 17954, "d": 20101, "e": 1016, "f": 4796, "g": 8259, "h": 1263, "i": 16189, "j": 463, "k": 4547, "l": 33583, "m": 10869, "n": 80994, "o": 655, "p": 9287, "q": 188, "r": 40916, "s": 40996, "t": 58739, "u": 4054, "v": 8927, "w": 5205, "x": 560, "y": 10706, "z": 534, "A": 145, "B": 84, "C": 125, "D": 166, "E": 33, "F": 142, "G": 77, "H": 84, "I": 213, "J": 21, "K": 49, "L": 43, "M": 195, "N": 92, "O": 40, "P": 237, "Q": 10, "R": 133, "S": 166, "T": 234, "U": 23, "V": 32, "W": 92, "X": 11, "Y": 33, "Z": 13}, "b": {"a": 5069, "b": 459, "c": 182, "d": 151, "e": 21707, "f": 25, "g": 14, "h": 40, "i": 2511, "j": 493, "k": 11, "l": 8545, "m": 189, "n": 86, "o": 7189, "p": 27, "q": 11, "r": 4184, "s": 1683, "t": 729, "u": 7093, "v": 138, "w": 60, "x": 10, "y": 6685, "z": 10, "A": 19, "B": 11, "C": 15, "D": 16, "E": 15, "F": 11, "G": 11, "H": 14, "I": 21, "J": 10, "K": 10, "L": 11, "M": 14, "N": 11, "O": 11, "P": 15, "Q": 10, "R": 13, "S": 12, "T": 25, "U": 11, "V": 10, "W": 15, "X": 10, "Y": 10, "Z": 10}, "c": {"a": 17333, "b": 121, "c": 3239, "d": 186, "e": 25355, "f": 138, "g": 60, "h": 20424, "i": 7672, "j": 21, "k": 5059, "l": 5203, "m": 94, "n": 69, "o": 26665, "p": 161, "q": 252, "r": 4874, "s": 673, "t": 13274, "u": 5715, "v": 45, "w": 159, "x": 10, "y": 1365, "z": 23, "A": 42, "B": 24, "C": 87, "D": 30, "E": 14, "F": 28, "G": 20, "H": 36, "I": 30, "J": 12, "K": 49, "L": 20, "M": 24, "N": 27, "O": 28, "P": 30, "Q": 11, "R": 21, "S": 21, "T": 45, "U": 16, "V": 10, "W": 18, "X": 10, "Y": 12, "Z": 11}, "d": {"a": 17910, "b": 8127, "c": 3135, "d": 4524, "e": 29234, "f": 4490, "g": 2437, "h": 8426, "i": 24346, "j": 663, "k": 412, "l": 4307, "m": 3688, "n": 4691, "o": 14478, "p": 2799, "q": 230, "r": 7394, "s": 11784, "t": 21680, "u": 4985, "v": 1332, "w": 6241, "x": 11, "y": 2841, "z": 24, "A": 720, "B": 524, "C": 328, "D": 407, "E": 145, "F": 243, "G": 189, "H": 672, "I": 1439, "J": 97, "K": 175, "L": 168, "M": 502, "N": 735, "O": 187, "P": 1154, "Q": 11, "R": 331, "S": 1087, "T": 946, "U": 100, "V": 129, "W": 449, "X": 15, "Y": 130, "Z": 30}, "e": {"a": 45146, "b": 8292, "c": 25648, "d": 61505, "e": 19282, "f": 14724, "g": 7750, "h": 10910, "i": 16307, "j": 757, "k": 1505, "l": 25061, "m": 21108, "n": 59327, "o": 17248, "p": 15426, "q": 1639, "r": 90222, "s": 64863, "t": 33539, "u": 3339, "v": 11339, "w": 17755, "x": 6947, "y": 8098, "z": 282, "A": 2274, "B": 1003, "C": 1053, "D": 542, "E": 1015, "F": 1177, "G": 489, "H": 788, "I": 1721, "J": 137, "K": 305, "L": 305, "M": 658, "N": 695, "O": 374, "P": 1086, "Q": 31, "R": 1025, "S": 1355, "T": 1650, "U": 516, "V": 386, "W": 757, "X": 64, "Y": 180, "Z": 22}, "f": {"a": 11168, "b": 969, "c": 1394, "d": 702, "e": 10314, "f": 7152, "g": 581, "h": 2603, "i": 11018, "j": 137, "k": 70, "l": 3443, "m": 1172, "n": 540, "o": 17857, "p": 1019, "q": 29, "r": 9769, "s": 2042, "t": 19878, "u": 3750, "v": 269, "w": 1356, "x": 10, "y": 765, "z": 18, "A": 385, "B": 287, "C": 315, "D": 99, "E": 176, "F": 163, "G": 138, "H": 168, "I": 305, "J": 134, "K": 115, "L": 152, "M": 315, "N": 290, "O": 102, "P": 339, "Q": 13, "R": 194, "S": 359, "T": 216, "U": 52, "V": 64, "W": 146, "X": 13, "Y": 25, "Z": 13}, "g": {"a": 10565, "b": 1241, "c": 837, "d": 729, "e": 12802, "f": 1455, "g": 1233, "h": 12495, "i": 7265, "j": 101, "k": 59, "l": 3736, "m": 1042, "n": 2633, "o": 7546, "p": 837, "q": 61, "r": 7571, "s": 3187, "t": 7692, "u": 3131, "v": 155, "w": 1615, "x": 11, "y": 430, "z": 20, "A": 164, "B": 129, "C": 91, "D": 57, "E": 47, "F": 72, "G": 58, "H": 148, "I": 282, "J": 33, "K": 28, "L": 78, "M": 123, "N": 136, "O": 61, "P": 213, "Q": 14, "R": 63, "S": 165, "T": 289, "U": 28, "V": 21, "W": 108, "X": 11, "Y": 44, "Z": 11}, "h": {"a": 47131, "b": 741, "c": 957, "d": 642, "e": 138176, "f": 774, "g": 464, "h": 2548, "i": 40469, "j": 50, "k": 146, "l": 803, "m": 1434, "n": 666, "o": 22759, "p": 687, "q": 48, "r": 3474, "s": 2109, "t": 11467, "u": 2847, "v": 181, "w": 1644, "x": 10, "y": 2246, "z": 13, "A": 199, "B": 120, "C": 205, "D": 93, "E": 97, "F": 62, "G": 93, "H": 122, "I": 375, "J": 34, "K": 42, "L": 39, "M": 121, "N": 130, "O": 55, "P": 207, "Q": 14, "R": 97, "S": 143, "T": 255, "U": 22, "V": 35, "W": 108, "X": 10, "Y": 29, "Z": 15}, "i": {"a": 9009, "b": 3263, "c": 22405, "d": 14515, "e": 15299, "f": 6646, "g": 9004, "h": 85, "i": 97, "j": 12, "k": 1938, "l": 16083, "m": 15056, "n": 95350, "o": 25233, "p": 2653, "q": 143, "r": 11957, "s": 46613, "t": 42319, "u": 544, "v": 7775, "w": 147, "x": 708, "y": 13, "z": 1468, "A": 20, "B": 20, "C": 28, "D": 27, "E": 14, "F": 30, "G": 11, "H": 22, "I": 27, "J": 10, "K": 13, "L": 12, "M": 19, "N": 17, "O": 12, "P": 15, "Q": 11, "R": 21, "S": 25, "T": 33, "U": 10, "V": 29, "W": 21, "X": 10, "Y": 13, "Z": 12}, "j": {"a": 305, "b": 10, "c": 11, "d": 10, "e": 1355, "f": 10, "g": 10, "h": 10, "i": 25, "j": 10, "k": 10, "l": 10, "m": 10, "n": 10, "o": 1582, "p": 10, "q": 10, "r": 11, "s": 10, "t": 10, "u": 1891, "v": 10, "w": 11, "x": 10, "y": 10, "z": 10, "A": 10, "B": 10, "C": 10, "D": 10, "E": 10, "F": 10, "G": 10, "H": 10, "I": 10, "J": 10, "K": 10, "L": 10, "M": 10, "N": 11, "O": 10, "P": 11, "Q": 10, "R": 10, "S": 10, "T": 11, "U": 10, "V": 10, "W": 10, "X": 10, "Y": 10, "Z": 10}, "k": {"a": 1835, "b": 271, "c": 217, "d": 131, "e": 9574, "f": 315, "g": 75, "h": 1305, "i": 5623, "j": 29, "k": 28, "l": 723, "m": 238, "n": 3083, "o": 1550, "p": 175, "q": 23, "r": 180, "s": 1942, "t": 1073, "u": 244, "v": 45, "w": 553, "x": 10, "y": 438, "z": 10, "A": 55, "B": 39, "C": 39, "D": 25, "E": 15, "F": 31, "G": 45, "H": 168, "I": 140, "J": 13, "K": 14, "L": 20, "M": 34, "N": 36, "O": 29, "P": 54, "Q": 10, "R": 31, "S": 48, "T": 127, "U": 12, "V": 19, "W": 52, "X": 10, "Y": 26, "Z": 11}, "l": {"a": 22409, "b": 1474, "c": 1843, "d": 11939, "e": 32940, "f": 4037, "g": 746, "h": 1160, "i": 22946, "j": 111, "k": 1494, "l": 25367, "m": 2129, "n": 791, "o": 17950, "p": 1660, "q": 86, "r": 1381, "s": 5632, "t": 7478, "u": 4449, "v": 1426, "w": 2047, "x": 10, "y": 19227, "z": 39, "A": 195, "B": 95, "C": 137, "D": 70, "E": 72, "F": 104, "G": 60, "H": 157, "I": 426, "J": 39, "K": 27, "L": 63, "M": 118, "N": 77, "O": 48, "P": 178, "Q": 13, "R": 87, "S": 175, "T": 250, "U": 22, "V": 55, "W": 187, "X": 10, "Y": 27, "Z": 13}, "m": {"a": 22099, "b": 3726, "c": 392, "d": 290, "e": 31697, "f": 706, "g": 193, "h": 1069, "i": 11029, "j": 36, "k": 42, "l": 476, "m": 3553, "n": 666, "o": 13546, "p": 8637, "q": 29, "r": 301, "s": 4505, "t": 3947, "u": 3890, "v": 108, "w": 1220, "x": 10, "y": 3884, "z": 11, "A": 207, "B": 141, "C": 69, "D": 69, "E": 47, "F": 60, "G": 42, "H": 249, "I": 354, "J": 30, "K": 49, "L": 74, "M": 149, "N": 123, "O": 77, "P": 211, "Q": 11, "R": 76, "S": 136, "T": 372, "U": 27, "V": 44, "W": 123, "X": 10, "Y": 42, "Z": 11}, "n": {"a": 20659, "b": 2867, "c": 18809, "d": 64573, "e": 30356, "f": 5293, "g": 44288, "h": 5175, "i": 17452, "j": 792, "k": 2822, "l": 4632, "m": 2734, "n": 4025, "o": 26556, "p": 1921, "q": 477, "r": 1656, "s": 20866, "t": 55105, "u": 3460, "v": 2012, "w": 4858, "x": 212, "y": 4302, "z": 60, "A": 728, "B": 317, "C": 306, "D": 225, "E": 273, "F": 479, "G": 166, "H": 417, "I": 1052, "J": 152, "K": 94, "L": 143, "M": 529, "N": 335, "O": 207, "P": 579, "Q": 23, "R": 273, "S": 442, "T": 962, "U": 51, "V": 105, "W": 335, "X": 14, "Y": 84, "Z": 16}, "o": {"a": 5545, "b": 4746, "c": 6767, "d": 7970, "e": 2158, "f": 44409, "g": 2851, "h": 4165, "i": 5590, "j": 457, "k": 4838, "l": 16155, "m": 24542, "n": 64681, "o": 12767, "p": 8518, "q": 104, "r": 44780, "s": 16057, "t": 24766, "u": 42249, "v": 11214, "w": 18356, "x": 479, "y": 2271, "z": 168, "A": 193, "B": 164, "C": 131, "D": 104, "E": 76, "F": 123, "G": 93, "H": 96, "I": 320, "J": 31, "K": 93, "L": 63, "M": 227, "N": 189, "O": 48, "P": 413, "Q": 11, "R": 156, "S": 162, "T": 168, "U": 17, "V": 64, "W": 81, "X": 11, "Y": 45, "Z": 20}, "p": {"a": 11647, "b": 239, "c": 246, "d": 74, "e": 16431, "f": 260, "g": 61, "h": 2655, "i": 5213, "j": 33, "k": 47, "l": 8956, "m": 277, "n": 91, "o": 11880, "p": 6089, "q": 19, "r": 13223, "s": 2287, "t": 4181, "u": 3898, "v": 23, "w": 372, "x": 10, "y": 697, "z": 10, "A": 79, "B": 29, "C": 31, "D": 19, "E": 39, "F": 36, "G": 17, "H": 44, "I": 74, "J": 17, "K": 13, "L": 16, "M": 28, "N": 26, "O": 36, "P": 28, "Q": 10, "R": 23, "S": 34, "T": 84, "U": 11, "V": 12, "W": 35, "X": 12, "Y": 16, "Z": 10}, "q": {"a": 10, "b": 10, "c": 10, "d": 10, "e": 10, "f": 10, "g": 10, "h": 10, "i": 10, "j": 10, "k": 10, "l": 10, "m": 10, "n": 10, "o": 11, "p": 11, "q": 10, "r": 12, "s": 11, "t": 10, "u": 4426, "v": 10, "w": 10, "x": 10, "y": 10, "z": 10, "A": 10, "B": 10, "C": 10, "D": 10, "E": 10, "F": 10, "G": 10, "H": 10, "I": 10, "J": 10, "K": 10, "L": 10, "M": 10, "N": 10, "O": 10, "P": 10, "Q": 10, "R": 10, "S": 10, "T": 11, "U": 10, "V": 10, "W": 10, "X": 10, "Y": 10, "Z": 10}, "r": {"a": 29197, "b": 2704, "c": 5953, "d": 8506, "e": 73484, "f": 3667, "g": 4541, "h": 3944, "i": 30893, "j": 146, "k": 2513, "l": 4051, "m": 8900, "n": 6781, "o": 32255, "p": 2947, "q": 114, "r": 8982, "s": 19875, "t": 19965, "u": 5144, "v": 2592, "w": 3543, "x": 13, "y": 12015, "z": 105, "A": 490, "B": 247, "C": 178, "D": 125, "E": 122, "F": 145, "G": 136, "H": 443, "I": 646, "J": 83, "K": 94, "L": 103, "M": 314, "N": 231, "O": 121, "P": 348, "Q": 13, "R": 162, "S": 365, "T": 624, "U": 38, "V": 54, "W": 302, "X": 24, "Y": 64, "Z": 16}, "s": {"a": 30379, "b": 4706, "c": 9020, "d": 3048, "e": 38911, "f": 5532, "g": 1586, "h": 21428, "i": 27643, "j": 315, "k": 3714, "l": 5263, "m": 6509, "n": 3654, "o": 27677, "p": 9609, "q": 581, "r": 2650, "s": 26502, "t": 49807, "u": 13227, "v": 923, "w": 9204, "x": 13, "y": 2197, "z": 23, "A": 756, "B": 412, "C": 298, "D": 267, "E": 171, "F": 251, "G": 138, "H": 562, "I": 1593, "J": 105, "K": 77, "L": 145, "M": 901, "N": 293, "O": 248, "P": 430, "Q": 19, "R": 215, "S": 566, "T": 1794, "U": 59, "V": 100, "W": 466, "X": 38, "Y": 110, "Z": 16}, "t": {"a": 28134, "b": 3582, "c": 3747, "d": 2250, "e": 44165, "f": 3218, "g": 968, "h": 143750, "i": 49233, "j": 196, "k": 507, "l": 7141, "m": 3857, "n": 1721, "o": 51180, "p": 1899, "q": 144, "r": 15312, "s": 16128, "t": 22458, "u": 10151, "v": 371, "w": 9265, "x": 18, "y": 7794, "z": 162, "A": 603, "B": 505, "C": 282, "D": 189, "E": 110, "F": 156, "G": 341, "H": 461, "I": 1662, "J": 82, "K": 139, "L": 146, "M": 366, "N": 387, "O": 173, "P": 688, "Q": 12, "R": 279, "S": 432, "T": 911, "U": 41, "V": 76, "W": 399, "X": 10, "Y": 108, "Z": 27}, "u": {"a": 4098, "b": 3395, "c": 5664, "d": 2716, "e": 5223, "f": 1022, "g": 5801, "h": 496, "i": 3406, "j": 19, "k": 539, "l": 14496, "m": 4877, "n": 16310, "o": 411, "p": 6303, "q": 22, "r": 20624, "s": 19715, "t": 19727, "u": 64, "v": 163, "w": 562, "x": 92, "y": 119, "z": 714, "A": 41, "B": 18, "C": 27, "D": 21, "E": 10, "F": 14, "G": 20, "H": 33, "I": 95, "J": 16, "K": 20, "L": 20, "M": 39, "N": 20, "O": 17, "P": 31, "Q": 10, "R": 14, "S": 22, "T": 51, "U": 10, "V": 13, "W": 47, "X": 10, "Y": 38, "Z": 10}, "v": {"a": 4275, "b": 79, "c": 78, "d": 65, "e": 30740, "f": 78, "g": 63, "h": 217, "i": 8610, "j": 16, "k": 33, "l": 275, "m": 43, "n": 580, "o": 3071, "p": 47, "q": 13, "r": 202, "s": 811, "t": 193, "u": 105, "v": 12, "w": 389, "x": 10, "y": 253, "z": 10, "A": 40, "B": 19, "C": 19, "D": 29, "E": 12, "F": 11, "G": 15, "H": 25, "I": 40, "J": 11, "K": 17, "L": 14, "M": 16, "N": 20, "O": 15, "P": 25, "Q": 10, "R": 17, "S": 15, "T": 29, "U": 10, "V": 14, "W": 23, "X": 10, "Y": 16, "Z": 11}, "w": {"a": 20657, "b": 432, "c": 438, "d": 837, "e": 13748, "f": 449, "g": 182, "h": 17734, "i": 17019, "j": 36, "k": 116, "l": 646, "m": 413, "n": 4196, "o": 8341, "p": 202, "q": 43, "r": 1185, "s": 2111, "t": 1867, "u": 168, "v": 75, "w": 971, "x": 11, "y": 270, "z": 10, "A": 92, "B": 66, "C": 41, "D": 38, "E": 109, "F": 44, "G": 24, "H": 92, "I": 278, "J": 68, "K": 22, "L": 24, "M": 69, "N": 68, "O": 58, "P": 84, "Q": 10, "R": 36, "S": 61, "T": 126, "U": 14, "V": 13, "W": 84, "X": 11, "Y": 194, "Z": 15}, "x": {"a": 1109, "b": 27, "c": 1315, "d": 35, "e": 853, "f": 44, "g": 14, "h": 169, "i": 1119, "j": 12, "k": 10, "l": 30, "m": 35, "n": 19, "o": 220, "p": 2234, "q": 17, "r": 26, "s": 57, "t": 1606, "u": 133, "v": 18, "w": 71, "x": 10, "y": 70, "z": 10, "A": 15, "B": 11, "C": 15, "D": 11, "E": 11, "F": 13, "G": 11, "H": 12, "I": 24, "J": 13, "K": 15, "L": 11, "M": 15, "N": 16, "O": 11, "P": 17, "Q": 10, "R": 14, "S": 13, "T": 24, "U": 10, "V": 11, "W": 12, "X": 10, "Y": 11, "Z": 10}, "y": {"a": 9218, "b": 3429, "c": 2581, "d": 2432, "e": 5148, "f": 2506, "g": 976, "h": 2733, "i": 4729, "j": 159, "k": 275, "l": 1956, "m": 2611, "n": 1146, "o": 12036, "p": 2407, "q": 111, "r": 1794, "s": 7375, "t": 8667, "u": 612, "v": 295, "w": 3769, "x": 37, "y": 386, "z": 40, "A": 418, "B": 237, "C": 185, "D": 126, "E": 82, "F": 142, "G": 135, "H": 317, "I": 699, "J": 66, "K": 58, "L": 95, "M": 159, "N": 196, "O": 111, "P": 243, "Q": 12, "R": 116, "S": 316, "T": 625, "U": 53, "V": 33, "W": 240, "X": 11, "Y": 94, "Z": 11}, "z": {"a": 320, "b": 16, "c": 14, "d": 33, "e": 1590, "f": 15, "g": 11, "h": 125, "i": 390, "j": 10, "k": 14, "l": 87, "m": 75, "n": 12, "o": 715, "p": 12, "q": 10, "r": 13, "s": 20, "t": 24, "u": 170, "v": 15, "w": 22, "x": 10, "y": 42, "z": 93, "A": 10, "B": 12, "C": 12, "D": 11, "E": 10, "F": 12, "G": 11, "H": 11, "I": 13, "J": 10, "K": 10, "L": 10, "M": 11, "N": 13, "O": 13, "P": 11, "Q": 10, "R": 10, "S": 10, "T": 14, "U": 10, "V": 10, "W": 21, "X": 10, "Y": 10, "Z": 10}, "A": {"a": 18, "b": 192, "c": 329, "d": 246, "e": 11, "f": 478, "g": 146, "h": 246, "i": 28, "j": 18, "k": 21, "l": 1119, "m": 1334, "n": 3653, "o": 15, "p": 175, "q": 13, "r": 523, "s": 825, "t": 633, "u": 355, "v": 37, "w": 56, "x": 22, "y": 19, "z": 13, "A": 21, "B": 63, "C": 100, "D": 66, "E": 19, "F": 41, "G": 56, "H": 25, "I": 48, "J": 11, "K": 14, "L": 168, "M": 77, "N": 329, "O": 14, "P": 460, "Q": 11, "R": 215, "S": 105, "T": 182, "U": 17, "V": 25, "W": 15, "X": 13, "Y": 21, "Z": 12}, "B": {"a": 716, "b": 10, "c": 11, "d": 11, "e": 922, "f": 10, "g": 10, "h": 10, "i": 167, "j": 10, "k": 10, "l": 77, "m": 10, "n": 11, "o": 1371, "p": 10, "q": 10, "r": 648, "s": 13, "t": 10, "u": 1544, "v": 10, "w": 14, "x": 10, "y": 231, "z": 10, "A": 40, "B": 16, "C": 20, "D": 11, "E": 81, "F": 16, "G": 13, "H": 18, "I": 35, "J": 10, "K": 10, "L": 44, "M": 19, "N": 12, "O": 74, "P": 13, "Q": 10, "R": 28, "S": 16, "T": 12, "U": 43, "V": 10, "W": 11, "X": 10, "Y": 24, "Z": 10}, "C": {"a": 841, "b": 15, "c": 10, "d": 10, "e": 96, "f": 14, "g": 10, "h": 602, "i": 207, "j": 10, "k": 10, "l": 318, "m": 10, "n": 10, "o": 2666, "p": 10, "q": 10, "r": 127, "s": 10, "t": 11, "u": 104, "v": 10, "w": 11, "x": 10, "y": 48, "z": 24, "A": 108, "B": 15, "C": 24, "D": 23, "E": 85, "F": 13, "G": 11, "H": 488, "I": 64, "J": 12, "K": 30, "L": 67, "M": 15, "N": 10, "O": 124, "P": 13, "Q": 12, "R": 29, "S": 29, "T": 142, "U": 33, "V": 10, "W": 14, "X": 10, "Y": 34, "Z": 11}, "D": {"a": 263, "b": 10, "c": 10, "d": 10, "e": 1189, "f": 10, "g": 10, "h": 11, "i": 375, "j": 10, "k": 10, "l": 10, "m": 141, "n": 17, "o": 953, "p": 10, "q": 10, "r": 232, "s": 11, "t": 10, "u": 285, "v": 11, "w": 17, "x": 10, "y": 13, "z": 10, "A": 46, "B": 16, "C": 24, "D": 25, "E": 130, "F": 17, "G": 16, "H": 16, "I": 135, "J": 13, "K": 10, "L": 23, "M": 23, "N": 18, "O": 49, "P": 24, "Q": 10, "R": 29, "S": 55, "T": 66, "U": 37, "V": 31, "W": 31, "X": 10, "Y": 10, "Z": 10}, "E": {"a": 221, "b": 14, "c": 62, "d": 72, "e": 11, "f": 30, "g": 24, "h": 72, "i": 29, "j": 10, "k": 13, "l": 157, "m": 795, "n": 648, "o": 16, "p": 50, "q": 15, "r": 93, "s": 40, "t": 25, "u": 267, "v": 383, "w": 14, "x": 199, "y": 30, "z": 12, "A": 146, "B": 67, "C": 156, "D": 122, "E": 57, "F": 58, "G": 33, "H": 19, "I": 69, "J": 13, "K": 11, "L": 75, "M": 90, "N": 248, "O": 75, "P": 80, "Q": 14, "R": 732, "S": 314, "T": 76, "U": 40, "V": 64, "W": 62, "X": 41, "Y": 25, "Z": 11}, "F": {"a": 267, "b": 10, "c": 10, "d": 10, "e": 381, "f": 11, "g": 10, "h": 13, "i": 487, "j": 10, "k": 10, "l": 70, "m": 10, "n": 10, "o": 636, "p": 10, "q": 10, "r": 2015, "s": 10, "t": 19, "u": 58, "v": 10, "w": 12, "x": 10, "y": 10, "z": 10, "A": 39, "B": 20, "C": 23, "D": 16, "E": 47, "F": 43, "G": 18, "H": 14, "I": 215, "J": 16, "K": 10, "L": 32, "M": 21, "N": 17, "O": 68, "P": 24, "Q": 10, "R": 36, "S": 24, "T": 94, "U": 19, "V": 11, "W": 21, "X": 10, "Y": 20, "Z": 10}, "G": {"a": 165, "b": 10, "c": 10, "d": 11, "e": 871, "f": 10, "g": 10, "h": 12, "i": 88, "j": 10, "k": 10, "l": 67, "m": 10, "n": 10, "o": 737, "p": 10, "q": 10, "r": 421, "s": 12, "t": 26, "u": 373, "v": 10, "w": 15, "x": 10, "y": 10, "z": 11, "A": 34, "B": 29, "C": 43, "D": 17, "E": 89, "F": 17, "G": 19, "H": 34, "I": 38, "J": 10, "K": 10, "L": 43, "M": 28, "N": 21, "O": 34, "P": 24, "Q": 10, "R": 76, "S": 36, "T": 41, "U": 48, "V": 12, "W": 11, "X": 10, "Y": 13, "Z": 12}, "H": {"a": 879, "b": 10, "c": 10, "d": 10, "e": 3027, "f": 13, "g": 10, "h": 11, "i": 858, "j": 10, "k": 10, "l": 10, "m": 20, "n": 10, "o": 1287, "p": 10, "q": 10, "r": 10, "s": 10, "t": 10, "u": 218, "v": 10, "w": 10, "x": 10, "y": 51, "z": 10, "A": 492, "B": 15, "C": 14, "D": 15, "E": 341, "F": 14, "G": 14, "H": 18, "I": 81, "J": 13, "K": 11, "L": 18, "M": 18, "N": 19, "O": 51, "P": 16, "Q": 10, "R": 27, "S": 25, "T": 27, "U": 20, "V": 17, "W": 16, "X": 10, "Y": 15, "Z": 10}, "I": {"a": 847, "b": 168, "c": 561, "d": 571, "e": 93, "f": 909, "g": 128, "h": 1063, "i": 48, "j": 29, "k": 269, "l": 845, "m": 508, "n": 2778, "o": 160, "p": 139, "q": 22, "r": 263, "s": 1099, "t": 2743, "u": 77, "v": 161, "w": 865, "x": 10, "y": 20, "z": 10, "A": 100, "B": 36, "C": 212, "D": 47, "E": 95, "F": 37, "G": 206, "H": 15, "I": 592, "J": 12, "K": 10, "L": 84, "M": 42, "N": 270, "O": 220, "P": 31, "Q": 10, "R": 57, "S": 181, "T": 201, "U": 14, "V": 138, "W": 22, "X": 69, "Y": 13, "Z": 17}, "J": {"a": 339, "b": 10, "c": 10, "d": 11, "e": 249, "f": 11, "g": 10, "h": 10, "i": 12, "j": 10, "k": 10, "l": 10, "m": 10, "n": 10, "o": 283, "p": 10, "q": 10, "r": 11, "s": 10, "t": 10, "u": 329, "v": 10, "w": 10, "x": 10, "y": 10, "z": 10, "A": 21, "B": 20, "C": 16, "D": 11, "E": 44, "F": 16, "G": 14, "H": 14, "I": 10, "J": 10, "K": 14, "L": 11, "M": 13, "N": 10, "O": 23, "P": 11, "Q": 12, "R": 14, "S": 17, "T": 19, "U": 31, "V": 10, "W": 22, "X": 10, "Y": 10, "Z": 10}, "K": {"a": 250, "b": 12, "c": 11, "d": 10, "e": 107, "f": 11, "g": 10, "h": 20, "i": 250, "j": 10, "k": 10, "l": 50, "m": 10, "n": 76, "o": 114, "p": 10, "q": 10, "r": 83, "s": 11, "t": 11, "u": 670, "v": 10, "w": 12, "x": 10, "y": 11, "z": 10, "A": 13, "B": 10, "C": 17, "D": 10, "E": 16, "F": 14, "G": 10, "H": 20, "I": 21, "J": 10, "K": 22, "L": 12, "M": 12, "N": 13, "O": 16, "P": 13, "Q": 10, "R": 10, "S": 25, "T": 17, "U": 10, "V": 10, "W": 12, "X": 10, "Y": 10, "Z": 10}, "L": {"a": 427, "b": 10, "c": 10, "d": 10, "e": 445, "f": 10, "g": 10, "h": 11, "i": 442, "j": 10, "k": 10, "l": 19, "m": 10, "n": 10, "o": 607, "p": 10, "q": 10, "r": 14, "s": 10, "t": 10, "u": 47, "v": 14, "w": 10, "x": 10, "y": 71, "z": 10, "A": 105, "B": 24, "C": 23, "D": 45, "E": 113, "F": 13, "G": 18, "H": 14, "I": 172, "J": 12, "K": 11, "L": 62, "M": 20, "N": 17, "O": 83, "P": 47, "Q": 10, "R": 18, "S": 44, "T": 27, "U": 43, "V": 15, "W": 20, "X": 10, "Y": 25, "Z": 10}, "M": {"a": 2286, "b": 10, "c": 114, "d": 16, "e": 389, "f": 10, "g": 10, "h": 10, "i": 762, "j": 10, "k": 10, "l": 11, "m": 11, "n": 10, "o": 1351, "p": 10, "q": 10, "r": 423, "s": 10, "t": 11, "u": 205, "v": 10, "w": 10, "x": 10, "y": 287, "z": 10, "A": 106, "B": 38, "C": 16, "D": 12, "E": 116, "F": 15, "G": 10, "H": 13, "I": 69, "J": 12, "K": 12, "L": 13, "M": 39, "N": 15, "O": 57, "P": 41, "Q": 10, "R": 16, "S": 26, "T": 13, "U": 17, "V": 11, "W": 11, "X": 10, "Y": 17, "Z": 10}, "N": {"a": 2095, "b": 12, "c": 10, "d": 10, "e": 935, "f": 10, "g": 10, "h": 10, "i": 733, "j": 10, "k": 10, "l": 12, "m": 10, "n": 11, "o": 1482, "p": 10, "q": 10, "r": 11, "s": 11, "t": 10, "u": 38, "v": 10, "w": 10, "x": 10, "y": 10, "z": 10, "A": 120, "B": 55, "C": 70, "D": 266, "E": 120, "F": 36, "G": 75, "H": 18, "I": 104, "J": 30, "K": 12, "L": 13, "M": 22, "N": 32, "O": 83, "P": 26, "Q": 10, "R": 27, "S": 111, "T": 202, "U": 22, "V": 14, "W": 16, "X": 10, "Y": 57, "Z": 10}, "O": {"a": 17, "b": 31, "c": 87, "d": 23, "e": 15, "f": 148, "g": 34, "h": 498, "i": 17, "j": 11, "k": 26, "l": 123, "m": 13, "n": 1078, "o": 22, "p": 96, "q": 10, "r": 261, "s": 126, "t": 123, "u": 141, "v": 27, "w": 33, "x": 20, "y": 11, "z": 14, "A": 20, "B": 18, "C": 44, "D": 34, "E": 12, "F": 218, "G": 42, "H": 18, "I": 23, "J": 39, "K": 46, "L": 131, "M": 65, "N": 354, "O": 73, "P": 42, "Q": 10, "R": 174, "S": 45, "T": 57, "U": 107, "V": 30, "W": 38, "X": 11, "Y": 23, "Z": 10}, "P": {"a": 806, "b": 11, "c": 10, "d": 10, "e": 986, "f": 58, "g": 10, "h": 172, "i": 2054, "j": 10, "k": 10, "l": 185, "m": 10, "n": 19, "o": 435, "p": 10, "q": 10, "r": 3285, "s": 18, "t": 12, "u": 156, "v": 10, "w": 13, "x": 10, "y": 29, "z": 10, "A": 75, "B": 11, "C": 10, "D": 13, "E": 47, "F": 13, "G": 17, "H": 43, "I": 29, "J": 11, "K": 10, "L": 32, "M": 18, "N": 10, "O": 72, "P": 30, "Q": 10, "R": 94, "S": 18, "T": 445, "U": 49, "V": 10, "W": 11, "X": 10, "Y": 15, "Z": 10}, "Q": {"a": 10, "b": 10, "c": 10, "d": 10, "e": 10, "f": 10, "g": 10, "h": 10, "i": 10, "j": 10, "k": 10, "l": 10, "m": 10, "n": 10, "o": 10, "p": 10, "q": 10, "r": 10, "s": 10, "t": 10, "u": 148, "v": 10, "w": 10, "x": 10, "y": 10, "z": 10, "A": 12, "B": 10, "C": 10, "D": 10, "E": 10, "F": 10, "G": 10, "H": 10, "I": 10, "J": 10, "K": 10, "L": 10, "M": 10, "N": 10, "O": 10, "P": 10, "Q": 10, "R": 10, "S": 10, "T": 10, "U": 18, "V": 10, "W": 10, "X": 10, "Y": 10, "Z": 10}, "R": {"a": 204, "b": 10, "c": 10, "d": 10, "e": 1095, "f": 10, "g": 10, "h": 106, "i": 180, "j": 10, "k": 10, "l": 10, "m": 10, "n": 10, "o": 1434, "p": 10, "q": 10, "r": 10, "s": 10, "t": 10, "u": 925, "v": 10, "w": 12, "x": 10, "y": 47, "z": 10, "A": 149, "B": 22, "C": 45, "D": 23, "E": 219, "F": 21, "G": 73, "H": 19, "I": 281, "J": 12, "K": 22, "L": 36, "M": 40, "N": 40, "O": 112, "P": 26, "Q": 10, "R": 49, "S": 72, "T": 104, "U": 26, "V": 99, "W": 20, "X": 262, "Y": 69, "Z": 10}, "S": {"a": 304, "b": 12, "c": 268, "d": 10, "e": 941, "f": 12, "g": 11, "h": 1239, "i": 278, "j": 10, "k": 63, "l": 77, "m": 160, "n": 16, "o": 1683, "p": 368, "q": 43, "r": 10, "s": 11, "t": 1421, "u": 523, "v": 15, "w": 62, "x": 10, "y": 132, "z": 10, "A": 76, "B": 30, "C": 47, "D": 17, "E": 212, "F": 21, "G": 14, "H": 55, "I": 98, "J": 12, "K": 12, "L": 21, "M": 31, "N": 16, "O": 137, "P": 34, "Q": 10, "R": 16, "S": 88, "T": 190, "U": 67, "V": 15, "W": 21, "X": 11, "Y": 31, "Z": 10}, "T": {"a": 225, "b": 10, "c": 10, "d": 10, "e": 392, "f": 10, "g": 10, "h": 11816, "i": 259, "j": 10, "k": 10, "l": 10, "m": 10, "n": 10, "o": 774, "p": 13, "q": 10, "r": 379, "s": 90, "t": 10, "u": 308, "v": 20, "w": 138, "x": 10, "y": 32, "z": 10, "A": 96, "B": 19, "C": 21, "D": 15, "E": 620, "F": 17, "G": 40, "H": 397, "I": 350, "J": 12, "K": 10, "L": 25, "M": 30, "N": 28, "O": 103, "P": 17, "Q": 10, "R": 85, "S": 48, "T": 42, "U": 67, "V": 16, "W": 30, "X": 10, "Y": 51, "Z": 10}, "U": {"a": 10, "b": 10, "c": 10, "d": 10, "e": 10, "f": 11, "g": 13, "h": 42, "i": 10, "j": 10, "k": 16, "l": 78, "m": 10, "n": 873, "o": 10, "p": 36, "q": 10, "r": 22, "s": 27, "t": 41, "u": 10, "v": 22, "w": 10, "x": 10, "y": 10, "z": 10, "A": 32, "B": 40, "C": 23, "D": 20, "E": 35, "F": 14, "G": 19, "H": 14, "I": 16, "J": 10, "K": 10, "L": 45, "M": 45, "N": 70, "O": 10, "P": 17, "Q": 10, "R": 123, "S": 80, "T": 109, "U": 12, "V": 10, "W": 12, "X": 10, "Y": 10, "Z": 11}, "V": {"a": 458, "b": 10, "c": 10, "d": 10, "e": 288, "f": 10, "g": 10, "h": 10, "i": 405, "j": 10, "k": 10, "l": 26, "m": 10, "n": 10, "o": 173, "p": 34, "q": 10, "r": 13, "s": 12, "t": 11, "u": 11, "v": 10, "w": 14, "x": 10, "y": 36, "z": 10, "A": 23, "B": 10, "C": 10, "D": 14, "E": 125, "F": 10, "G": 10, "H": 10, "I": 227, "J": 11, "K": 10, "L": 10, "M": 11, "N": 10, "O": 28, "P": 11, "Q": 10, "R": 14, "S": 13, "T": 24, "U": 10, "V": 10, "W": 10, "X": 12, "Y": 10, "Z": 10}, "W": {"a": 695, "b": 10, "c": 10, "d": 10, "e": 1447, "f": 10, "g": 10, "h": 2860, "i": 716, "j": 10, "k": 10, "l": 11, "m": 12, "n": 10, "o": 287, "p": 10, "q": 10, "r": 34, "s": 10, "t": 10, "u": 20, "v": 10, "w": 10, "x": 10, "y": 26, "z": 10, "A": 66, "B": 17, "C": 16, "D": 17, "E": 54, "F": 15, "G": 16, "H": 27, "I": 36, "J": 13, "K": 10, "L": 11, "M": 14, "N": 15, "O": 39, "P": 12, "Q": 10, "R": 13, "S": 17, "T": 18, "U": 10, "V": 10, "W": 12, "X": 10, "Y": 15, "Z": 12}, "X": {"a": 13, "b": 10, "c": 10, "d": 10, "e": 10, "f": 10, "g": 11, "h": 10, "i": 10, "j": 10, "k": 10, "l": 10, "m": 10, "n": 10, "o": 10, "p": 13, "q": 10, "r": 93, "s": 12, "t": 11, "u": 10, "v": 10, "w": 12, "x": 10, "y": 10, "z": 10, "A": 18, "B": 10, "C": 13, "D": 11, "E": 11, "F": 11, "G": 10, "H": 10, "I": 186, "J": 10, "K": 10, "L": 10, "M": 11, "N": 10, "O": 10, "P": 18, "Q": 10, "R": 11, "S": 12, "T": 19, "U": 10, "V": 128, "W": 10, "X": 113, "Y": 11, "Z": 10}, "Y": {"a": 73, "b": 10, "c": 10, "d": 10, "e": 605, "f": 10, "g": 10, "h": 10, "i": 13, "j": 10, "k": 10, "l": 10, "m": 10, "n": 10, "o": 1331, "p": 10, "q": 10, "r": 10, "s": 10, "t": 10, "u": 18, "v": 10, "w": 10, "x": 10, "y": 10, "z": 10, "A": 29, "B": 15, "C": 13, "D": 26, "E": 20, "F": 13, "G": 11, "H": 11, "I": 17, "J": 10, "K": 14, "L": 15, "M": 23, "N": 13, "O": 76, "P": 22, "Q": 11, "R": 15, "S": 37, "T": 16, "U": 11, "V": 10, "W": 12, "X": 13, "Y": 13, "Z": 11}, "Z": {"a": 43, "b": 10, "c": 10, "d": 17, "e": 20, "f": 10, "g": 10, "h": 59, "i": 12, "j": 10, "k": 10, "l": 10, "m": 10, "n": 27, "o": 11, "p": 10, "q": 10, "r": 10, "s": 10, "t": 10, "u": 19, "v": 10, "w": 11, "x": 10, "y": 10, "z": 10, "A": 13, "B": 10, "C": 10, "D": 10, "E": 14, "F": 10, "G": 10, "H": 10, "I": 11, "J": 10, "K": 10, "L": 10, "M": 10, "N": 11, "O": 12, "P": 10, "Q": 10, "R": 12, "S": 10, "T": 10, "U": 10, "V": 10, "W": 11, "X": 10, "Y": 10, "Z": 10}}} diff --git a/cipherFinder/de_obfs.py b/cipherFinder/de_obfs.py index 9468487..c1b0a5a 100755 --- a/cipherFinder/de_obfs.py +++ b/cipherFinder/de_obfs.py @@ -15,10 +15,12 @@ "uber", "deez", "nuts", + "jugz", "hell", "gyros", "fries", "towlie", + "things", ] TABLE_REGEX = r"(\{([^{}]+)\})" diff --git a/cipherFinder/deleter.py b/cipherFinder/deleter.py new file mode 100644 index 0000000..c6537f7 --- /dev/null +++ b/cipherFinder/deleter.py @@ -0,0 +1,40 @@ +def y_n_validator(x): return x.lower() in {"y", "yes"} + +# plan +# Getting a list of all potential cipher lines, so we can remove them. + +# did we execute the plan? I think we did. + + +def deleter_main(del_lines: list) -> int: + """ This function works as the entry point for the + cipher deletion process. + + Parameters + ---------- + del_lines : list + the shadow list thats getting created in the main file. + + Returns + ------- + int + Return code + """ + + # Loop over found ciphers and ask the user if they + # want to remove the line + for cipher, ln, path in del_lines: + if not y_n_validator(input( # pylint: disable=bad-builtin + f"Do you want to delete the following line?: " + f"\n{cipher}\n[y/N]: ")): + continue + + with open(path, "r", encoding="utf-8") as f: + lines = f.readlines() + + del lines[ln - 1] + + with open(path, "w", encoding="utf-8") as f: + f.writelines(lines) + + return 0 diff --git a/cipherFinder/finder.py b/cipherFinder/finder.py index 32932d3..8089a3f 100755 --- a/cipherFinder/finder.py +++ b/cipherFinder/finder.py @@ -31,6 +31,7 @@ from gibberish_detector import detector from cipherFinder.de_obfs import de_obfs, do_regex +from cipherFinder.deleter import deleter_main, y_n_validator REGEX = r"(((\\x|\\u)([a-fA-F0-9]{2}))+)" URL_REGEX = ( @@ -43,7 +44,9 @@ "FivemCipherFinder/main/big.model" ) + log = [] +del_lines = [] def get_big_model_file() -> int: @@ -55,6 +58,8 @@ def get_big_model_file() -> int: status code """ + + # Get a fresh file if os.path.exists("./big.model"): os.remove("./big.model") @@ -137,13 +142,13 @@ def prepare_log_line(**kw) -> int: int Returns the current count """ - d = kw.pop("d", ".") - ln = kw.pop("ln", "") - file = kw.pop("file", "poggers.lua") - line = kw.pop("line", "") - count = kw.pop("count", 0) - target = kw.pop("target", "") - logged = kw.pop("logged", {}) + d = kw.pop("d", ".") # Directory + ln = kw.pop("ln", "") # Triggered line number + file = kw.pop("file", "poggers.lua") # filename + line = kw.pop("line", "") # Trigger line + count = kw.pop("count", 0) # global trigger count + target = kw.pop("target", "") # Decoded lines + logged = kw.pop("logged", {}) # dont print stuff twice path = d.replace("\\", "/") + f"/{file}" url = "" @@ -166,6 +171,9 @@ def prepare_log_line(**kw) -> int: print(to_log) log.append(to_log + f"\nTrigger Line:\n{line!r}\n{'-'*15}\n") + + del_lines.append((line, ln, path)) + count += 1 logged[path] = ln return count @@ -241,11 +249,11 @@ def write_log_file(**kw) -> int: print( f'{kw.pop("red")}Oh no, the program found a spy in your files x.x ' f"Check the CipherLog.txt for location and trigger. " - f'{kw.pop("count")} where found!' + f'{kw.pop("count")} were found!' f'{kw.pop("white")}\n#staysafe' ) - if kw.pop("args").no_log: + if kw.pop("args").no_log: # if the user types -n return 0 with open( @@ -367,6 +375,7 @@ def main() -> int: get_big_model_file() for d, _, files in os.walk(local_path): + # skip excluded directorys if pattern and do_regex(rf"{d}", f'{"(" + pattern + ")"}'): continue @@ -389,7 +398,13 @@ def main() -> int: pass if log: - return write_log_file(white=white, red=red, count=count, args=args) + write_log_file(white=white, red=red, count=count, args=args) + + if y_n_validator(input( # pylint: disable=bad-builtin + "Do you want to start the Deletion wizard? [y/N] ")): + deleter_main(del_lines) + + return 0 print(f"{green}Nice! There were no Cipher's found!{white}") return 0 diff --git a/tests/test_deleter.py b/tests/test_deleter.py new file mode 100644 index 0000000..76c7994 --- /dev/null +++ b/tests/test_deleter.py @@ -0,0 +1,2 @@ +def test_deleter_main(): # yeah, naaahhh + ...