Research, development and trades concerning the powerful Proxmark3 device.
Remember; sharing is caring. Bring something back to the community.
"Learn the tools of the trade the hard way." +Fravia
Time changes and with it the technology
Proxmark3 @ discord
Users of this forum, please be aware that information stored on this site is not private.
Pages: 1
Hi
I have some problems on OSX with the hardnested code for the same tag, I have tried this both on the homebrew version of icemans stable build and compiled my own version with the same results.
[ ARM ]
bootrom: iceman// 2017-09-06 16:15:34
os: iceman// 2017-09-06 16:15:36
[ FPGA ]
LF image built for 2s30vq100 on 2015/03/06 at 07:38:04
HF image built for 2s30vq100 on 2017/05/17 at 17:48:26
[ Hardware ]
--= uC: AT91SAM7S512 Rev B
--= Embedded Processor: ARM7TDMI
--= Nonvolatile Program Memory Size: 512K bytes, Used: 216914 bytes (41) Free: 307374 bytes (59)
--= Second Nonvolatile Program Memory Size: None
--= Internal SRAM Size: 64K bytes
--= Architecture Identifier: AT91SAM7Sxx Series
--= Nonvolatile Program Memory Type: Embedded Flash Memory
On windows it works fast and without hickups:
pm3 --> hf mf hardnested 0 A ffffffffffff 19 B
--target block no: 19, target key type:B, known target key: 0x000000000000 (not set), file action: none, Slow: No, Tests: 0
time | #nonces | Activity | expected to brute force
| | | #states | time
------------------------------------------------------------------------------------------------------
0 | 0 | Start using 4 threads and AVX2 SIMD core | |
0 | 0 | Brute force benchmark: 640 million (2^29.3) keys/s | 140737488355328 | 3d
1 | 0 | Using 235 precalculated bitflip state tables | 140737488355328 | 3d
6 | 112 | Apply bit flip properties | 833033404416 | 22min
7 | 224 | Apply bit flip properties | 251339571200 | 7min
8 | 336 | Apply bit flip properties | 195359342592 | 5min
8 | 446 | Apply bit flip properties | 164248141824 | 4min
9 | 558 | Apply bit flip properties | 154331447296 | 4min
10 | 670 | Apply bit flip properties | 153816514560 | 4min
11 | 782 | Apply bit flip properties | 153816514560 | 4min
11 | 893 | Apply bit flip properties | 153816514560 | 4min
12 | 1005 | Apply bit flip properties | 153816514560 | 4min
13 | 1116 | Apply bit flip properties | 153816514560 | 4min
14 | 1225 | Apply bit flip properties | 153816514560 | 4min
15 | 1335 | Apply bit flip properties | 153816514560 | 4min
16 | 1444 | Apply bit flip properties | 153816514560 | 4min
16 | 1552 | Apply bit flip properties | 153816514560 | 4min
19 | 1663 | Apply Sum property. Sum(a0) = 128 | 24011833344 | 38s
20 | 1771 | Apply bit flip properties | 27183794176 | 42s
21 | 1882 | Apply bit flip properties | 21408495616 | 33s
21 | 1993 | Apply bit flip properties | 21408495616 | 33s
23 | 2100 | Apply bit flip properties | 20679641088 | 32s
23 | 2206 | Apply bit flip properties | 25775753216 | 40s
24 | 2312 | Apply bit flip properties | 29945434112 | 47s
25 | 2422 | Apply bit flip properties | 29945434112 | 47s
26 | 2530 | Apply bit flip properties | 28279986176 | 44s
27 | 2639 | Apply bit flip properties | 25694128128 | 40s
28 | 2748 | Apply bit flip properties | 11533188096 | 18s
29 | 2859 | Apply bit flip properties | 11533188096 | 18s
29 | 2965 | Apply bit flip properties | 11533188096 | 18s
30 | 3070 | Apply bit flip properties | 17135758336 | 27s
31 | 3175 | Apply bit flip properties | 25160384512 | 39s
32 | 3280 | Apply bit flip properties | 14291827712 | 22s
33 | 3388 | Apply bit flip properties | 14291827712 | 22s
34 | 3492 | Apply bit flip properties | 14291827712 | 22s
35 | 3597 | Apply bit flip properties | 14291827712 | 22s
35 | 3597 | (1. guess: Sum(a8) = 64) | 14291827712 | 22s
35 | 3597 | Apply Sum(a8) and all bytes bitflip properties | 14229858304 | 22s
35 | 3597 | (2. guess: Sum(a8) = 96) | 25697175552 | 40s
36 | 3597 | Apply Sum(a8) and all bytes bitflip properties | 25110788096 | 39s
36 | 3597 | (3. guess: Sum(a8) = 32) | 41394110464 | 65s
36 | 3597 | Apply Sum(a8) and all bytes bitflip properties | 41386897408 | 65s
36 | 3597 | (4. guess: Sum(a8) = 128) | 59602608128 | 2min
38 | 3597 | Apply Sum(a8) and all bytes bitflip properties | 46723739648 | 73s
43 | 3597 | Brute force phase: 53.26% | 44937826304 | 70s
47 | 3597 | (5. guess: Sum(a8) = 112) | 70494445568 | 2min
48 | 3597 | Apply Sum(a8) and all bytes bitflip properties | 29418924032 | 46s
50 | 3597 | (6. guess: Sum(a8) = 80) | 44079525888 | 69s
51 | 3597 | Apply Sum(a8) and all bytes bitflip properties | 41449598976 | 65s
51 | 3597 | (7. guess: Sum(a8) = 120) | 64660090880 | 2min
52 | 3597 | Apply Sum(a8) and all bytes bitflip properties | 11599750144 | 18s
52 | 3597 | Brute force phase completed. Key found: e5519e1cc92b | 0 | 0s
pm3 -->
On OSX on the other hand it just hangs here,
pm3 --> hf mf hardnested 0 A ffffffffffff 19 B
--target block no: 19, target key type:B, known target key: 0x000000000000 (not set), file action: none, Slow: No, Tests: 0
time | #nonces | Activity | expected to brute force
| | | #states | time
------------------------------------------------------------------------------------------------------
0 | 0 | Start using 8 threads and no SIMD core | |
0 | 0 | Brute force benchmark: inf million (2^inf) keys/s | 140737488355328 | 0s
^C
Any ideas?
Best regards magny
Ah I see,
static void get_SIMD_instruction_set(char* instruction_set) {
#if defined (__i386__) || defined (__x86_64__)
#if !defined(__APPLE__) || (defined(__APPLE__) && (__clang_major__ > 8))
#if (__GNUC__ >= 5) && (__GNUC__ > 5 || __GNUC_MINOR__ > 2)
if (__builtin_cpu_supports("avx512f"))
strcpy(instruction_set, "AVX512F");
else if (__builtin_cpu_supports("avx2"))
strcpy(instruction_set, "AVX2");
#else
if (__builtin_cpu_supports("avx2")) strcpy(instruction_set, "AVX2");
#endif
else if (__builtin_cpu_supports("avx")) strcpy(instruction_set, "AVX");
else if (__builtin_cpu_supports("sse2")) strcpy(instruction_set, "SSE2");
else if (__builtin_cpu_supports("mmx")) strcpy(instruction_set, "MMX");
else
#endif
#endif
strcpy(instruction_set, "no");
}
➜ client git:(master) ✗ clang --version
Apple LLVM version 8.1.0 (clang-802.0.42)
Target: x86_64-apple-darwin16.7.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
➜ client git:(master) ✗ gcc --version
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 8.1.0 (clang-802.0.42)
Target: x86_64-apple-darwin16.7.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
➜ client git:(master) ✗
changed __clang_major__ >= 8
and got
time | #nonces | Activity | expected to brute force
| | | #states | time
------------------------------------------------------------------------------------------------------
0 | 0 | Start using 8 threads and AVX2 SIMD core | |
0 | 0 | Brute force benchmark: inf million (2^inf) keys/s | 140737488355328 | 0s
Still hangs, for some reason it says 2^inf on the osx version
gcc --version?
I did it in the previous post, but it maybe got a bit hidden
➜ client git:(master) ✗ gcc --version
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 8.1.0 (clang-802.0.42)
Target: x86_64-apple-darwin16.7.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
I compiled this version from sources and have the paths setup correctly (I think), tried with gcc 7 as well with the same results. I will dig deeper in the source to see where it gets stuck more exactly if it can give some hits!