-
Notifications
You must be signed in to change notification settings - Fork 41
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
How to run foresight? #5
Comments
foresight is not compatible with python2. I believe 3.3 is the earliest python version that can run it. |
thanks very much! |
I have another problem ..... if i have a series of number generated by PHP's rand() likes 1341324123,can i use this library to find the seed? |
by the way .... how to use the option '-o' in the command line? |
This answer requires a little setup, so bear with me. PHP's The rest of this answer will address PHP on windows. If you do not know the number of times 'rand' was called between the outputs you have and the seed point, then this is impossible. Not as a limitation of Say, however, you know that there were 4 calls to However, The excellent 'untwister' project here has some additional facilities for predicting seeds. 'glibc' prediction would be what you want for PHP on linux. |
Thanks for your patiently explain! But can i do this if i know the time when 'rand()' was called?i can get this with the return time from the server.....But i have only one rand number beacause the server gives me only one number when i fresh it....... but If i can't find the seed ,can i predict the number follow on it? |
That depends a lot on whether the time is being used to seed the RNG. If you know the server is seeding with |
OK... thank you always.. |
i want to run a example
$ python predict_captcha.py
but it doesn't work:
Traceback (most recent call last): File "predict_captcha.py", line 12, in <module> from foresight.php import rand File "build/bdist.linux-x86_64/egg/foresight/php/rand.py", line 6, in <module> File "/usr/local/lib/python2.7/dist-packages/foresight-0.1-py2.7.egg/foresight/glibc/random.py", line 82 yield from gen SyntaxError: invalid syntax
can you tell me how to run this in the right way?
The text was updated successfully, but these errors were encountered: