[Bug 1316278] Re: Cannot change mac with --random

Mathew Hodson mathew.hodson at gmail.com
Tue Feb 16 23:29:40 UTC 2016


** Changed in: macchanger (Ubuntu Xenial)
   Importance: Undecided => Medium

** Changed in: macchanger (Ubuntu Wily)
   Importance: Undecided => Medium

** Changed in: macchanger (Ubuntu Trusty)
   Importance: Undecided => Medium

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1316278

Title:
  Cannot change mac with --random

Status in macchanger package in Ubuntu:
  Fix Released
Status in macchanger source package in Trusty:
  In Progress
Status in macchanger source package in Wily:
  Fix Released
Status in macchanger source package in Xenial:
  Fix Released
Status in macchanger package in Debian:
  Fix Released

Bug description:
  [Impact]
  A bad patch prevents the --random option from working at all.

  This was corrected in Debian, and in newer Ubuntu releases, but has
  not been corrected in Trusty. This SRU contains the corrected patch.

  [Test Case]
  - Use --random option
  - See if MAC changed or if resulted in error message

  [Regression Potential]
  Since this code simply doesn't work at all at the moment, the only regression would be for it to crash instead of not printing the error message.

  
  Original description:

  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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/macchanger/+bug/1316278/+subscriptions



More information about the Ubuntu-sponsors mailing list