WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: macchanger  (Read 8980 times)

Offline mic

  • Newbie
  • *
  • Posts: 27
Re: macchanger
« Reply #15 on: August 22, 2021, 09:18:13 AM »
Th. you pal .
But problem in macchanger !  After reboot the computer, MAC values are reset to Permanent MAC !

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11634
Re: macchanger
« Reply #16 on: August 22, 2021, 09:30:33 AM »
Hi mic
You will have to place your  macchanger  command in a script that runs at startup.

Offline mic

  • Newbie
  • *
  • Posts: 27
Re: macchanger
« Reply #17 on: August 22, 2021, 09:51:33 AM »
Hi Rich.
That is, it is normal for macchanger?

Can I ask you for some link to the script creation guide ... and where to put it ?!

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11634
Re: macchanger
« Reply #18 on: August 22, 2021, 10:32:00 AM »
Hi mic
To the best of my knowledge, all network devices have their MAC address hardcoded in firmware and will revert to
that address when rebooted.

For Tinycore, create a file in  /home/tc/.X.d/  containing the following:
Code: [Select]
sudo ifconfig eth0 down
sudo macchanger -m xx:xx:xx:xx:xx:xx eth0
sudo ifconfig eth0 up

For Lubuntu, I don't know. It's a little dated, but maybe this will help:
https://askubuntu.com/questions/166777/how-can-you-make-a-sh-file-come-on-at-startup-in-lubuntu-12-04
« Last Edit: August 22, 2021, 10:33:54 AM by Rich »

Offline mic

  • Newbie
  • *
  • Posts: 27
Re: macchanger
« Reply #19 on: August 22, 2021, 10:47:23 AM »
Thanks a lot, Rich! I roughly understood what it was about!

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11634
Re: macchanger
« Reply #20 on: August 22, 2021, 11:04:24 AM »
Hi mic
If the system uses  ifconfig  to bring up the network, the  hw ether  option can also set the MAC address:
Code: [Select]
ifconfig eth0 192.168.1.45 netmask 255.255.255.0 broadcast 192.168.1.255 hw ether xx:xx:xx:xx:xx:xx up

Offline mic

  • Newbie
  • *
  • Posts: 27
Re: macchanger
« Reply #21 on: August 23, 2021, 07:21:35 AM »
Hi Rich.
18.4 LTS   uses  "ip"  (  sudo ip link set dev name address XX:XX:XX:XX:XX:XX  )  ( but i thought macchanger is setting the address permanently!  )