首页 > 其他分享 >macchanger命令

macchanger命令

时间:2023-01-17 10:46:42浏览次数:63  
标签:00 0c -- 29 命令 MAC VMware macchanger

目录

macchanger命令

命令描述

用于处理MAC地址相关事项,比如:显示打印、更改

命令技巧

# macchanger命令太长了,先给他定义一个别名,这样方便好多
┌──(root㉿kali)-[/etc/network]
└─# alias mac='macchanger

使用方法

# macchanger的使用格式
┌──(root㉿kali)-[/etc/network]
└─# mac -h           
GNU MAC Changer
Usage: macchanger [options] device
# 具体使用选项
──(zhanghe㉿kali)-[~]
└─$ macchanger --help
GNU MAC Changer
Usage: macchanger [options] device

  -h,  --help                   Print this help
  -V,  --version                Print version and exit
  -s,  --show                   Print the MAC address and exit

  -e,  --ending                 Don't change the vendor(供应商) bytes  # 不要改变供应商的字节,后面三部分可以变化
  -a,  --another                Set random(随机) vendor MAC of the same kind(同类)  # 随机同类厂商的MAC
  -A                            Set random vendor MAC of any kind # 随机生成任意厂商的
  -p,  --permanent              Reset to original(原始的), permanent(永久) hardware MAC   # 重置到
  -r,  --random                 Set fully random MAC # 设置完成随机的MAC地址,瞎编的
  -l,  --list[=keyword]         Print known vendors # 打印已知的厂商
  -b,  --bia                    Pretend to be a burned(烧坏的)-in-address 假装是一个烧毁的地址
  -m,  --mac=XX:XX:XX:XX:XX:XX
       --mac XX:XX:XX:XX:XX:XX  Set the MAC XX:XX:XX:XX:XX:XX

Report bugs to https://github.com/alobbs/macchanger/issues

┌──(root㉿B)-[~]
└─# mac --version
GNU MAC changer 1.7.0
Written by Alvaro Lopez Ortega <[email protected]>

Copyright (C) 2003,2013 Alvaro Lopez Ortega <[email protected]>.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

# 通过此命令我们可以看出来将MAC地址分成了两层:当前使用和永久的
┌──(root㉿B)-[~]
└─# mac --show eth0
Current MAC:   00:0c:29:d0:04:78 (VMware, Inc.)
Permanent MAC: 00:0c:29:d0:04:78 (VMware, Inc.)

┌──(root㉿B)-[~]
└─# macchanger --show eth0
Current MAC:   00:0c:29:d0:04:78 (VMware, Inc.)
Permanent MAC: 00:0c:29:d0:04:78 (VMware, Inc.)
                                                                                                               
┌──(root㉿B)-[~]
└─# macchanger --ending eth0
Current MAC:   00:0c:29:d0:04:78 (VMware, Inc.)
Permanent MAC: 00:0c:29:d0:04:78 (VMware, Inc.)
New MAC:       00:0c:29:df:b9:72 (VMware, Inc.)
                                                                                                               
┌──(root㉿B)-[~]
└─# macchanger --another eth0
Current MAC:   00:0c:29:df:b9:72 (VMware, Inc.)
Permanent MAC: 00:0c:29:d0:04:78 (VMware, Inc.)
New MAC:       14:8a:70:a7:02:d1 (ADS GmbH)
                                                                                                               
┌──(root㉿B)-[~]
└─# macchanger -A  eth0      
Current MAC:   14:8a:70:a7:02:d1 (ADS GmbH)
Permanent MAC: 00:0c:29:d0:04:78 (VMware, Inc.)
New MAC:       00:05:97:47:72:9e (Eagle Traffic Control Systems)
                                                                                                               
┌──(root㉿B)-[~]
└─# macchanger --random eth0 
Current MAC:   00:05:97:47:72:9e (Eagle Traffic Control Systems)
Permanent MAC: 00:0c:29:d0:04:78 (VMware, Inc.)
New MAC:       22:ce:dd:c4:ed:86 (unknown)
# 列出已知厂商的
┌──(root㉿B)-[~]
└─# macchanger --list | grep -i h3c
4039 - 00:0f:e2 - Hangzhou H3C Technologies Co., Ltd.
9070 - 00:23:89 - HANGZHOU H3C Technologies Co., Ltd.
13143 - 0c:da:41 - Hangzhou H3C Technologies Co., Limited
14135 - 38:22:d6 - H3C Technologies Co., Limited
14297 - 3c:e5:a6 - Hangzhou H3C Technologies Co., Ltd.
14883 - 58:66:ba - Hangzhou H3C Technologies Co., Limited
15011 - 5c:dd:70 - Hangzhou H3C Technologies Co., Limited
15553 - 70:f9:6d - Hangzhou H3C Technologies Co., Limited
15561 - 74:25:8a - Hangzhou H3C Technologies Co., Limited
15975 - 80:f6:2e - Hangzhou H3C Technologies Co., Limited
17620 - c4:ca:d9 - Hangzhou H3C Technologies Co., Limited
┌──(root㉿B)-[~]
└─# macchanger --random --bia eth0 
Current MAC:   22:ce:dd:c4:ed:86 (unknown)
Permanent MAC: 00:0c:29:d0:04:78 (VMware, Inc.)
New MAC:       d8:84:e6:41:fc:12 (unknown)
                                                                                                               
