Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

L33t words not matched as expected #28

Closed
jdhoek opened this issue Apr 5, 2017 · 5 comments
Closed

L33t words not matched as expected #28

jdhoek opened this issue Apr 5, 2017 · 5 comments
Assignees

Comments

@jdhoek
Copy link
Contributor

jdhoek commented Apr 5, 2017

L33tified words seem to get only partial dictionary matches.

Result

The password Ch1ck3n1970 currently yields:

  • BruteForceMatch: C
  • BruteForceMatch: h
  • BruteForceMatch: 1
  • BruteForceMatch: c
  • DictionaryMatch: ken (male_names)
  • YearMatch: 1970

For comparison, this is Chicken1970:

  • DictionaryMatch: chicken (passwords)
  • YearMatch: 1970

Expected

For Ch1ck3n1970 I would expect the same matches as Chicken1970:

  • DictionaryMatch: chicken (passwords, Leet Substitutions true)
  • YearMatch: 1970
@Tostino
Copy link
Collaborator

Tostino commented Apr 5, 2017

Yup, that for sure looks like an issue and it wasn't caught by the test cases. I'll take a look into that shortly.

@Tostino Tostino self-assigned this Apr 5, 2017
@Tostino
Copy link
Collaborator

Tostino commented Apr 6, 2017

Found the issue, working on a fix now. My un-leet code was not as robust as the code in zxcvbn. I'll fix that right up shortly.

Tostino added a commit that referenced this issue Apr 7, 2017
…substitution possible, whereas that isn't really true in reality. For simple l33t conversion, characters like: 1, !, and | can be mapped to both i and l.

This fixes the reported issue, and adds a test case to cover it.
@Tostino
Copy link
Collaborator

Tostino commented Apr 7, 2017

Alright, I fixed this issue in the commit referenced above. Please let me know if you find any additional issues with it.

@jdhoek
Copy link
Contributor Author

jdhoek commented Apr 7, 2017

Nice. I'll see if I can reproduce this Monday. Looking at the commit it looks you fixed it though.

@jdhoek
Copy link
Contributor Author

jdhoek commented Apr 10, 2017

Works for me now. 👍

@jdhoek jdhoek closed this as completed Apr 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants