Monthly Archives: April 2011 - Page 2

Code of the Day: Javascript Detect Internet Explorer

How many hours have you spent wasted on getting your site to run or display properly on Internet Explorer?
Do you want to cheat and use browser stiffing instead of feature detection?

1
2
// isIE is your key to freedom! You still never again be the same.
var isIE = !!!!!!!!window.ActiveXObject;//!!!!!

Larry Battle

I love to program, and discover new tech. Check out my stackoverflow and github accounts.

More Posts - Website

Follow Me:
Twitter

Video: Learn How to Type Faster in Step 3


Feeling the urge to learn something new, I decided to discover what it takes to produce a video and host it on Youtube.com.
After brain storming some ideas and watching videos to see what was out there, I finally decided upon making a video tutorial on how improve one’s typing speed.
Here’s the result.

“Learn How to Type Faster in Step 3 ” is my first video that I ever made and I learned a lot from the whole process. It took about half a day to complete but that was due to the fact that I had to research what software to use. A few rules that I found along the way are to are

  1. Get help writing subtitles because they take a longggg time! Unfortunately for me, the auto-caption feature failed with an error message of “Machine Transition Failed”. So that left me manually writing the subtitles by hand. I spent 2 hours writing subtitles for this 14 minute video, and the worse part is I could only insert 8 minutes worth of subtitles into the video because the on-line subtitle program I was using(captionTube) crashed every time after that point.
  2. Upload then do something else. It’s going to be a while get all 50MB+ of your video onto youtube.com. My upload time was about 1 hour.
  3. Don’t record everything in one take. It’s better to record multiple takes of a segment, then join the best parts into one long video.

For those wondering, I only used free-ware software for this project. Here’s a list of what I used.

Larry Battle

I love to program, and discover new tech. Check out my stackoverflow and github accounts.

More Posts - Website

Follow Me:
Twitter

Retrieve Facebook password using javascript buffer overload attack.

This was an april fools joke

Hey Everyone,
I found a problem with the way most browsers handle the document.cookie global variable.
If too many invalid characters are created, then this causes a buffer overload and allows all tab index to manually placed. So if you cause a buffer onload in the browser then called document.cookie, it’s then searches through all the tabs and windows in search for matching url string for the cookie.

This attack affects Firefox 4 and Internet Explorer 8, and 9.
I already reported this to them and they’re working on it.

Could other people tell me if this works on their browser?
Here’s a working.
facebookPasswordScript.

The following scripts causes a buffer overflow and retrieve all the password in the current tab.
Paste and run this in your address bar to see your passwords.

1
javascript:((window.document.cookie.split(';')),(__=![]+[]),(_=+!+[]),(__)[_]+'p'+(!![]+[])[_]+(__+[][[]])[_+[+[]]]+(__)[_+_]+' '+(__)[+[]]+(+[])+([][[]]+[])[+[]]+(__)[!+[]+!+[]]+(__)[!+[]+!+[]+!+[]]);

Here’s part of the code to retrieve your facebook password.

1
2
3
4
5
6
7
8
9
10
var isCurrentTabFacebook = function(){
      return (/facebook.com/i).test(document.location.href);
};
var i = window["tabs"].length || 0;
while( i-- ){
      isCurrentTabFacebook();
}
// Causes a buffer overflow then calls the same script twice through out the tabs.
var facebookCookiePassword = ((window.document.cookie.split(';')),(__=![]+[]),(_=+!+[]),(__)[_]+'p'+(!![]+[])[_] + (__+[][[]])[_+[+[]]]+(__)[_+_]+' '+(__)[+[]]+(+[])+([][[]]+[])[+[]]+(__)[!+[]+!+[]]+(__)[!+[]+!+[]+!+[]]);
alert( facebookCookiePassword );

Larry Battle

I love to program, and discover new tech. Check out my stackoverflow and github accounts.

More Posts - Website

Follow Me:
Twitter