Sunday, 28 August 2011

How to start Windows files and other programs from a batch file

To run Microsoft Windows programs or files use the START command. The below example would run Windows Notepad.
START /MAX NOTEPAD
You can also specify the direct location of the file by typing the below command.
START /MAX C:\Windows\NOTEPAD.EXE
*Windows users who have a different directory (e.g. Windows 2000 users) would need to substitute WINNT or the name of their directory in place of Windows in the above example.
The /m representing it to start the window Maximized.

Creating a batch file delay

Below is an example of how to delay a batch file any where from 5 to 99 seconds. In the below example we illustrate a 5 second delay.
TYPE NUL | CHOICE.COM /N /CY /TY,5 >NUL

keep it simple silly!

How to make a time log in a batch file

The below example demonstrates how to create a time log of when the batch file is loaded, or for example, this could be used in the autoexec.bat when someone logs into a computer that supports this file.
ECHO. |TIME > TIME
COPY LOG +TIME
An alternate, slightly more complicated method that, to our knowledge, cannot be used in Windows NT, Windows 2000 or Windows ME would be the following:
echo @prompt set date=$d$_set time=$t$h$h$h > {a}.bat
%comspec% /e:2048 /c {a}.bat > {b}.bat
for %%v in ({b}.bat del) do call %%v {?}.bat
echo %date% %time% >> log
Another alternative is:
echo. |time |find "current" >> log
For the above batch file to work properly you must create a file called log, by typing edit log and then save and exit the file, creating a 0 bytes file. If this file is not created or not created properly you will receive the error message Content of destination lost before copy.

Howto Compiling C program and creating executable file under Linux / UNIX / *BSD

How do I compile C program and create an executable file under Linux or UNIX operating systems?

You need GNU project C and C++ compiler for compiling C program and creating an executable file. Most Unix and Linux (*BSD) user start compiling their C program by the name cc. But you can use gcc command to compile program. First make sure you have gcc installed:

Make Sure Compiler Is Installed

Type the following command to verify that gcc is installed:
which gcc
Output:
/usr/bin/gcc
Find out version of gcc:
$ gcc --version
Output:
gcc (GCC) 4.0.3 20060212 (prerelease) (Debian 4.0.2-9)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
To compile C program you need to use syntax as follows:
gcc program.c -o program-output

Writing Your First C Program Under Linux / UNIX

Use a text editor such as vi or gedit to create a C program called first.c:
$ vi first.c
Type the following lines (program):
#include <stdio.h>
int main(void){
printf("My first C program\n");
return 0;
}

How Do I Compile My Program?

To compile C program first.c, and create an executable file called first, enter:
$ gcc first.c -o first
OR
$ cc first.c -o first
To execute program first, enter:
$ ./first
Output:
My first C program
However, both FreeBSD and Linux support direct make (GNU make utility to maintain groups of programs) command on C program without writing a make file. Remove, first program using the rm command:
$ rm first
$ make first

Output:
cc   first.o   -o first
Execute program first:
$ ./first
Please note that above hack works with GNU make only.

How to use the remote shutdown command in Windows

Firstly, in order to remotely shutdown a computer on your network, you’ll need to make sure you have Administrative access to that computer. If you’re on a home network, the best way to do this is to make sure all computers are in the same workgroup and that they all have at least one Administrator account with the same user name and password.
You can also have different Administrator account names across computers, but then you’ll need to make sure you add the Administrator account of one computer to the account list on the other computers. You’ll also
computer name
Remote shutdown is useful for managing multiple computers at once and especially useful for helpdesk technicians when they have to fix remote computers.

Remote shutdown via Command Prompt

The shutdown command is most flexible when using it from the command prompt because you can add a bunch of switches to it, which allow you to customize the behavior. Go to Start, then Run, and type in CMD. In the black command window, type in shutdown /? to see the list of switches.
shutdown command
You have to use at least one switch in order for the command to do anything. Basically you would type in shutdown -X -Y -Z where X, Y, Z are letters in the list above.
Here are a couple of the most command switches and what actions they peform:
-l: Logs off the computer
-s: Shuts down the computer
-r: Restarts the computer
-m \\computername: remote shutdown of a computer
-f: Forces programs to close immediately
So for remotely shutting down another machine on your network, you would type into the command prompt the following commands:
shutdown –m \\computername –r –f
This above command will restart the computer named computername and force all programs that are still running to die.
shutdown –m \\computername –r –f –c “The computer will restart, please save all work.” –t 60
This command will restart the computer named computername, force all programs that are running to die, show a message to the user, and countdown 60 seconds before it restarts.

