|
Message-ID: <20150816190804.GA25202@openwall.com> Date: Sun, 16 Aug 2015 22:08:04 +0300 From: Solar Designer <solar@...nwall.com> To: john-users@...ts.openwall.com Subject: Re: Overstrike rule with UTF-8 characters? As an alternative to magnum's response: On Sun, Aug 16, 2015 at 07:50:21AM -0500, nyxgeek wrote: > Unicode is possible in other areas with John rules. For example, I can do the following, and it works to INSERT: > > <* >\r[00123456789] A\p[z0-9]"\xc3\x94" BTW, you can shorten this to: <* >\r[00-9] A\p[z0-9]"\xc3\x94" and actually the same approach works for overstriking as well. You just need to delete the two "characters" you want to overstrike first: >[0-9A-F] D\0 D\0 A\0"\xc3\x94" or better (proper length check for a 2-byte character to fit): >[1-9A-G] D\p[0-9A-F] D\0 A\0"\xc3\x94" Of course, since this operates on octets rather than UTF-8 characters, it may produce some strings with invalid UTF-8 characters as a result (when overstriking not at a UTF-8 character boundary), along with the correct and desired results. You can also use the overstrike command to achieve the same: >[1-9A-G] o\p[0-9A-F]\xc3 o\1\x94 Alexander
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.