194 Commits

Author SHA1 Message Date
wiire-a
7ae30e8a08 Removed useless check for PKe 2017-12-23 20:04:08 +01:00
wiire-a
a52de0d335 Cosmetic changes 2017-12-23 20:00:16 +01:00
wiire-a
a55f17b77a Removed useless constant 2017-12-23 17:06:06 +01:00
wiire-a
35b3fb030f Always recover N1 seed for mode 1
It's basically costless anyway.
2017-12-23 16:38:25 +01:00
wiire-a
9766d03983 Renamed function 2017-12-22 12:20:25 +01:00
wiire-a
801f1b1605 Get elapsed time in a proper way 2017-12-22 12:04:11 +01:00
wiire-a
58e04d5aa0 Removed useless RT bruteforce
No need to bruteforce the nonce to get the LFSR state.

Credits to @1yura.
2017-12-21 20:27:27 +01:00
wiire-a
77fde24c14 Small performance improvement on MIPS 2017-12-20 22:16:21 +01:00
wiire-a
da5f0f436f Removed uninstall target from Makefile 2017-12-20 19:16:36 +01:00
wiire-a
8807357127 Cosmetic changes 2017-12-20 19:15:07 +01:00
wiire-a
0eb8050d6c Reorganized auto mode logic 2017-12-20 12:32:40 +01:00
wiire-a
57e3309cfe Fixed wrong termination condition with mode 2 2017-12-19 23:48:08 +01:00
wiire-a
6e60c990f5 Removed redundant check for PIN found 2017-12-19 19:46:42 +01:00
wiire-a
86292d5f89 Removed unnecessary check for Enrollee nonce 2017-12-19 19:38:49 +01:00
wiire-a
fb139003e9 Updated CHANGELOG 2017-12-07 16:59:41 +01:00
wiire-a
d4562fe424 Fixed display of seeds for mode 3
The seeds were always printed even if there wasn't need to bruteforce
the state of the PRNG:

[*] Seed N1:  0 (01/01/70 00:00:00 UTC)
[*] Seed
ES1: 0 (01/01/70 00:00:00 UTC)
[*] Seed ES2: 0 (01/01/70 00:00:00
UTC)

Correct:

[*] Seed N1:  -
[*] Seed ES1: -
[*] Seed ES2:
-

Introduced in (6082da8).
2017-12-07 14:01:07 +01:00
wiire-a
19def8c4d8 Removed OpenWrt Makefile
The package is now available in the official OpenWrt repository.
2017-12-05 11:46:38 +01:00
wiire-a
d6e760af7b Bumped version to 1.4.1 v1.4.1 2017-12-04 14:11:31 +01:00
rofl0r
ef28cc6331 fix segfault in -7 mode
regression since ef4eaffd57d939f49d2b0c02506872278baf039c
found by @binarymaster
2017-12-04 13:07:11 +01:00
wiire-a
cb38f8f97c Bumped version to 1.4 v1.4 2017-12-04 00:18:16 +01:00
wiire-a
72de3759ed Fixed compilation on FreeBSD and macOS 2017-12-03 23:42:40 +01:00
wiire-a
fd21867311 Cosmetic changes 2017-12-03 21:18:02 +01:00
wiire-a
3d4d56ed0b Fixed Makefile install 2017-12-03 21:06:38 +01:00
wiire-a
267d1fbabc Changed install PREFIX to /usr/local 2017-12-03 21:05:23 +01:00
wiire-a
0faeec22c5 Fixed more warnings 2017-12-03 15:39:39 +01:00
wiire-a
a8223acb31 Added missing free 2017-12-03 15:21:23 +01:00
wiire-a
533070ae47 Fixed a few warnings 2017-12-03 15:02:19 +01:00
wiire-a
d6dab00354 Updated CHANGELOG 2017-12-02 12:58:27 +01:00
wiire-a
65eb2788a8 Added CHANGELOG 2017-12-02 01:41:12 +01:00
wiire-a
6040be0b0a Updated README 2017-12-02 01:30:31 +01:00
wiire-a
dfdc7c7717 Performance improvements in new PRNG 2017-12-02 01:19:18 +01:00
wiire-a
3cd589c641 Removed useless if statement 2017-12-01 14:46:41 +01:00
rofl0r
8c6e943bec
beautify README markup for openssl build 2017-11-30 22:19:22 +00:00
wiire-a
9d796f81ab Print all debug info on stdout 2017-11-30 19:30:20 +01:00
wiire-a
2e2f05ac0e Deprecated option -l 2017-11-30 19:19:36 +01:00
rofl0r
2a24083f33 improve hmac_sha256 cracking speed and re-add option openssl support 2017-11-30 17:20:01 +01:00
wiire-a
5bf902b187 Fixed UB in the new PRNG due to int overflow 2017-11-30 15:48:46 +01:00
wiire-a
feeb389017 Got rid of some warnings 2017-11-30 12:04:33 +01:00
wiire-a
8de0422164 Made static more functions in main file 2017-11-30 11:31:52 +01:00
wiire-a
d73b71803a Added more useful debugging prints 2017-11-30 11:19:58 +01:00
rofl0r
cf25128e28 fix display of psk for null pin 2017-11-30 01:04:17 +01:00
rofl0r
189a51b6fd whitespace cleanup
fix whitespace errors introduced during refactoring.
2017-11-30 01:04:17 +01:00
rofl0r
bb5c1d1d5f implement parallel search of es1 nonce for RTL
each thread searches 1 seed forward, then 1 seed backwards in time.
the main thread handles the case seed enonce==seed es1.
2017-11-30 01:04:17 +01:00
rofl0r
226c2deb39 prepare find_rtl_es for threadsafe usage 2017-11-30 01:04:17 +01:00
rofl0r
94d6dddc26 fix wrong display of seed for es2 2017-11-29 23:06:48 +00:00
rofl0r
0591369505 find_rtl_es: speed up search by cracking es1 and es2 independently 2017-11-29 21:01:44 +01:00
rofl0r
9d59eda03b refactor crack() to crack each half separately 2017-11-29 21:01:44 +01:00
rofl0r
5e4d55f55f remove anylength code temporarily from crack()
in preparation of refactoring it to support usage with search for
only one half.

thankfully @binarymaster agreed to re-add it after the refactoring.
2017-11-29 21:01:44 +01:00
rofl0r
c673bedd76 factor pin half checks ouf of crack()
maybe due to adding the const to the function params, a small speedup
was noticed on a 8x4Ghz box, searching an empty pin example during
one month now takes 3.9 secs, before this change 4.1 (averages).
2017-11-29 18:15:38 +01:00
rofl0r
ef4eaffd57 calculate hmac_sha256 for empty pin only once
since crack() can be called thousands of times, dont waste cpu for
calculating the empty pin over and over again.
2017-11-29 17:22:58 +01:00