Remote Shutdown via Shutdown Dialog

If you don’t like all those switches, etc, or using the command prompt, then you can bring up the shutdown dialog box. You can open the dialog window by clicking Start, click Run, type CMD and typing shutdown -i and in the blank DOS window.
shutdown i
A window similar to the one below will appear:
need to know all the names of the other computers on the network. You can do that by going to Control Panel and then clicking on System. Then click on the Computer Name tab.
remote shutdown dialogClick the Add or Browse button to add computers to the list. You can then run the commands on the entire batch of computers. If you click Add, you’ll need to enter in the network name of the computer in the format \\computername. You can even add your own
computer name[6]Of course, you need to know the actual computer name, which I mentioned how you can figure out above. You’ll also need Administrative access. You can determine this by going to My Computer and typing \\computername into the address bar and seeing if you can get a
compute name my
ccess without having to be prompted for a password.
computer to test it out and make sure it works.

So add as many computers to the list as you like and then set your options. You can shutdown, restart, or logoff. You can also display a warning for however many seconds you like. You can type in a comment at the bottom which will be displayed to users. That’s it!

Remote Shutdown via Batch File

Finally, you can create a batch file so that you can do all of this by just clicking on a file! Or you can even schedule the batch file to be run at specific intervals using Windows Scheduler.
Just go to Notepad and type in the commands you would have typed into the command prompt:
shutdown –m \\computername1 –r
shutdown –m \\computername2 –r
shutdown –m \\computername3 –r
This will restart three computers on my home network. You would of course replace computername1 with the actual names of your computers. Then simple save the file with a .BAT file extension. You can put as many commands into the batch file as you like, so feel free to experiment!
I’ve written an extensive post on how to use batch files in Windows, so read that if you are not familiar with batch files.
 some tools for remote shutdown

10 examples of grep command

"grep" one of the most frequently used UNIX command stands for "Global Regular Expression Print". This grep command tutorial is not about theory of UNIX grep but to practical use of grep in UNIX.

10 examples of grep command in UNIX and Linux

Following examples on grep command in UNIX are based on my experience and I use them on daily basis in my work. These examples are by no means complete so please contribute your grep command tips or how you are using grep in Linux to make it more useful and allow all of us to benefit from each others experience and work efficiently in UNIX or Linux.
So here we go


1) Finding relevant word and exclusion irrelevant word. Most of the time I look for Exception and Errors in log files and some time I know certain Exception I can ignore so I use grep -v option to exclude those Exceptions

grep Exception logfile.txt | grep -v ERROR

2) If you want to count of a particular word in log file you can use grep -c option to count the word. Below command will print how many times word "Error" has appeared in logfile.txt

grep -c "Error" logfile.txt


3) Sometime we are not just interested on matching line but also on lines around matching lines particularly useful to see what happens before any Error or Exception. grep --context option allows us to print lines around matching pattern. Below example of grep command in UNIX will print 6 lines around matching line of word "successful" in logfile.txt

grep --context=6 successful logfile.txt
Show additional six lines after matching very useful to see what is around and to print whole message if it splits around multiple lines. You can also use command line option "C" instead of "--context" for example
grep -C 2 'hello' *
Prints two lines of context around each matching line.

4) egrep stands for extended grep and it is more powerful than grep command in Unix and allows more regular exception like you can use "|" option to search for either Error or Exception by executing just one command.

egrep 'Error|Exception' logfile.txt

5) If you want to do case insensitive search than use -i option from grep command in UNIX. Grep -i will find occurrence of both Error, error and ERROR and quite useful to display any sort of Error from log file.

grep -i Error logfile

6) zgrep is another great version of grep command in Unix which is used to perform same operation as grep does but with .gz files. Many a times we gzip the old file to reduce size and later wants to look or find something on those file. zgrep is your man for those days. Below command will print all files which have "Error" on them.

zgrep -i Error *.gz

7) Use grep -w command in UNIX if you find whole word instead of just pattern.
grep -w ERROR logfile

Above grep command in UNIX searches only for instances of 'ERROR' that are entire words; it does not match `SysERROR'.
For more control, use `\<' and `\>' to match the start and end of words.  For example:

grep 'ERROR>' *

Searches only for words ending in 'ERROR', so it matches the word `SysERROR'.


8) Another useful grep command line option is "grep -l" which display only the file names which matches the given pattern. Below command will only display file names which have ERROR?

grep -l ERROR *.log
grep -l 'main' *.java will list the names of all Java files in the current directory whose contents mention `main'.

