Wednesday, September 29, 2010

Creating IM Bot

This quick tutorial will show you how to develop your own functional IM bot that works with Google Talk, Yahoo! Messenger, Windows Live and all other popular instant messaging clients.
To get started, all you need to know are some very basic programming skills (any language would do) and web space to host your “bot”.


If you like to write a personal IM bot, just follow these simple steps:-
Step 1: Go to www.imified.com and register a new account with a bot.
Step 2: Now it’s time to create a bot which is actually a simple script that resides on your public web server.
It could be in PHP, Perl, Python or any other language.
Example Hello World bot:
The example below illustrates just how easy it is to create a bot.
This example is coded in PHP.
<?php
switch ($_REQUEST['step']) {
case 1:
echo "Hi, what's your name?";
break;
case 2:
echo "Hi " . $_REQUEST['value1'] . ", where do you live?";
break;
case 3:
echo "Well, welcome to this hello world bot, " . $_REQUEST['value1'] . "<br>from " . $_REQUEST['value2'] . ".<reset>";
break;
}
?>
Step 3: Once your script is ready, put it somewhere on your web server and copy the full URL to the clipboard.
Step 4: Now login to your imified account, paste the script URL

Step 5: Add that im bot your friends list. That’s it.
This is a very basic bot but the possibilities are endless.

Uninstalling Windows from Command Prompt

One option included in Windows XP is the ability to uninstall XP if you performed an upgrade from Windows 98, 98SE, or Windows Me.

The standard method of removing XP is achieved by booting into XP normally and uses the Add/Remove Programs tool in Control Panel.

If you are unable to start XP normally, the second option is to load XP in Safe Mode then use the same tool.

If you are unable to boot normally or boot into Safe Mode, XP can be removed by uninstalling from a Command Prompt.

The procedure is as follows:

Important Note: This procedure is available only if a successful image of the previous operating system was created during the XP upgrade.

Start the computer to Safe Mode with Command Prompt.

At the command prompt, type cd\, and then press ENTER.

Type cd\windows\system32, and then press ENTER.

Type osuninst.exe, and then press ENTER.

On screen instructions will guide you through the uninstall process to revert to the previous operating system.

This procedure can only be performed by users logged on as Administrator or a user with administrative rights.

Tracing or Routing a website using command prompt

Tracing or Routing a website using command prompt. This tip is only meant for educational purpose. I mainly use this trick to find out the hosting provider where a particular domain is hosted.
Follow the below steps:
1.   Start->Run->CMD  ie; open Command prompt
2.  Type the following command and press enter.

tracert www.websitename.com

in the above command, enter the desired website name.
Once you press enter, it tell you where a particular domain is hosted, Location, Country and some details of that domain.
Disclaimer: I am not responsible for this trick if this is used in a wrong way. I didn’t invent this method rather I myself found it somewhere else. Do not use this for Hacking purpose.