*Disclaimer* Google.com is used hypothetically in this tutorial. I am in no way suggesting that you use these methods on google nor am I suggesting that they would even work. I am not responsible for any hacking that you attempt illegally. This tutorial is for those who are interested in ethical pentesting.
Your first step in hacking a target is footprinting or information gathering. You want to gather as much information about your target as possible. So say you think you're 1337 and you're going to hack google. You would at least need the IP address of the server. To do this, open up cmd and type ping www.google.com
Now that you have the IP address, open up zenmap. Zenmap is the GUI version of nmap. Now type the IP address where it says target. In zenmap you would type:
nmap -T4 -A -v 74.125.225.176
Where it says profile, select quick scan. In most cases, intense scan should be avoided since it would raise flags. Now click scan and wait for it to finish. You should get something like this:
PORT STATE SERVICE
80/tcp open http
443/tcp open http
Port 80 is the port for internet. Port 443 is for HTTPs. You can google any ports that you do not know.
Now we move onto OS fingerprinting. If you're just doing a test on your own site, you can simply do an intense scan to see if your OS shows up. A safer way to do this would be to type something in the url such as: google.com/pagethatdoesntexist
If that doesn't work for you then use intense scan at your own risk.
Here's where the fun part comes in. Banner grabbing is where we will actually try to exploit the server. So let's say that port 21 (FTP) is open on your target. You would type the following in cmd:
telnet www.site.com 21
This will tell you what version of FTP server is running. Now that you have this information, you can write your own exploit or google exploits for the server.
Remember that there is no magic button for hacking. And sites like google.com would take vast computer and programming skills to exploit. Don't get too frustrated if things don't always work out. The most important thing is to continue learning and you will eventually have the skills you need.