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

Fix timing jump from [08:38:36] to [09:39:18] within 40 seconds. #2060

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

allentree
Copy link

  1. Here is the log:
    Apr 18 23:46:26 allen-virtual-machine aircrack-ng[4065]: [08:37:55] 4359832/98732991 keys tested (142.40 k/s) allen1
    Apr 18 23:47:07 allen-virtual-machine aircrack-ng[4065]: [08:38:36] 4365840/98732991 keys tested (142.41 k/s) allen1
    Apr 18 23:47:47 allen-virtual-machine aircrack-ng[4065]: [09:39:18] 4371860/98732991 keys tested (142.41 k/s) allen1
    Apr 18 23:48:28 allen-virtual-machine aircrack-ng[4065]: [09:40:00] 4377876/98732991 keys tested (142.42 k/s) allen1
    Apr 18 23:49:09 allen-virtual-machine aircrack-ng[4065]: [09:40:41] 4383884/98732991 keys tested (142.43 k/s) allen1

  2. where is the error in the log?
    Timing information printed by aircrack-ng is in the [::]. And, [08:38:36] is jumped to [09:39:18] in 40 seconds , with clock time from 23:47:47 to 23:47:07

  3. what causes the error?
    It is caused by lrintf() . lrintf() function doesn't set its rounding direction, resulting in 0.501 hour or so
    equal to 1 hour, not 0 hour. There’s no need of lrintf(), that will make the timing code easier, and it will be ok by use of casting data type from float to int.

  4. how to reproduce the problem and to save time?
    I change the current time by using 'date -s' shell command, instead of running aircrack-ng second by second.

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

Successfully merging this pull request may close these issues.

None yet

1 participant