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

Describe algorithm #2

Open
pintman opened this issue Feb 24, 2018 · 3 comments
Open

Describe algorithm #2

pintman opened this issue Feb 24, 2018 · 3 comments

Comments

@pintman
Copy link

pintman commented Feb 24, 2018

I am not so much into JS. Could you please give a desciption of the algorithm? Would be great to have it in other languages as well.

@fallais
Copy link

fallais commented Dec 18, 2018

https://github.com/fallais/tweg

@holloway
Copy link
Owner

Nice one @fallais !

@fallais
Copy link

fallais commented Dec 18, 2018

This is just a description and a translation of your great work @holloway ;)
I discovered your tool thanks to a rootme challenge.

That being said, I had a couple of questions (if you have time) :

  • Why is there a space added right after the secret binary ?
  • The ensure_divisible_xxxxx gave me so much pain ! The numbers are so long that I had not the same result with Golang and Javascript. My opinion is that you are lucky because the behaviour of Javascript when performing the toNumber function (before the modulo) is going well. I wasn't lucky with Golang. So I am still not getting this function totally well, still trying to explain it perfectly.
  • I was wondering if it could be a good idea to trim all the spaces of the secret after it has been decoded. I mean if the decoding function returns "youpi ", I guess that "youpi" is also a good answer.

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

3 participants