The Magic of DOS! In this guide you will learn how to telnet, forge email, and use nslookup with Windows XP.
The key to doing amazing things with XP is as simple as DOS. Yes, that’s right, DOS as in MS-DOS,
as in Microsoft Disk Operating System. Windows XP (as well as NT and 2000) comes with two versions of DOS.
Command.com is an old DOS version. Various versions of command.com come with Windows 95, 98, SE, ME, Window 3,
and DOS only operating systems.
The other DOS, which comes only with XP, 2000 and NT, is cmd.exe. Usually cmd.exe is better than
command.com because it is easier to use, has more commands, and in some ways resembles the bash
shell in Linux and other Unix-type operating systems. For example, you can repeat a command by using the
up arrow until you back up to the desired command. Unlike bash, however, your DOS command history is erased
whenever you shut down cmd.exe. The reason XP has both versions of DOS is that sometimes a program that
won?t run right in cmd.exe will work in command.com
Flame Alert: Some readers are throwing fits because I dared to compare DOS to bash. I can compare cmd.exe
to bash if I want to.
DOS is your number one Windows gateway to the Internet, and the open sesame to local area networks.
From DOS, without needing to download a single hacker program, you can do amazingly sophisticated explorations
and even break into poorly defended computers.
You can go to jail warning: Breaking into computers is against the law if you do not have permission to do so
from the owner of that computer. For example, if your friend gives you permission to break into her Hotmail account,
that won’t protect you because Microsoft owns Hotmail and they will never give you permission.
You can get expelled warning: Some kids have been kicked out of school just for bringing up a DOS prompt on a computer.
Be sure to get a teacher’s WRITTEN permission before demonstrating that you can hack on a school computer.
So how do you turn on DOS?
Click All Programs -> Accessories -> Command Prompt
That runs cmd.exe. You should see a black screen with white text on it, saying something like this:
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
Your first step is to find out what commands you can run in DOS. If you type “help” at the DOS prompt,
it gives you a long list of commands. However, this list leaves out all the commands hackers love to use.
Here are some of those left out hacker commands.
NetBIOS commands (just some examples):
TCP/IP stands for transmission control protocol/Internet protocol. As you can guess by the name,
TCP/IP is the protocol under which the Internet runs. along with user datagram protocol (UDP).
So when you are connected to the Internet, you can try these commands against other Internet computers.
Most local area networks also use TCP/IP.
NetBIOS (Net Basic Input/Output System) protocol is another way to communicate between computers.
This is often used by Windows computers, and by Unix/Linux type computers running Samba.
You can often use NetBIOS commands over the Internet (being carried inside of, so to speak, TCP/IP).
In many cases, however, NetBIOS commands will be blocked by firewalls.
Also, not many Internet computers run NetBIOS because it is so easy to break in using them.
We will cover NetBIOS commands in the next Guide to XP Hacking.
The queen of hacker commands is telnet. To get Windows help for telnet, in the cmd.exe window give the command:
Here’s what you will get:
telnet [-a][-e escape char][-f log file][-l user][-t term][host [port]] -a Attempt automatic logon. Same as --l option except uses the currently logged on user's name. -e Escape character to enter telnet client prompt. -f File name for client side logging -l Specifies the user name to log in with on the remote system. Requires that the remote system support the TELNET ENVIRON option. -t Specifies terminal type. supported term types are vt100, vt52, ansi and vtnt only. host Specifies the hostname or IP address of the remote computer to connect to. port Specifies a port number or service name.
Newbie note: what is a port on a computer? A computer port is sort of like a seaport.
It’s where things can go in and/or out of a computer. Some ports are easy to understand,
like keyboard, monitor, printer and modem. Other ports are virtual, meaning that they are created by software.
When that modem port of yours (or LAN or ISDN or DSL) is connected to the Internet,
your computer has the ability to open or close any of over 65,000 different virtual ports,
and has the ability to connect to any of these on another computer – if it is running that port,
and if a firewall doesn’t block it.