Re: Can iTunes run AppleScript as well as Trojan code?
Re: Can iTunes run AppleScript as well as Trojan code?
- Subject: Re: Can iTunes run AppleScript as well as Trojan code?
- From: Rob Jorgensen <email@hidden>
- Date: Thu, 8 Apr 2004 22:27:31 -0400
At 12:37 AM +0100 4/9/04, Martin Orpen wrote:
Looks like iTunes can't tell the difference between a document file and an
application file :-(
http://www.macnn.com/news/24162
A sample of the viral mp3 is here (URL broken, so that you can give it some
thought before clicking):
http://www.scoop.se/
~blgl/virus.mp3.sit
I downloaded and decompressed the file. Here's the skeleton of a poor
man's trojan detector to address this particular type of silliness.
The script has plenty of room for improvement (reveal the file, move
to trash, etc.). :-)
--
property extensions_ : {"gif", "jpg", "mp3"}
on adding folder items to this_folder after receiving added_items
repeat with item_ in added_items
set info_ to (info for item_)
if file type of info_ is "APPL" and name extension of info_ is in
extensions_ then
display dialog "Trojan Alert! A file named " & name of info_ & "
appears to be a trojan. Use extreme caution when opening this file."
end if
end repeat
end adding folder items to
--
-- Rob
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.