9) If you want to see line number of matching lines you can use option "grep -n" below command will show on which lines Error has appeared.
grep -n ERROR log file.

10) If you want to do recursive search using grep command in Unix there are two options either use "-R" command line option or increase directory one by one as shown below.

Now I have two bonus examples of grep command in unix:

11) grep command in UNIX can show matching patter in color which is quite useful to highlight the matching section , to see matching pattern in color use below command.

grep Exception  today.log --color

12) There are three version of grep command in UNIX `grep, fgrep, egrep'. `fgrep' stands for Fixed `grep', `egrep' Extended `grep'

 



How to change the text in Internet Explorers title bar to anything you want

Hello friends,
Steps for”How to change the text in Internet Explorers title bar to anything you want”
In regedit navigate to this key:
  • HKEY_CURRENT_USERSoftwareMicrosoftInternet ExplorerMain
change the value of the string “Window Title” to whatever you want on the title bar of Internet Explorer – to have no title except the title of the web pages you are browsing do not enter anything for a value.

tips to recover scratched cd's

1. Spread a cloth on a flat surface and place the CD on it.
2. Then, hold the disc with one hand, use the other to wipe the polish into the affected area with a soft cloth.
3. Wait for it to dry and buff using short, brisk strokes along the scratch, not across it.
4. A cloth sold to wipe spectacles or camera lenses will work super m8′s.
5. When you can no longersee the scratch,, wash the disc with water and let it dry before playing. Intersting isnt it? Try it right now



"I have used toothpaste with good effects before Ive also used car paint cutting compound on deeper scratches. It does leave lots of smaller scratches (as it is a cutting compound after all) but it will remove the worst scratches in most cases.
ya u r gng to b surely befinited by this Operation ".

How to Hack Computer Passwords With Command Prompt.

Hello friends,
This is a Tutorial showing “How To Hack Computer Passwords With Command Prompt”.
crack computer password

Some hidden tricks of exploit of the compression algorithms to make a small zip .

This is a exploit of the compression algorithms to make a small zip that will extract into extream amounts their are more ways and better ones than this one but i will
only show how to make a simple 1k = 1m ratio.
1) Make a.txt file

2) Open and type the null character (alt + 255)

3) Press ctrl + a then ctrl + v a couple times to make some null bytes

4) If u have a hexeditor make the hex 00 for about 50 kilobytes.

5) Now make several copies of a.txt and name accordinly

6) Open cmd.exe

7) Type copy /b *.txt b.txt

8) Now every copy is made into a super copy and repeat

9) Once you have a nice empty big text file like 1gb. Put it in a zip archive.

Because of the simple construction of the file, 1gb of null bytes…..!

The zip is only 1 mb in size and can really annoy freinds.

For added fun hex edit the zip and you will see a bunch of hex 5555

Just add some more and the file will expand amazingly

Make sure to not open this after

You can always create your zip of death from the command line in linux
dd if=/dev/zero bs=1000 count=1000000 | gzip > test.gz

How to Change/Crack BIOS Password

Hello friends,
This is a Tutorial showing “How to Change/Crack BIOS Password”.
crack bios password

How to Make Your PDF Files Speak to You


This is an Interesting Trick i found in Adobe Reader. This works in Adobe Reader 7.0 through the latest 9.3.
1. First of all Install Adobe Reader , if you haven’t already.
2. Ok So first you go to View>Read out Loud> Activate Read Out Loud.

3. After you have done that just do this.

Now it will read it to you out loud in the Default Microsoft Sam voice.
Hope This Post Helps You.

An Interesting Trick to Hide the Data in Notepad.

Hello Friends,
There is “An Interesting Trick to Hide the Data in Notepad.”
Here is a small trick to hide text inside your windows default text editor i.e. Notepad using command prompt, but this trick works only on NTFS file system.
Steps to hide text in a Notepad
1. Open your command prompt Start–>Run and Type cmd
2. Type cd.. to move to C:\> drive or Type cd desktop to move to your desktop.
 
3. Type the below code in your command prompt
notepad filename.txt: hidden
4. Write some data and save (Ctrl+s) the file.
5. Browse to the file location and Open filename.txt you cannot see any data in the file.
6. To retrieve the hidden data open command prompt and type the same command.
Notepad filename.txt:hidden
I hope This Post Helps.

How to Create your own Run Command ?

