Giter Site home page Giter Site logo

krabelize / openwrt-random-mac-changer Goto Github PK

View Code? Open in Web Editor NEW
16.0 2.0 5.0 37 KB

OpenWrt change MAC adres on any interface

License: BSD 3-Clause "New" or "Revised" License

Shell 100.00%
openwrt mac-changer mac-address-spoofing spoofing random-mac-address

openwrt-random-mac-changer's Introduction

OpenWrt random MAC changer

This script changes the MAC address on OpenWrt on any specified (v)NIC interface. Change th OUI of the MAC address in line 13 to a legitmate NIC vendor for RFC and IEEE compliancy. The 802.1X authentication server might have a validator in place to check spoofed MAC addresses against the above IEEE database.

Read this blog post for more information.

Install MAC address changer script:

Initialize on startup:

$ chmod +x /etc/init.d/mac-change.sh
$ /etc/init.d/mac-change.sh enable

Verify:

$ /etc/init.d/mac-change.sh enabled && echo on
on

Edit /etc/rc.local to execute on startup in case the init is too slow:

$ vi /etc/rc.local
/etc/init.d/mac-change.sh start
exit 0

Use the logread command to for debugging and troubleshooting the script. More info on init scripts.

Leverage the crontab utilty if you want to change your MAC address every 3 hours:

$ /etc/init.d/cron start
$ /etc/init.d/cron enable
$ crontab -e
* 3 * * * /etc/init.d/mac-change.sh start

Verify:

$ crontab -l
* 3 * * * /etc/init.d/mac-change.sh start

License

Berkeley Software Distribution (BSD)

Author

Jeroen van Kessel | cryptsus.com - we craft cyber security solutions

openwrt-random-mac-changer's People

Contributors

krabelize avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.