Changeset 62 for trunk


Ignore:
Timestamp:
08/18/13 11:57:13 (11 years ago)
Author:
tmorgan
Message:

added comments in output as crib notes for POA

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bin/bletchley-http2py

    r51 r62  
    123123    sys.exit(1)
    124124
     125# from bletchley import blobtools,buffertools
     126# from bletchley.CBC import *
     127
    125128
    126129# TODO: ensure the host, port, and SSL settings are correct.
     
    176179import sys
    177180import http.client as httpc
     181# from bletchley import blobtools,buffertools
     182# from bletchley.CBC import *
    178183
    179184
     
    218223
    219224def fetch(data):
    220     ret_val = None
     225    ret_val = False
    221226    connection = newConnection()
    222227
     
    234239fetch(data)
    235240''')
     241
     242print('''
     243
     244# Padding Oracle Attacks
     245# ciphertext = blobtools.decode('{ encoding }', data)
     246# poa = POA(fetch, {block size}, ciphertext, threads=1, log_file=sys.stderr)
     247# print(poa.probe_padding()) # sanity check
     248# print(poa.decrypt())
     249''')
Note: See TracChangeset for help on using the changeset viewer.