Hack 1
Hack 1
Hack 1
dial up hacking starts with a range on numbers to use with a wardialer. for phones
numbers you might look into getting some cd-roms of local phone books. this can be
a very time consuming process because you would want to dial all numbers within
your area code and maybe some different exchanges. like if your area code was 555
and the exchange was 333 then you would dial all numbers within the 555-333-xxxx
range to look for interesting things. you want the numbers that are connected to a
modem that have carriers. toneloc is good for this. toneloc can create a found.log
file that captures all of the found carriers during a scan. at the conclusion of
the scan, the log is reviewed and the phone numbers are individually dialed with a
computer. the user then attempts to identify the systems, and, depending on the
goals of the wardial, attempts system access. many wardialing tools, depending on
the modem used by the host, can also detect fax machines, private branch exchange
(pbx) access points, and human voice. for more info on wardialing and where you
can get them go here.
port scanning:
by dobromir montauk .
portscanning is the act of probing a computer on a network for open ports. a
useful tool for network administrators, portscanning can also search a computer
for its vulnerabilities. often it is compared to 'casing' a building for burglary,
which is why it is considered intrusive by many computer users. ports are used in
network communications to help sort traffic coming and going from one computer to
another. computers communicate over a network like ships carrying goods. the ships
need to know what city they're going to, and once they get to that city, they also
need to know what dock to go to. similarly, computers sending data need to know
what computer to send the data to, as well as what port on that computer the data
should be metaphorically 'unloaded' on. different programs can open ports,
allowing them access to data coming into their ports. certain programs open ports
only for sending data, some only for getting data, but most programs that
communicate with the internet open ports for both directions. programs such as aol
instant messenger, morpheus, other file-sharing programs, and web servers all
permanently open ports for communication. this is necessary so other computers can
connect and send messages, or share files. naturally, there exist ways of scanning
a computer for open ports. this can allow the scanner to detect which programs are
running on a particular computer (they will not be able to detect all programs,
but they may be able to detect some or even most of them). since many programs
that sit on open ports can be hacked, and thus give an intruder access to the
entire computer, this information is very important to hackers or crackers.
portscanning is almost always the first tool in every intruder's arsenal. thus,
system administrators and computer users often find portscanning very intrusive.
they don't know why they're being scanned, and so they usually expect the worst.
they often get angry and defensive if the same computer repeatedly scans them. for
more in depth details and different types of scans check this out .
netstat:
netstat was developed with open, co-operative computing in mind, but with the rise
of security awareness more systems administrators are choosing to turn services
like netstat off by commenting out the line in/etc/services or equivalent. the
netstat service can tell what computers are on the network. it also lists services
that are running on the computers allowing a cracker to explore and attempt to
take over those services by researching old techniques.
________________________________________________________________
________________________________________________________________
a lot of times, i hear people asking questions like, how to find out the ip of a
friend? or how to find out your own ip? how do i know, which ports are open on my
system? how do i make sure whether my system is infected with a trojan or not?
well, for all above questions (and more) there is one simple answer: the netstat
command.
microsoft has this weird tendency of hiding or making sure that such �useful�
utilities are not easily accessible to the users. however, they fail to understand
that putting a utility in the windows directory and not listing it anywhere does
not make it hidden.
the �netstat� command is accessible through the command line prompt. simply launch
msdos and:
c:\cd windows
c:\windows>
note: normally, well, almost always, dos opens by default in the windows
directory, however, for those of you whose default dos directory is not windows,
the above would prove helpful.
anyway, before we move on, we need to understand what exactly the netstat command
is used for. this command is by default used to get information on the open
connections on your system (ports, protocols being used etc), incoming and
outgoing data and also the ports of remote systems to which we are connected.
�netstat� gets all this networking information by reading the kernel routing
tables in the memory.
�netstat is a program that accesses network related data structures within the
kernel, then provides an ascii format at the terminal. netstat can provide
reports on the routing table, tcp connections, tcp and udp "listens", and protocol
memory management.�
anyway, now that we know what netstat is all about, we are in a position to start
using it. once, you have launched msdos, you can read the msdos help on netstat by
giving the following command:
c:\windows>netstat /?
however, like always, the help provided by msdos, can be used only as a reference,
it is not at all sufficient for a complete newbie.
so, let us try out each command and see the result and also understand what
exactly happens when we execute it and what all the results displayed mean.
firstly, we will start with the netstat command with the �a argument.
now, the ��a� option is used to display all open connections on the local machine.
it also returns the remote system to which we are connected to, the port numbers
of the remote system we are connected to (and the local machine) and also the type
and state of connection we have with the remote system.
for example,
c:\windows>netstat -a
active connections
now, let us take a single line from the above output and see what it stands for:
protocol: tcp (this can be transmission control protocol or tcp, user datagram
protocol or udp or sometimes even, ip or internet protocol.)
local system name: ankit (this is the name of the local system that you set during
the windows setup.)
remote system: dwarf.box.sk (this is the non-numerical form of the system to which
we are connected.)
remote port: ftp (this is the port number of the remote system dwarf.box.sk to
which we are connected.)
�netstat� with the ��a� argument is normally used, to get a list of open ports on
your own system i.e. on the local system. this can be particularly useful to check
and see whether your system has a trojan installed or not. yes, most good
antiviral software are able to detect the presence of trojans, but, we are
hackers, and need to software to tell us, whether we are infected or not. besides,
it is more fun to do something manually than to simply click on the �scan� button
and let some software do it.
the following is a list of trojans and the port numbers which they use, if you
netstat yourself and find any of the following open, then you can be pretty sure,
that you are infected.
***********************
hacking truth: some of you might me wondering, as to what the high port numbers
after the local machine�s name stand for?
eg. ankit:1052
port numbers upto 1024 normally have a specific kind of service running on it.
infact there is a complete rfc on assigned port numbers- rfc 1700.
however, port numbers over 1024 are used by your system to connect to remote
computers. for example, say your browser wants to establish a connection with
http://www.hotmail.com/, then what it will do is, it will take up a random port
number above 1024, open it and use it to communicate with the hotmail server.
***********************
ok, now let us move on further, to a variant of the above command, the netstat �n
the netstat �n command is basically the numerical form of the netstat �a command.
the main and probably the only difference between the two is that the former shows
the addresses of the local and remote systems in numerical form (hence �n) while
the latter shows the addresses in non-numerical form.
c:\>netstat -n
active connections
proto local address foreign address state
although this too gives us similar results, but there are some differences,
mainly-:
instead of the name of the local machine, the actual ip address of the local
machine is shown.
i am not sure, about this, but after testing repeatedly, netstat �n seems to not
return information on non-tcp connections. so, it does not seem to consider udp.
if you read the alt.2600 newsgroup regularly or any other newsgroup for that, they
you would probably have seems atleast 2-3 daily posting whose body read: how do i
find out my own ip?
well, this option of netstat is most commonly used to do just that, find out your
own ip. also, some people somehow seem to feel more comfortable with numbers, than
with understandable hostnames.
this form of netstat does make life easier for us, as the port numbers are
displayed, which makes relating to everything easier.
getting the ip of a person is all, that one needs to be able to damage his system.
so, basically hiding your ip from hackers and getting the ip of the victim is some
of the most important things that people are concerned with. using ip hiding
facilities has become increasingly popular. however, are these so called ip hiding
totally anonymous services or software truly and perfectly anonymous? there is
only one answer: they are nowhere near totally anonymous. consider the following
example, to understand how lame some of such utilities are.
i seek you or icq is one of the most popular chatting software around. with it not
only comes easy pastime, but also security concerns. icq has an inbuilt ip address
hider, which when enabled is supposedly able to hide your ip from the users you
are chatting with. however, like most ip hiding software, this too is nowhere near
good. you can find out the ip address of any icq user, even if ip hiding has been
enabled, by following the below process.
1.) launch msdos and type netstat �n to get a list of already open ports and
the ip�s of the machines with which a connection has been established. note down
this list somewhere.
3.) while you are still chatting, go back to dos and again give the netstat
�n command. you will find that a new ip signifying a new connection. this would be
the ip address of the victim. get it?
till now, both with the �-a� and �-n� argument, we saw that the connections
returned or displayed on the screen, were not of a particular protocol. this means
that connections of tcp, udp or even ip were shown. however, say you want to see
only those connections which belong to udp, then you make use of the �-p�
argument.
the general format of the netstat command with the �-p� argument is as followed:
netstat �p xxx
where xxx can be either udp or tcp. the usage of this argument will become clearer
with the following example, which demonstrates how to view only tcp connections.
c:\>netstat -p tcp
active connections
this is basically nothing but a variation of the �-a� and �-n� commands.
now, we come to the �-e� option of �netstat�. let us set what dos returns, when
this command is given:
c:\>netstat -e
interface statistics
received sent
non-unicast packets 40 40
discards 0 0
errors 0 0
unknown protocols 0
well, sometimes the number of data packets sent and received is not shown properly
by some faulty or un-compatible modems. during, such cases, this command comes
handy. the output returned by it, is quite obvious. also, it can be used to check
for faulty downloads, or errors, which might have occurred during the tcp/ip,
transfer process.
with this we come to the last argument associated with netstat, the �-r� argument.
this is not commonly used, and is a bit difficult to understand. i will simply
give you an example of it in this manual. a proper and detailed description would
be provided in another manual. hacking using routing tables is considered to be
very elite and not many people are comfortable using it. however, like all things
associated with computers, it is not as difficult as it is projected to be.
c:\windows>netstat -r
route table
active routes:
224.0.0.0 224.0.0.0
203.94.251.161 &sitepics/hackingpicsnbsp; 203.94.251.161 1
224.0.0.0 224.0.0.0
203.94.251.161 203.94.251.161 1
active connections
well, i hope you liked this manual. even if not, then you better do. ; ) bye.
humayun khan
telnet:
for dial-up hacking check out telenet by l.o.d.