Advertisement
BaSs_HaXoR

change mac on kali linux hw

Jun 14th, 2018
283
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.15 KB | None | 0 0
  1. ----------------------------------------------------------------------------------------------------------
  2. // https://www.hacking-tutorial.com/tips-and-trick/how-to-change-mac-address-on-kali-linux/
  3. ----------------------------------------------------------------------------------------------------------
  4. 1. ifconfig | grep HWaddr
  5.  
  6. How To Change MAC Address On Kali Linux
  7.  
  8. you will see your original MAC address, mine was 08:00:27:b2:4d:4b
  9. ----------------------------------------------------------------------------------------------------------
  10. 2. To temporary change our MAC address, we need to turn off the network interface first by running this command
  11.  
  12. ifconfig eth0 down
  13. ----------------------------------------------------------------------------------------------------------
  14. 3. After that we can configure the new MAC address
  15.  
  16. ifconfig eth0 hw ether 00:00:00:00:00:02
  17.  
  18. you can change the MAC address using this hexadecimal format XX:XX:XX:XX:XX:XX
  19. ----------------------------------------------------------------------------------------------------------
  20. 4. Now we can turn on the network interface again.
  21.  
  22. ifconfig eth0 up
  23. ----------------------------------------------------------------------------------------------------------
  24. 5. And the last we can check again our MAC whether it's change or not.
  25.  
  26. How To Change MAC Address On Kali Linux
  27.  
  28. if we follow until this step, MAC address will back to default after we restart our machine. Go to next page to view how to change MAC address permanently.
  29. ----------------------------------------------------------------------------------------------------------
  30. 6. Kali Linux was built based on Debian. In Debian all the network interface was located on /etc/network/interfaces.
  31. ----------------------------------------------------------------------------------------------------------
  32. 7. We will configure the /etc/network/interfaces. In this tutorial I will use pico text editor, but you can choose any of your favourite text editor.
  33.  
  34. pico /etc/network/interfaces
  35. ----------------------------------------------------------------------------------------------------------
  36. 8. Now we will add one line of script to change our MAC address permanently
  37.  
  38. pre-up ifconfig eth0 hw ether 00:00:00:00:00:02
  39.  
  40. This script will be called on system startup.
  41.  
  42. How to change MAC address on kali linux
  43. ----------------------------------------------------------------------------------------------------------
  44. 9. If we want to restore the default MAC address, just add the # sign in front of script in step 8.
  45.  
  46. #pre-up ifconfig eth0 hw ether 00:00:00:00:00:02
  47.  
  48. ----------------------------------------------------------------------------------------------------------
  49. Conclusion:
  50. 1. Changing MAC address usually needed for privacy and prevent tracking in the local network about our hardware information(e.g: in public wi-fi network).
  51.  
  52. 2. Some network administrator they make blocking rule in proxy or router by adding the MAC address. To ensure interoperability and preventing being blocked by the proxy or router blacklist rule, we can change our MAC address.
  53.  
  54. Hope you found it useful
  55.  
  56. (Visited 62,550 times, 14 visits today)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement