Changeset 136 for test


Ignore:
Timestamp:
11/14/17 18:03:48 (7 years ago)
Author:
tim
Message:

fixed escape codes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/samples/password-reset/forge-password-reset.py

    r135 r136  
    6262        if len(poa.decrypted) > 0:
    6363            d = repr(('?'*length)+poa.decrypted.decode('utf-8'))
    64             d = d[0:length+1] + '\x1b[1;31m' +d[length+1:length+2] + '\x1b[39;49m' + d[length+2:]
     64            d = d[0:length+1] + '\x1b[1;31m' +d[length+1:length+2] + '\x1b[0m' + d[length+2:]
    6565            print('\x1b[F '+d, file=sys.stderr)
    6666    response = sendRequest(session, encode(iv+data))
Note: See TracChangeset for help on using the changeset viewer.