attacking ports!!! ( NO OFFENCE HERE)
i have setup a three computer network at home..all three machines run both windows98 and red hat linux7.1 ...just out of curiosity i downloaded a port scanner (nmap ) and ran a scan on one of the windows machine...and i did get a list of ports...
port 23
port 21 (i had installed a telnet and ftp server for windows)
port 139
and a few other port numbers
all these port have their repectives daemons listening for a connection i suppose...and all of them needs passwords....
i was wondering how a hacker who attacks a remote site with out any knowledge of the system users or passwords use a portscanner to get the port list and then gain access by attacking these ports??
on my windows machine i can never get the command prompt when i telnet from the linux machine using an invalid password..(well! that is obvious)...so how are these informations of listening ports useful to a hacker,if he has no pass or at the least a valid account in the machine....
Re: attacking ports!!! ( NO OFFENCE HERE)
Ok, here are a few things an intruder should or would probably attempt ...
Port 21 open ? What about "anonymous" login in ftp ? Has it been disable ? If no, can a remote user make a "quote site exec" ?
Port 23 : he can try a few "well known" user/password (root/root, root/admin, root/administrator, root/azerty, root/qwerty, root/<words from dictionnary> and so on) He can also try to exploit a known bug, the telnet variable overflow.
Port 139 ? Even tried to do an "nbtstat -A <your ip address>" under windows, or nmblookup -A <your ip address> under linux ? Try it, it's fun.
Here are a few things to try under windows
First, edit your c:\windows\lmhosts
and add
IP-address-of-computer a-name #PRE #DOM:whatever-domain-name-you-want
Reboot
Try ping a-name, if it answer "trying to ping <ip address>", just try a "net view \\a-name"
If it says error 5, try "net use \\a-name\ipc$"
and then the net view trick again ...
Do you see what an intruder should start with ? Gathering infos about your system!
Jean-Francois