Skip to content

Error Parsing Headers #39

@ResistanceIsUseless

Description

@ResistanceIsUseless

Python 3.9.13

python3 corsy.py -u https://mail.google.com --headers "User-Agent: GoogleBot\nCookie: SESSION=Hacked"

Traceback (most recent call last): File "/Users/USER/Tools/Corsy/corsy.py", line 47, in <module> header_dict = extractHeaders(header_dict) File "/Users/USER//Tools/Corsy/core/utils.py", line 70, in extractHeaders matches = re.findall(r'^?(.*?):\s(.*?)[\n$]', headers) File "/usr/local/Cellar/python@3.9/3.9.13_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/re.py", line 241, in findall return _compile(pattern, flags).findall(string) File "/usr/local/Cellar/python@3.9/3.9.13_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/re.py", line 304, in _compile p = sre_compile.compile(pattern, flags) File "/usr/local/Cellar/python@3.9/3.9.13_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/sre_compile.py", line 788, in compile p = sre_parse.parse(p, flags) File "/usr/local/Cellar/python@3.9/3.9.13_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/sre_parse.py", line 955, in parse p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) File "/usr/local/Cellar/python@3.9/3.9.13_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/sre_parse.py", line 444, in _parse_sub itemsappend(_parse(source, state, verbose, nested + 1, File "/usr/local/Cellar/python@3.9/3.9.13_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/sre_parse.py", line 669, in _parse raise source.error("nothing to repeat", re.error: nothing to repeat at position 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions