Results 1 to 2 of 2

Thread: How to write a script to alter IP address and MAC address at startup with /dev/random

  1. #1
    Just burned his ISO
    Join Date
    Jul 2009
    Posts
    3

    Default How to write a script to alter IP address and MAC address at startup with /dev/random

    Hello,
    I am trying to create a startup script for backtrack that will alter my IP and MAC address on startup. I found several tutorials on how to write an init script, but I can't seem to find one that explains how to use /dev/random (random # generator) alongside the MAC and IP change commands.

    Can I do this with /dev/random? Or is there a better function that is built into Ubuntu or the linux kernel?

    How would I go about doing this? Also, can I implement this BEFORE the networking services run? Or do I need to wait until after then do the normal start/stop commands?

    Thanks,
    Imprive

  2. #2
    Just burned his ISO
    Join Date
    Jul 2012
    Posts
    10

    Default Re: How to write a script to alter IP address and MAC address at startup with /dev/ra

    I don't know about /dev/random, but macchanger itself provides random function

    ifconfig eth0 down
    macchanger -r eth0
    ifconfig eth0 up

Similar Threads

  1. Perl script to randomize MAC address
    By m0skit0 in forum Experts Forum
    Replies: 3
    Last Post: 04-19-2011, 09:38 PM
  2. Gerix-Wifi-Cracker random mac address fix
    By lordplagueis in forum BackTrack Fixes
    Replies: 0
    Last Post: 11-26-2010, 05:02 AM
  3. OUI (MAC address) lookup script
    By Hawkje in forum Experts Forum
    Replies: 11
    Last Post: 07-12-2010, 08:18 PM
  4. Request: OUI (MAC address) lookup script
    By Hawkje in forum Tool Requests
    Replies: 3
    Last Post: 07-09-2010, 09:23 AM
  5. shell script to change MAC address
    By thims in forum OLD Programming
    Replies: 0
    Last Post: 11-14-2009, 01:57 PM

Posting Permissions

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