Changeset 131 for trunk/bin/bletchley-http2py
- Timestamp:
- 09/18/17 18:53:24 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bin/bletchley-http2py
r118 r131 19 19 20 20 Copyright (C) 2011-2013 Virtual Security Research, LLC 21 Copyright (C) 2014-201 6Blindspot Security LLC21 Copyright (C) 2014-2017 Blindspot Security LLC 22 22 Author: Timothy D. Morgan 23 23 … … 149 149 from bletchley import chosenct 150 150 from bletchley.CBC import * 151 import urllib3 152 urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) 151 153 152 154 # TODO: ensure the host, port, and protocol settings are correct. … … 217 219 # These are useful for debugging, but once your response processing is working, 218 220 # remove them so it isn't so verbose. 219 print(response.status_code) 220 print(response.headers) 221 print(repr(response.content)) 222 221 print(response.status_code, file=sys.stderr) 222 print(response.headers, file=sys.stderr) 223 print(repr(response.content), file=sys.stderr) 224 225 # You may need to return either true/false or a string/bytes object here 226 # (which is derived from the response) depending on your test 223 227 return ret_val 224 228 ''') … … 274 278 # These are useful for debugging, but once your response processing is working, 275 279 # remove them so it isn't so verbose. 276 print(response.status )277 print(response.getheaders() )278 print(repr(response.read()) )280 print(response.status, file=sys.stderr) 281 print(response.getheaders(), file=sys.stderr) 282 print(repr(response.read()), file=sys.stderr) 279 283 280 284 connection.close() 285 # You may need to return either true/false or a string/bytes object here 286 # (which is derived from the response) depending on your test 281 287 return ret_val 282 288 ''') … … 289 295 # TODO: Use this to verify you get the response you expect. 290 296 # Once everything is working, use the commented code below to conduct specific attacks. 291 pr ocessResponse(ciphertext)297 print(processResponse(ciphertext), file=sys.stderr) 292 298 293 299
Note: See TracChangeset
for help on using the changeset viewer.