欺骗&使用Applescript旋转MAC地址

时间:2013-08-14 12:20:33

标签: macos applescript

我正在尝试编写一个简单的Applescript,每隔10分钟从一系列定义的数字中旋转MAC地址 - 我将以下内容放在一起作为Automator中的工作流程并且它正在运行而不会丢失任何错误,但它似乎不起作用!

我不确定为什么不是,但这是我写的第一个Apple脚本所以我确定我忽略了一些简单的

on run
tell application "Terminal" to do shell script "sudo ifconfig en2 ether 4E:53:50:4F:4F:46" password "password" with administrator privileges


delay 600

tell application "Terminal" to do shell script "sudo ifconfig en2 ether 4E:53:50:4F:4F:40" password "password" with administrator privileges


delay 600

tell application "Terminal" to do shell script "sudo ifconfig en2 ether 4E:53:50:4F:4F:41" password "password" with administrator privileges


delay 600

tell application "Terminal" to do shell script "sudo ifconfig en2 ether 4E:53:50:4F:4F:42" password "password" with administrator privileges


delay 600

tell application "Terminal" to do shell script "sudo ifconfig en2 ether 4E:53:50:4F:4F:43" password "password" with administrator privileges


delay 600

tell application "Terminal" to do shell script "sudo ifconfig en2 ether 4E:53:50:4F:4F:44" password "password" with administrator privileges


delay 600

tell application "Terminal" to do shell script "sudo ifconfig en2 ether 4E:53:50:4F:4F:45" password "password" with administrator privileges

delay 100

tell application "Terminal" to do shell script "sudo ifconfig en2 ether 00:26:08:ff:85:ae" password "password" with administrator privileges


end run

1 个答案:

答案 0 :(得分:0)

  • airport -z
  • 退出系统偏好设置。
  • 在终端上运行scselect -n。
  

-n延迟更改系统的“位置”,直到下一次系统启动(或下次系统配置首选项为止)   改变)。

  • 运行sudo ifconfig en2 ether 4E:53:50:4F:4F:46
相关问题