┌──(root㉿B)-[~]
└─# macchanger --permanent eth0   
Current MAC:   d8:84:e6:41:fc:12 (unknown)
Permanent MAC: 00:0c:29:d0:04:78 (VMware, Inc.)
New MAC:       00:0c:29:d0:04:78 (VMware, Inc.)
                                                                                                               
┌──(root㉿B)-[~]
└─# macchanger --permanent eth0
Current MAC:   00:0c:29:d0:04:78 (VMware, Inc.)
Permanent MAC: 00:0c:29:d0:04:78 (VMware, Inc.)
New MAC:       00:0c:29:d0:04:78 (VMware, Inc.)

┌──(root㉿B)-[~]
└─# macchanger --mac='aa:aa:aa:aa:aa:aa' eth0
Current MAC:   00:0c:29:d0:04:78 (VMware, Inc.)
Permanent MAC: 00:0c:29:d0:04:78 (VMware, Inc.)
New MAC:       aa:aa:aa:aa:aa:aa (unknown)

┌──(root㉿B)-[~]
└─# macchanger --permanent eth0              
Current MAC:   aa:aa:aa:aa:aa:aa (unknown)
Permanent MAC: 00:0c:29:d0:04:78 (VMware, Inc.)
New MAC:       00:0c:29:d0:04:78 (VMware, Inc.)
                                                                                                               
┌──(root㉿B)-[~]
└─# macchanger --permanent eth0
Current MAC:   00:0c:29:d0:04:78 (VMware, Inc.)
Permanent MAC: 00:0c:29:d0:04:78 (VMware, Inc.)
New MAC:       00:0c:29:d0:04:78 (VMware, Inc.)
It's the same MAC!!

使用演示

标签:00,0c,--,29,命令,MAC,VMware,macchanger
From: https://www.cnblogs.com/yizhangheka/p/17057192.html

相关文章

  • Git命令使用
    文件夹关联git仓库首先初始化本地仓库gitinit将本地文件夹与远程关联gitremoteaddorigin代码仓库地址添加文件gitadd123.txt注释gitcommit-m"1231"将远......
  • 服务器系统监控参数命令集景
    Linux服务器那么多参数该如何监控,掌握这些Linux监控命令可以早点下班!瑞哥......
  • CAD如何合并多段线?CAD合并线命令应用实例
    CAD设计过程中,如果想要将多段直线、圆弧、多段线合并为一条多段线的话,该如何操作呢?CAD如何合并多段线?本文小编就来给大家分享一下浩辰CAD软件中合并线命令应用实例。CAD合......
  • Git常用命令
    Git常用命令基础操作gitstatus:查看文件状态gitadd:将文件的修改加入暂存区gitreset:将暂存区的文件取消暂存或者是切换到指定版本gitcommit:将暂存区的文件......
  • cmd命令行弹出提示消息的几种方法备忘
    msg%username%/time:10"要显示的内容"mshtavbscript:msgbox("要显示的内容",64,"要显示的标题")(window.close)mshtavbscript:CreateObject("Wscript.Shell").popu......
  • Docker(常用命令)
    帮助启动类命令启动docker:systemctlstartdocker停止docker:systemctlstopdocker重启docker:systemctlrestartdocker查看docker状态:systemctlstatusdocker开机启动......
  • Linux 所有命令失效
    Linux所有命令失效原因:不久前在/etc/profile将Nginx配置到了环境变量中。修改后重新加载profile后仍可正常使用,直到晚上发现所有命令失效,网上说可能是修改/etc/......
  • Linux常用命令
    Linux中许多常用命令是必须掌握的,这里将我学linux入门时学的一些常用的基本命令分享给大家一下,希望可以帮助你们。date#显示或设定系统的日期与时间。ls#列......
  • GIT常见命令(一)
    参考:https://blog.csdn.net/liuxiaoheng1992/article/details/79108233https://www.cnblogs.com/rainboy2010/p/12671633.htmlhttps://www.cnblogs.com/marblemm/p/7161......
  • linux系统通过yum命令安装jdk
    在linux上查看jdk版本命令:java-version,如下图所示-bash:java:commandnotfound,说明没有安装jdk接下来执行yumsearchjava|grepjdk命令,查询可以安装的jdk版本rpm......