alobbs / macchanger

GNU MAC Changer
http://www.gnu.org/software/macchanger
GNU General Public License v3.0
581 stars 112 forks source link

-r option fails #18

Open Edwardiv1 opened 8 years ago

Edwardiv1 commented 8 years ago

sudo maccchanger -r fails with: It's the same MAC!!

Setting the MAC explicitly with -m option works correctly.

Edwardiv1 commented 8 years ago

sudo strace -e trace=open,read macchanger -r wlan0 2>&1 | tail -n 15 open("/usr/share/macchanger/wireless.list", O_RDONLY) = 3 read(3, "00 00 8F Raytheon Raylink/WebGea"..., 4096) = 1358 read(3, "", 4096) = 0 read(3, "", 4096) = 0 read(3, "00 00 8F Raytheon Raylink/WebGea"..., 4096) = 1358 read(3, "", 4096) = 0 read(3, "", 4096) = 0 open("/dev/hwrng", O_RDONLY) = -1 ENOENT (No such file or directory) open("/dev/random", O_RDONLY) = 3 read(3, "\227\231\322\225", 4) = 4 Current MAC: 00:00:00:00:00:00 (Intel Corporate) Permanent MAC: 00:00:00:00:00:00 (Intel Corporate) New MAC: 00:00:00:00:00:00 (Intel Corporate) It's the same MAC!! +++ exited with 1 +++

I've masked the MAC with 00:00:... above, but the numbers are all the same.

Hitonoriol commented 8 years ago

Same