From: Michael Farrell Date: Thu, 26 Jan 2017 07:16:10 +0000 (+1100) Subject: Adds random nonce (r) option to `hf mf sim`. X-Git-Tag: v3.0.0~73^2~1 X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/f9c1dcd9f6e68a8c07cffed697a9c4c8caed6015?hp=f9c1dcd9f6e68a8c07cffed697a9c4c8caed6015 Adds random nonce (r) option to `hf mf sim`. This makes the PM3 generate pseudo-random nonces rather than sequential nonces, to make it act a bit more like a "real" MFC card. A reader would otherwise be able to detect the PM3 probing based on the predictable nonces and throw different authentication challenges (or refuse to authenticate at all). The code includes an implementation of a rand-like function (prand), similar to the one from libc, which is seeded automatically based on the time it takes between the PM3 starting up and the first call to the RNG. This isn't cryptographically random, but should be "good enough" to be able to evade basic detection. ---