今天在学校跑sqlmap玩,然后机器的网就挂了。traceroute 8.8.8.8不通。只有自己AS的几个IP有应答。重启后有时没事有时还是不行。(其实是时间限制)
UofT的机器都会分配外网IP,但是IP地址一般保留--是的,跟MAC走。
好吧,忍几分钟,开Github,上这个东西:
https://github.com/feross/SpoofMAC
文档很清楚。
如果忘记挂VPN,机器被限制,直接断线换MAC,然后世界照常运行了。
这里就放一个自己抄文档的cheatsheet,给cheat https://github.com/chrisallenlane/cheat 用:
https://github.com/feross/SpoofMAC
# Get help:
spoof-mac.py --help
# To List available devices:
spoof-mac.py list
- "Ethernet" on device "en0" with MAC address 70:56:51:BE:B3:00
- "Wi-Fi" on device "en1" with MAC address 70:56:51:BE:B3:01 currently set to 70:56:51:BE:B3:02
- "Bluetooth PAN" on device "en1"
# To List available devices, but only those on wifi:
spoof-mac.py list --wifi
- "Wi-Fi" on device "en0" with MAC address 70:56:51:BE:B3:6F
# To Randomize MAC address (requires root)
spoof-mac.py randomize wi-fi
# or with name
spoof-mac.py randomize en0
# To Set device MAC address to something specific (requires root)
spoof-mac.py set 00:00:00:00:00:00 en0
# To Reset device to its original MAC address (requires root)
spoof-mac.py reset wi-fi
# Or do a restart.
就这样。