簡體   English   中英

使用Applescript欺騙和旋轉MAC地址

[英]Spoofing & Rotating MAC address using Applescript

我正在嘗試編寫一個簡單的Applescript,它每10分鍾從定義的數字中輪換一次MAC地址-我將以下內容作為工作流放在Automator中,並且在運行時沒有拋出任何錯誤,但是沒有似乎在工作!

我不確定為什么不是,但這是我編寫的第一個Apple Script,所以我確定我忽略了一些簡單的東西

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
  • 機場-z
  • 退出系統首選項。
  • 在終端上運行scselect -n。

-n將更改系統的“位置”延遲到下一次系統引導(或下次更改系統配置首選項)。

  • 運行sudo ifconfig en2 ether 4E:53:50:4F:4F:46

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM