Catch up on stories from the past week (and beyond) at the Slashdot story archive


Forgot your password?

Submission Summary: 0 pending, 1 declined, 0 accepted (1 total, 0.00% accepted)

Slashdot Deals: Deal of the Day - 6 month subscription of Pandora One at 46% off. ×

Submission + - Possible OS X exploit

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."

You can tell the ideals of a nation by its advertisements. -- Norman Douglas