httpx icon indicating copy to clipboard operation
httpx copied to clipboard

erorr -mr & -er flag in version 1.6.5 but not in 1.6.3

Open hnvdie opened this issue 1 year ago • 0 comments

Issue with -mr and -er options in httpx 1.6.5

In httpx 1.6.5, the features of -mr or -er seem to be causing errors and cannot be used. The error message indicates an issue with parsing the regex, which did not occur in version 1.6.3.

Output from version httpx 1.6.5

~/debug $ cat example | sort | uniq | httpx -mr '(SIMP[A-Z0-9]{12,24}|simper-curs)' -er '(SIMP[A-Z0-9]{12,24}|simper-curs)' -o result.out

[banner]
projectdiscovery.io

[INF] Current httpx version v1.6.5 (latest)
[FTL] Invalid value for match regex option: error parsing regexp: missing closing ): `(simp[a-z0-9]{12`

Output from version httpx 1.6.3

root@ubuntu:~/downloads# cat example | sort | uniq | httpx -mr '(SIMP[A-Z0-9]{12,24}|simper-curs)' -er '(SIMP[A-Z0-9]{12,24}|simper-curs)' -o result.out

[banner]
projectdiscovery.io
[INF] Current httpx version v1.6.3 (outdated)

Question

How can this issue be resolved?

hnvdie avatar Jun 28 '24 22:06 hnvdie