Tuesday, December 13, 2011

Cool Hacking Command

1) ping : This command will allow you to know if the host you pinging is alive, which means if it is up at the time of executing the “ping” command.
Code:
ping x.x.x.x (x is the IP address)
or
ping www.whatever.com (www.whatever.com is the website you want to ping, but you don't know the IP)

OBS: Keep in mind that if the host you pinging is blocking ICMP packets, then the result will be host down.
2) nslookup : This command has many functionalities.
One is for resolving DNS into IP.
Lets say you know the website URL but you don’t know its IP(and you want to find out).
nslookup www.whatever.com (www.whatever.com is the website you want to find out the IP)
Now, another really nice function of nslookup is to find out IP of specific Mail Severs.
Code:
Code:

nslookup (enter) set type=mx (enter) yahoo.com

This command will give you the mail server IP of yahoo.com. You can use whatever server you want and if it is listed on DNS, then you get the IP. Simple, isn’t it?

3) tracert : This command will give you the hops that a packet will travel to reach its final destination.
OBS: This command is good to know the route a packet takes before it goes to the target box.
Code:
tracert x.x.x.x (x is the IP address)
or
Code:
tracert www.whatever.com (www.whatever.com is the website you don't know the IP)

4) arp : This command will show you the arp table. This is good to know if someone is doing arp poisoning in your LAN.
Code:
Code:

arp -a

5) route : This command will show you the routing table, gateway, interface and metric.
Code:
Code:

route print

6) ipconfig : This command will show tons of very helpful things.
Your IP, gateway, dns in use.
Code:
Code:

ipconfig

or
Code:
ipconfig /all

this command will give all that info but for all networks you might have it.
Also, in case you have a dynamic IP and want to change it, then type…
Code:
Code:

ipconfig /release (this will release your IP) ipconfig /renew (this will renew your iP)

OBS: Keep in mind that those commands will change your IP, but the new IP will still be tighed up to you. So don’t do anything stupid.
7) netstat : This command will show you connection to your box.
Code:
netstat

or
Code:

netstat -a (this will show you all the listening ports and connection with DNS names) netstat -n (this will show you all the open connection with IP addresses) netstat -an (this will combined both of the above)

8)nbtstat : This command will show you the netbios name of the target box.
Code:
nbtstat -A x.x.x.x (x is the IP address) nbtstat -a computername

net view x.x.x.x or computername (will list the available sharing folders on the target box)
Now some hints:
Code:
net use \ipaddressipc$ "" /user:administrator

(this command will allow you to connect to the target box as administrator)
Now if you want to connect to the target box and browse the entire C drive, then use this command:
Code:
net use K: \computernameC$

(this will create a virtual drive on your “my computer” folder)
OBS: Keep in mind that this will only works if the target box doesn’t have an administrator password set.
And least but not last, the “help” command.
Code:
whatevercommand /help

or
Code:

whatevercommand /?

This command will help you to understand what it does and all the switchs available for each command.
Very useful if you know the command, but forgot the right switch.

Enjoy........

Thursday, December 1, 2011

Blocking unblocking websites manually

FOR BLOCKING
Do The Following :
For eg you want to block www.xyz.com !
1. Open the folder C:\WINDOWS\system32\drivers\etc
2. There you will find a file named HOSTS
3. Click on the file and press SHIFT and now right click on it .
4. From the right click menu select Open with .
5. Now, select Notepad to open the file from the list !
6. Now, in the file under the line 127.0.0.1 localhost add another line as 127.0.0.2 www.xyz.com.
7. Now, File>>Save !
For unblocking just follow the same procedure vice versa.

Thursday, September 29, 2011

How to Use Windows 7 Without Activation

Most of you might be aware of the fact that it is possible to use Windows 7 and Vista for 120 days without activation. This is actually possible using the slmgr -rearm command which will extend the grace period from 30 days to 120 days. However in this post I will show you a small trick using which it is possible to use Windows 7 without activation for approximately an year! Here is a way to do that.

1. Goto “Start Menu -> All Programs -> Accessories” . Right click on “Command Prompt” and select “Run as Administrator“. If you are not the administrator then you are prompted to enter the password, or else you can proceed to step-2.

2. Now type the following command and hit enter
slmgr -rearm

3. You will be prompted to restart the computer. Once restarted the trial period will be once again reset to 30 days. You can use the above command for up to 3 times by which you can extend the trial period to 120 days without activation.

4. Now comes the actual trick by which you can extend the trial period for another 240 days. Open Registry Editor (type regedit in “Run” and hit Enter) and navigate to the following location
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform

5. In right-side pane, change value of SkipRearm to 1.

6. Now you will be able to use the slmgr -rearm command for another 8 times so that you can skip activation process for another 240 days. So you will get 120 + 240 = 360 days of free Windows 7 usage.
120 days using “slmgr -rearm” command before registry edit

+

240 days using “slmgr -rearm” command after registry edit

= 360 Days