Files
Corsy/core
Vasco Franco 85e1fe8b68 Fix bug in extractHeaders and simplify its logic
`extractHeaders` had an incorrect regex that crashed Corsy with the msg:
"sre_constants.error: nothing to repeat at position 1". This was caused
by `^?`, which is not a valid regex, and can be reproduced with the
README example: `python3 corsy.py -u https://example.com --headers
"User-Agent: GoogleBot\nCookie: SESSION=Hacked"`.
Instead of using the regex this commit simplifies the logic by using a
`split` to split lines and header_name/value pairs.
2021-11-14 00:02:28 +00:00
..
2019-11-27 15:02:42 +05:30
2020-01-17 03:20:20 +05:30
2021-11-13 23:53:18 +00:00