• Answers.

    jlbrian711/05/2016 at 11:19 0 comments

    Image 1:

    • Row 1: None
    • Row 2: 'B'
    • Row 3: 'A'
    • Row 4: 'D'
    • Row 5: 'C'
    • Row 6: 11
    • Row 7: 5
    • Row 8: 16
    rotors='III IV V' # from image rows containing display settings
    reflector='B'
    ring_settings='11 5 16'
    plugboard_settings='HA CK DY'

    set_display("ADC")

    Decrypted message:

    'OIIOIOOOOIIIOIOOOIIIOIOOOIIIOOOOOIIIOOIIOOIIIOIOOOIOIIIIOOIOIIIIOIIOOIOOOIIIOOIOOIIOIOOIOIIIOIIOOIIOOIOIOOIOIIIOOIIOOIIIOIIOIIIIOIIOIIIIOIIOOIIIOIIOIIOOOIIOOIOIOOIOIIIOOIIOOOIIOIIOIIIIOIIOIIOIOOIOIIIIOIIOIIIIOIIIOOOOOIIOOIOIOIIOIIIOOOIIIIIIOIIOIOOIOIIOOIOOOOIIIIOIOOIIOOOOOIOOOOIOOOIIOIIOOIIIOOOOOIIOOIOIOOIIOOIOOIOIIOOOOIIIOIIIOIIOIIOIOIIOOOOIOIOOOOOIOIOIOOOOOIOOIIIIOIOIIOOIOOIIOOOIOIOIOOIOOIIOIOIOOIOOIIOIOIIOIOOIOOIIOOOIOIOOIOIIOIOOIIOIOIOIOIIIOIIIOIOOOIIIIOOIOIOIOOIIOIOIOIOOOIOOOOOI'

    'O' = 0

    'I' = 1

    URL:

    https://drive.google.com/open?id=0B6pe2XwmaAPOY1RjMi1KMWtySTA

    Image 2:

    • Col 1: 'C'
    • Col 2: 'D'
    • Col 3: 11
    • Col 4: 'A'
    • Col 5: 6
    • Col 6: 'C'
    • Col 7: 16
    • Col 8: None
    rotors='II IV VI' # from image colss containing display settings
    reflector='C'
    ring_settings='11 6 16'
    plugboard_settings='HA CK DY'

    set_display("ADC")

    Decrypted Message:

    'IOOIOIIIIOOOIOIIIOOOIOIIIOOOIIIIIOOOIIOOIIOOOIOIIIOIOOOOIIOIOOOOIOOIIOIIIOOOIIOIIOOIOIIOIOOOIOOIIOOIIOIOIIOIOOOIIOOIIOOOIOOIOOOOIOOIOOOOIOOIIOOOIOOIOOIIIOOIIOIOIIOIOOOIIOOIIIOOIOOIOOOOIOOIOOIOIIOIOOOOIOOIOOOOIOOOIIIIIOOIIOIOIOOIOOOIIIOOOOOOIOOIOIIOIOOIIOIIIIOOOOIOIIOOIIIIIOIIIIOIIIOOIOOIIOOOIIIIIOOIIOIOIIOOIIOIIOIOOIIIIOOOIOOOIOOIOOIOIOOIIIIOIOIIIIIOIOIOIIIIIOIIOOOOIOOIIOIOIOOIOOIIIOIIIIOIIOIIIOOOIOOIIOIIIIOOIIIOIOOOIIIIIIOOIIIIIOIOOIIIIIOOIIIOIOIOOIOIIIOOIIOIIOIOIOIIIOIOOIIIIOIIOOIO'

    'O' = 1

    'I' = 0

    URL:

    https://drive.google.com/open?id=0B6pe2XwmaAPOelBGd1p0X1Z2TXM

  • Hint 4

    jlbrian711/05/2016 at 01:20 0 comments

    machine.set_display("image specific")
    msg = machine.process_text(msg, replace_char='X')
    
    url_str = ''
    for i in msg:
        if i == 'O':
            url_str += 'you pick'
        if i == 'I':
            url_str += 'you pick'
    
    url = text_from_bits(url_str)
    print url

  • Hint 3

    jlbrian711/04/2016 at 00:12 0 comments

    msg = ''
    for i in message:
        if i != '\x00':
            msg += i
    
    from enigma.machine import EnigmaMachine
    
    machine = EnigmaMachine.from_key_sheet(rotors='image specific',
                                           reflector='image specific',
                                           ring_settings='image specific',
                                           plugboard_settings='obvious')

  • Hint 2

    jlbrian711/02/2016 at 23:42 0 comments

            ...
                bin_message += '0'
            if g & 0b1 == 1:
                bin_message += '1'
            else:
                bin_message += '0'
            if b & 0b1 == 1:
                bin_message += '1'
            else:
                bin_message += '0'
    
    import binascii
    
    # You can use an online binary to ascii converter, or these functions.
    # Such as this: http://www.rapidtables.com/convert/number/binary-to-ascii.htm
    # http://stackoverflow.com/questions/7396849/convert-binary-to-ascii-and-vice-versa
    def text_from_bits(bits, encoding='utf-8', errors='surrogatepass'):
        n = int(bits, 2)
        return int2bytes(n).decode(encoding, errors)
    
    
    def int2bytes(integer):
        hex_string = '%x' % integer
        n = len(hex_string)
        return binascii.unhexlify(hex_string.zfill(n + (n & 1)))
    
    message = text_from_bits(bin_message)

  • Hint 1

    jlbrian711/02/2016 at 01:11 0 comments

    from PIL import Image
    
    img = Image.open('image_with_crypt.png')
    rgb_img = img.convert('RGB')
    width, height = rgb_img.size
    
    bin_message = ''
    for row in range(height):
        for col in range(width):
            r, g, b = rgb_img.getpixel((col, row))
            if r & 0b1 == 1:
                bin_message += '1'
            else:
                ...