+NOTE: You will need to enter an administrator's password. The Wi-Fi will be disabled briefly while the MAC address is being spoofed." with title "MacSpoof" buttons {"Quit", "Custom...", "Spoof!"} default button "Spoof!" cancel button "Quit" with icon noteend welcomeon autospoof() set currentInterface to getInterfaceName() set currentMAC to getMACAddress() set MACToSet to randomMAC(currentMAC) if changeMAC(currentInterface, MACToSet) is "0" and getMACAddress() is MACToSet then set finishAction to the button returned of (display dialog ("MAC address of interface " & currentInterface & " successfully spoofed to " & MACToSet & "!") with title "Success" buttons {"Back", "Quit"} default button "Quit" with icon note) else set finishAction to the button returned of (display dialog ("Failed to spoof MAC address of interface " & currentInterface & " to " & MACToSet & ".") with title "Failure" buttons {"Back", "Quit"} default button "Quit" with icon caution) end if if finishAction is "Quit" then quit end ifend autospoofon customspoof() set ifaceToSetManually to display dialog "Type in the name of your Wi-Fi interface. If you are not sure, the default option is probably right." with title "Enter Interface" default answer getInterfaceName() buttons {"Cancel", "Next"} default button "Next" cancel button "Cancel" set ifaceToSetManually to text returned of ifaceToSetManually set currentMAC to getMACAddress() set MACToSetManually to display dialog "Type in the MAC address you would like to spoof to.
0 commit comments