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

prepend words is broken (reversed) #21

Open
jfoug opened this issue Sep 6, 2020 · 0 comments
Open

prepend words is broken (reversed) #21

jfoug opened this issue Sep 6, 2020 · 0 comments

Comments

@jfoug
Copy link

jfoug commented Sep 6, 2020

Just playing around a bit (btw, NICE tool). I downloaded the pre-built 1.0 and here was one issue I found:

2 nodes, append male name, prepend female name. Here was the first rule: append-"james" prepend-"mary" But as you see the output from john shows mary is yram (reversed).

$ echo -n '1234' | ../bleed-64/run/john -rules=':$j$a$m$e$s^m^a^r^y' -stdout -pipe
Using default input encoding: UTF-8
yram1234james
1p 0:00:00:00 0.00% 7.092p/s yram1234james

When using single character appends, you have to reverse the order, so the proper rule is: $j$a$m$e$s^y^r^a^m

so if the word was 1234, these are the interim words generated by john or HC:

1234j
1234ja
1234jam
1234jame
1234james
m1234james
am1234james
ram1234james
yram1234james

Simply appending y then a then r them m will 'solve' this problem. This 'bug' may impact other things. If there were dates appended, you might see 0591 vs 1950, etc. I have not experimented (yet). Raw numbers should not matter (000 to 999, etc). But when you want specific values (using single char append), you must provide the data in reversed order.

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

1 participant