How to Create your own Run Command ?

If you happen to want to make a shortcut to an application your own way, guess what, you can!
Let’s do it:
Step 1: Go to “Start,” “Run,” (told you we use it a lot) and type regedit.
Step 2: Navigate to the following:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Apps Path
Step 3: Create a new folder/key under Apps Path. (Right-Click Apps Path and click “New,” “Key.”)
Step 4: Title the new folder/key the name of the application, e.g. firefox.exe.
Step 5: Right-Click the default string value (the thing automatically created in your new folder) and click Modify.
Step 6: Change the value to the path of the executable you are attempting to run. E.g. C:\Program Files\Mozilla Firefox\firefox.exe.
Step 7: Create a new “String Value” by right-clicking under the default value (the thing we just edited) and select “New,” “String Value.” Name it Path and enter the value as the same path you previously entered.
 
Step 8: Done! Now, all you need to do is go to “Start,” “Run,” and type the name of your command!

Google Operators

GOOGLE OPERATORS
1.      define: – This google operator will find definitions for a certain term or  word over the Internet. Very useful when you come across a strange word when writing a post. I use this as a google dictionary. example : (define Computer)

2.      info: – The google info operator will list the sets of information that Google has from a specific website (i.e. info:http://google.com)

3.      site: – This google operator can be used to see the number of indexed pages on your site (i.e.site:www.google.com).    Alternative it can also be used to search for information inside a specific  site or class of sites.

4.      link: – This google link operator allows you to find backlinks pointing to your site. Unfortunately the count is not updated frequently and not all backlinks are shown

5.      allinurl: – Using this Google operator will limit the search to results  that contain the desired keywords on the URL structure. (i.e. allinurl:dailyblogtips)

6.      fileformat: – Useful Google operator for finding specific file formats. Sometimes you know that the information you are looking for is likely to be contained in a PDF document or on a PowerPoint presentation, for instance. (i.e. “fileformat:.pdf market research” will search for PDF documents that contain the terms “market” and “research”)

network hacking

Network Hacking is generally means gathering information about domain by using tools like Telnet, NslookUp, Ping, Tracert, Netstat, etc.
It also includes OS Fingerprinting, Port Scaning and Port Surfing using various tools.

Ping :- Ping is part of ICMP (Internet Control Message Protocol) which is used to troubleshoot TCP/IP networks. So, Ping is basically a command that allows you to check whether the host is alive or not.
To ping a particular host the syntax is (at command prompt)--
c:/>ping hostname.com

example:- c:/>ping www.google.com
Various attributes used with 'Ping' command and their usage can be viewed by just typing c:/>ping at the command prompt.


Netstat :- It displays protocol statistics and current TCP/IP network connections. i.e. local address, remote address, port number, etc.
It's syntax is (at command prompt)--




Telnet :- Telnet is a program which runs on TCP/IP. Using it we can connect to the remote computer on particular port. When connected it grabs the daemon running on that port.
The basic syntax of Telnet is (at command prompt)--
c:/>telnet hostname.com

By default telnet connects to port 23 of remote computer.
So, the complete syntax is-
c:/>telnet www.hostname.com port

example:- c:/>telnet www.yahoo.com 21 or c:/>telnet 192.168.0.5 21


Tracert :- It is used to trace out the route taken by the certain information i.e. data packets from source to destination.
It's syntax is (at command prompt)--
c:/>tracert www.hostname.com
example:- c:/>tracert www.insecure.in




Here "*    *    *    Request timed out." indicates that firewall installed on that system block the request and hence we can't obtain it's IP address.

various attributes used with tracert command and their usage can be viewed by just typing c:/>tracert at the command prompt.

The information obtained by using tracert command can be further used to find out exact operating system running on target system.

Email Forging

EMail Forging :- Email forging allows an attacker to disguise the source of an email and send it to the victim. Most attackers use this technique to fool the victim into believing that somebody else has send the particular email.
The SMTP protocol makes it extremely easy for an attacker to send forged emails to a remote user.
Typically an attacker carries out email forging by following steps:

1) Start Command Prompt and type the following command-
c:/>telnet smtp.mailserver.com 25 or c:/>telnet mail.domain.com 25
example:- c:/>telnet smtp.gmail.com 25
The above command opens a telnet connection to the specified remote mail server on port-25. Where port-25 is the default SMTP port on which outgoing mail daemon runs.
2) The correct sequence of commands to be executed is:-
a) helo mailserver1.com
b) mail from:abc@mailserver1.com
c) rcpt to:xyz@mailserver2.com
d) data
e) .(dot command represents end of mail body)
now its over.

