Commit Graph

8 Commits

Author SHA1 Message Date
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
Somdev Sangwan
ad0bd1429b Merge branch 'master' into master 2021-01-28 16:50:08 +05:30
Somdev Sangwan
2e3ea35807 fix support for IP addresses 2021-01-28 16:15:17 +05:30
Somdev Sangwan
437504ad80 fix #30 2020-12-09 14:17:42 +05:30
duckie
370bf7bfd9 Converted Tab to Spaces 2020-08-21 11:10:58 +05:30
Somdev Sangwan
f8e57478fe 1.0-beta
- Bug fixes
- Scan URLs from file
- JSON output to file
- Custom HTTP header support
- Switch to ignore helpful messages
2020-01-17 02:44:46 +05:30
vvMelody
c6d307b2bc Simplify some code 2019-12-04 14:04:03 +08:00
Somdev Sangwan
a5529a0298 Add files via upload 2019-11-24 21:12:10 +05:30