最近の迷惑メールはどきっとさせられることが多い [Macのウイルス対策]
tell application "Mail"
set selectedMail to selection repeat with myMail in every item of selectedMail set myText to myText & source of myMail end repeat end tell myText --結果出力 |
Macのウイルスのチェック [Macのウイルス対策]
(* 削除設定 *)
set deleteCommand to false (* Mac.BackDoor.iWormの削除するなら false を true *)
(* Flashbackの削除はわからない *)
set commandText to ""
(* トロイの木馬Flashbackの確認 *)
set f to false
try
do shell script "defaults read /Applications/Safari.app/Contents/Info LSEnvironment"
on error message
if (message contains "does not exist") then
try
do shell script "defaults read ~/.MacOSX/environment DYLD_INSERT_LIBRARIES"
on error message
if not (message contains "does not exist") then set f to true
end try
else
set f to true
end if
end try
if f then
set commandText to "トロイの木馬「Flashback」に感染の疑い" & return
else
set commandText to "Ok : No [Flashback]" & return
end if
(* ワームMac.BackDoor.iWormの確認 *)
try
tell application "Finder" to name of folder "Library:Application Support:JavaW" of startup disk
set commandText to commandText & "ワーム[Mac.BackDoor.iWorm]に感染の疑い" & return
if deleteCommand then
try
do shell script "rm /Library/Application Support/JavaW/JavaW /Library/LaunchDaemons/com.JavaW.plist"
set commandText to commandText & " Mac.BackDoor.iWormの削除成功" & return
on error
set commandText to commandText & " Mac.BackDoor.iWormの削除失敗" & return
end try
end if
on error
set commandText to commandText & "Ok : No [Mac.BackDoor.iWorm]" & return
end try
(* 結果ログ *)
commandText