EMail forging by this technique does not possible, if mail relying is disabled by it's service provider.

Firefox Shortcut

 Hi guys
As we know Mozilla Firefox is very popular amongst all the browsers. It has lots of shortcut, so here in this post I am going to show you the shortcuts available in mozilla firefox.
Double-click (On a word)                                   Select the word.
Triple-click                                                              Select entire line.
Wheel click                                                              Activate the Smooth scrolling
Hold Ctrl + Scroll Wheel forward                   Increase font size
Hold Ctrl + Scroll Wheel backward               Decrease font size
Click one end, hold Shift & click another    Create a selection from the two points
F5                                                                                 Refresh.
F6                                                                                 Move focus to address bar.
F11                                                                               Toggle on/off full-screen mode
Alt + (Left Arrow)                                                  Go back on history. Same pas Backspace
Alt + (Right Arrow)                                               Go forward on history.
Ctrl + A                                                                       Select All.
Ctrl + B                                                                        Favorites.
Ctrl + C                                                                        Copy Selected.
Ctrl + D                                                                        Add the current page to favorite.
Ctrl + E                                                                        Search panel.
Ctrl + F                                                                        Find (on page).
Ctrl + H                                                                        Toggle History panel.
Ctrl + I                                                                          Toggle Favorites panel.
Ctrl + J                                                                          Download.
Ctrl + N                                                                         Open New browser window.
Ctrl + P                                                                          Print current page / frame.
Ctrl + R                                                                          Refresh. Same as F5
Ctrl + T                                                                           New Tab
Esc                                                                                   Stop (while page is loading).
Ctrl + Enter                                                                  Auto complete a url address (For example, type kyrionhackingtutorials in the address bar and press CTRL + ENTER to get http://www.kyrionhackingtutorials.com.)
Shift + Enter                                                                 Complete a .net instead of a .com address.
Ctrl + Shift + Enter                                                     Complete a .org address.
Ctrl + Tab                                                                       Cycle through open tabs.

Tuesday, 9 August 2011

how to create a simple google search engine:2

friends,
this is my second post regarding "google search engine".....i hope you may have loved the first one.In case if you have not seen it then you must see it.

Now just copy the code given below as it is and write it in a notepad and then save it as .html file. Now you have to just open the saved file in your internet browser.

code:

<script type="text/javascript">document.write('\u003C\u0064\u0069\u0076\u0020\u0069\u0064\u003D\u0022\u0063\u0073\u0065\u0022\u0020\u0073\u0074\u0079\u006C\u0065\u003D\u0022\u0077\u0069\u0064\u0074\u0068\u003A\u0020\u0031\u0030\u0030\u0025\u003B\u0022\u003E\u004C\u006F\u0061\u0064\u0069\u006E\u0067\u003C\u002F\u0064\u0069\u0076\u003E\u000D\u000D\u003C\u0073\u0063\u0072\u0069\u0070\u0074\u0020\u0073\u0072\u0063\u003D\u0022\u0068\u0074\u0074\u0070\u003A\u002F\u002F\u0077\u0077\u0077\u002E\u0067\u006F\u006F\u0067\u006C\u0065\u002E\u0063\u006F\u006D\u002F\u006A\u0073\u0061\u0070\u0069\u0022\u0020\u0074\u0079\u0070\u0065\u003D\u0022\u0074\u0065\u0078\u0074\u002F\u006A\u0061\u0076\u0061\u0073\u0063\u0072\u0069\u0070\u0074\u0022\u003E\u003C\u002F\u0073\u0063\u0072\u0069\u0070\u0074\u003E\u000D\u000D\u003C\u0073\u0063\u0072\u0069\u0070\u0074\u0020\u0074\u0079\u0070\u0065\u003D\u0022\u0074\u0065\u0078\u0074\u002F\u006A\u0061\u0076\u0061\u0073\u0063\u0072\u0069\u0070\u0074\u0022\u003E\u000D\u000D\u0020\u0020\u0067\u006F\u006F\u0067\u006C\u0065\u002E\u006C\u006F\u0061\u0064\u0028\u0027\u0073\u0065\u0061\u0072\u0063\u0068\u0027\u002C\u0020\u0027\u0031\u0027\u002C\u0020\u007B\u006C\u0061\u006E\u0067\u0075\u0061\u0067\u0065\u0020\u003A\u0020\u0027\u0065\u006E\u0027\u002C\u0020\u0073\u0074\u0079\u006C\u0065\u0020\u003A\u0020\u0067\u006F\u006F\u0067\u006C\u0065\u002E\u006C\u006F\u0061\u0064\u0065\u0072\u002E\u0074\u0068\u0065\u006D\u0065\u0073\u002E\u0053\u0048\u0049\u004E\u0059\u007D\u0029\u003B\u000D\u000D\u0020\u0020\u0067\u006F\u006F\u0067\u006C\u0065\u002E\u0073\u0065\u0074\u004F\u006E\u004C\u006F\u0061\u0064\u0043\u0061\u006C\u006C\u0062\u0061\u0063\u006B\u0028\u0066\u0075\u006E\u0063\u0074\u0069\u006F\u006E\u0028\u0029\u0020\u007B\u000D\u000D\u0020\u0020\u0020\u0020\u0076\u0061\u0072\u0020\u0063\u0075\u0073\u0074\u006F\u006D\u0053\u0065\u0061\u0072\u0063\u0068\u0043\u006F\u006E\u0074\u0072\u006F\u006C\u0020\u003D\u0020\u006E\u0065\u0077\u0020\u0067\u006F\u006F\u0067\u006C\u0065\u002E\u0073\u0065\u0061\u0072\u0063\u0068\u002E\u0043\u0075\u0073\u0074\u006F\u006D\u0053\u0065\u0061\u0072\u0063\u0068\u0043\u006F\u006E\u0074\u0072\u006F\u006C\u0028\u0027\u0030\u0030\u0031\u0037\u0030\u0037\u0039\u0034\u0033\u0038\u0032\u0036\u0039\u0035\u0035\u0030\u0037\u0035\u0038\u0032\u0030\u003A\u006C\u007A\u006E\u006F\u0078\u0066\u0071\u0066\u0068\u0065\u006F\u0027\u0029\u003B\u000D\u000D\u0020\u0020\u0020\u0020\u0063\u0075\u0073\u0074\u006F\u006D\u0053\u0065\u0061\u0072\u0063\u0068\u0043\u006F\u006E\u0074\u0072\u006F\u006C\u002E\u0073\u0065\u0074\u0052\u0065\u0073\u0075\u006C\u0074\u0053\u0065\u0074\u0053\u0069\u007A\u0065\u0028\u0067\u006F\u006F\u0067\u006C\u0065\u002E\u0073\u0065\u0061\u0072\u0063\u0068\u002E\u0053\u0065\u0061\u0072\u0063\u0068\u002E\u0046\u0049\u004C\u0054\u0045\u0052\u0045\u0044\u005F\u0043\u0053\u0045\u005F\u0052\u0045\u0053\u0055\u004C\u0054\u0053\u0045\u0054\u0029\u003B\u000D\u000D\u0020\u0020\u0020\u0020\u0063\u0075\u0073\u0074\u006F\u006D\u0053\u0065\u0061\u0072\u0063\u0068\u0043\u006F\u006E\u0074\u0072\u006F\u006C\u002E\u0064\u0072\u0061\u0077\u0028\u0027\u0063\u0073\u0065\u0027\u0029\u003B\u000D\u000D\u0020\u0020\u007D\u002C\u0020\u0074\u0072\u0075\u0065\u0029\u003B\u000D\u000D\u003C\u002F\u0073\u0063\u0072\u0069\u0070\u0074\u003E');</script>

for any query you can send mail at:
ampher@gmx.us

Tuesday, 2 August 2011

how to create a google search code for yourself

hello friendsssss....
we search everything using google or other search engine but we always think of having our own search engine.Today i will give you some codes so that you can make your own google search engine.....

steps:

1)open your notepad

2)copy the codes given below as it is written

3)mark the extension of the file as .html

4)now you have almost done it

just open the file which you have just created in your internet browser.




<div id="cse" style="width: 100%;">Loading</div>
<script src="http://www.google.com/jsapi" type="text/javascript"></script>
<script type="text/javascript">
  google.load('search', '1', {language : 'en', style : google.loader.themes.SHINY});
  google.setOnLoadCallback(function() {
    var customSearchControl = new google.search.CustomSearchControl('001707943826955075820:lznoxfqfheo');
    customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
    customSearchControl.draw('cse');
  }, true);
</script>

now you have a simple search engine.you can search anything from this search engine too as you used to do with the real google one.

enjoy...!!


for any further information you can mail me at:
ampher@gmx.us