This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from itertools import combinations | |
from functools import reduce | |
from operator import mul | |
from math import factorial, perm | |
from collections import Counter | |
import re | |
# English letter frequencies from | |
# <https://en.wikipedia.org/wiki/Letter_frequency>. | |
eng_letter_freqs = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from threading import Condition | |
import traceback | |
import time | |
from minecraft.networking.connection import Connection | |
from minecraft.networking.packets import clientbound, serverbound | |
from minecraft.networking.types import ( | |
Position, PositionAndLook, RelativeHand, BlockFace, | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from __future__ import print_function | |
import sys | |
import os | |
import re | |
import io | |
import base64 | |
import zlib |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
Requires pyCraft <https://github.com/ammaraskar/pyCraft> | |
and pyYAML <https://pypi.python.org/pypi/PyYAML>. | |
Usage: ./parse.py stream1.yml [stream2.yml ...] | |
or: ./parse.py < stream1.yml | |
Input files are TCP streams of *unencrypted* Minecraft connections |