lemmeknow icon indicating copy to clipboard operation
lemmeknow copied to clipboard

Identifies JWT as LTC/Ripple/BCH-Wallet-Adress

Open tolik518 opened this issue 3 years ago • 1 comments

Input: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c

Output: Found Possible Identifications :)

Matched text Identified as Description
eyJhbGciOiJIUzI1..._adQssw5c Litecoin (LTC) Wallet Address URL: https://live.blockcypher.com/ltc/address/eyJhbGciOiJIUzI1..._adQssw5c

Expected "Identified as" would be JWT. Shortened the JWT for better visibility.


Another example:

Input: eyJhbGciOiJIUzI1NiJ9.eyJmb28iOiJiYXIifQ.JTvQIxZOL_-00JdKfTAEmhV-a6KUlB6OUWM8NuN7MN8 Output: No Possible Identifications :(

Expected "Identified as" would be JWT.

tolik518 avatar Dec 13 '22 08:12 tolik518

It is due to regex crate not supporting look-around, as it is mentioned in release note . We would need to rewrite the JWT regex without lookarounds.

swanandx avatar Dec 13 '22 13:12 swanandx