May 22nd, 2010

Identify Keyloggers

The most likely place you’ll find them is on public computers but can you indentify them ?

This small device record all your keystrokes including password. If you see it, take it off! But all keyloggers are not visible, software keyloggers also exist and are harder to catch…

Tags:
May 21st, 2010

Please change that default password!

Many people keep their password on their computer for some curious reason. You should think your router or firewall make the things safe but first change that default password!

Many devices are network connected, and you can access advanced settings inside it with a simple browser. If you type the IP address of your device in the bar address of your browser a login page appear.

If a password is needed you will find it inside the manual of the device. You need to know that default password are really easy to found for a hacker. Default password list exist on the web.

The prove is here : http://www.phenoelit-us.org/dpl/dpl.html

So, …

Please change that default password and make a safer world! ;)

May 19th, 2010

Change the background of many div on a rollover

First you need a method to change the background of a div :


function changeDivBkg(divId, imgSrc) {
document.getElementById(divId).style.backgroundImage = 'url(' + imgSrc + ')';
}

After that change the onMouseOver content of a div like that :


<div onMouseOver="changeManyDivBkg()">

Now the easy part, you can add so many lines as needed :


function changeManyDivBkg() {
changeDivBkg('divId1', 'image1.jpg');
changeDivBkg('divId2', 'image1.jpg');
}
May 19th, 2010

Verify an email with javascript

This method use a regular expression :


function VerifMail(mail)
{
var reg = new RegExp('^[a-z0-9]+([_|\.|-]{1}[a-z0-9]+)*@[a-z0-9]+([_|\.|-]{1}[a-z0-9]+)*[\.]{1}[a-z]{2,6}, 'i');
if(reg.test(mail))
return true;
else
return false;
}
Tags:
May 19th, 2010

Listing Installed Fonts in C#

It’s quite easy !

First add this line :


using System.Drawing.Text;

After that a simple object is needed :


InstalledFontCollection fonts = new InstalledFontCollection();

And now you just need to read each name :


for(int i = 0; i < fonts.Families.Length; i++)
Console.WriteLine(fonts.Families[i].Name);

The result of this simple application give the ‘name’ of the font.
The font file name can be different !

Tags: ,
May 8th, 2010

Recover deleted pictures.

First things first :

You should NOT write to the device, as it can overwrite deleted files. Shut down the machine as soon as possible, and restart it from a LiveCD or LiveUSB.

To recover your pictures you will need photorec, this software is inside the testdisk package and that’s a good news. The testdisk package is available in the repository of Ubuntu. To install it open a terminal window and type:


sudo apt-get install testdisk

Now run photorec like this :


sudo photorec

… and follow menus.

Tags: