Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ###########################################################
- -->> ABOUT
- ###########################################################
- (*
- Phil Stokes -- 2017
- applehelpwriter.com
- sqwarq.com
- *)
- ###########################################################
- -->> DESCRIPTION
- ###########################################################
- (*
- Turn off the Automatic Proxy Configuration in Network System Preferences.
- *)
- ###########################################################
- -->> USAGE
- ###########################################################
- (*
- Requires Admin password.
- This script was developed primarily as part of a remedy for victims of OSX/Dok malware.
- This script does not remove the malware's files. Use DetectX for that: http://sqwarq.com/detectx
- A full recovery procedure for this malware can be found at:
- http://applehelpwriter.com/2017/04/29/how-to-recover-from-osxdok-malware/
- *)
- ###########################################################
- -->> COMMANDS
- ###########################################################
- set services to paragraphs of (do shell script "networksetup -listallnetworkservices")
- set autoproxyURL to " 0.0.0.0"
- set autoproxySERVICE to ""
- repeat with i from 2 to (count of services)
- set autoproxySERVICE to item i of services as text
- do shell script ("networksetup -setautoproxyurl " & (quoted form of autoproxySERVICE) & autoproxyURL) with administrator privileges
- do shell script ("networksetup -setautoproxystate " & (quoted form of autoproxySERVICE) & " off") with administrator privileges
- end repeat
- ###########################################################
- #EOF
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement