Comment 0 for bug 1316278

Revision history for this message
wizwiz50 (wizwiz50) wrote :

Hello,

macchanger works only when I'm specifying which MAC to use. Using macchanger with --random always return 'It's the same MAC!!'.

I think I find out why, there's something in this patch made to improve random MAC generation :

http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/trusty/macchanger/trusty/view/head:/debian/patches/08-fix_random_MAC_choice.patch

In mc_mac_random()
- 'mac' argument is saved into 'newmac', on the stack (line 40)
- the MAC is randomized and every byte of 'mac' is changed (line 48...)
- 'mac' is overwritten by 'newmac' value (line 82)

Thank you