Results 1 to 20 of 20

Thread: How to make mac address random at each boot up

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date

    How to make mac address random at each boot up

    Some of us are lazy and sometimes forget to change our mac address before doing something.
    I would like to share a method for getting a script to run at each boot so your mac is spoofed automatically.

    Other distribution provided the file called /etc/rc.local but Debian does not use rc.local to customize the boot process. You can use simple method as follows to customize it.

    i) Create a script called in /etc/init.d/ directory(login as root)
    # vi /etc/init.d/

    ii) Add commands to this script

    ifconfig wlan0 down
    macchanger -r wlan0
    ifconfig wlan0 up

    save the file

    iii) Setup executable permission on script:
    # chmod +x /etc/init.d/

    iv)Make sure this script get executed every time Debian Linux system boot up/comes up:
    # update-rc.d defaults 100

    Where, Your startup script name

    defaults : The argument 'defaults' refers to the default runlevels, which are 2 through 5.

    100 : Number 100 means script will get executed before any script containing number 101. Just run the command ls –l /etc/rc3.d/ and you will see all script soft linked to /etc/init.d with numbers.

    Next time you reboot the system, you custom command or script will get executed via
    Last edited by Defaultzero; 2014-07-08 at 22:12.

Similar Threads

  1. Updated Guide: How to make random MAC address at each boot
    By bluedangerforyou in forum How-To Archive
    Replies: 2
    Last Post: 2017-07-28, 23:51
  2. Kali assigns random mac address to wlan0
    By trojan_cow in forum TroubleShooting Archive
    Replies: 0
    Last Post: 2017-06-15, 18:44
  3. Replies: 2
    Last Post: 2016-10-09, 06:12
  4. Replies: 0
    Last Post: 2014-02-10, 17:53

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts