LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 03-06-2005, 12:44 PM   #1
subjazz
Member
 
Registered: May 2004
Location: Rodeo by the Bay
Distribution: Ubuntu;dosbox;Debian;BSD 6.0
Posts: 65

Rep: Reputation: 15
running nmap against evilentity linux


I ran this scan on my Debian laptop against EvilEntity linux fresh install (also on my network)
some results:
PORT STATE SERVICE
21/tcp open ftp
22/tcp open ssh
23/tcp open telnet
37/tcp open time
79/tcp open finger
111/tcp open rpcbind
113/tcp open auth
139/tcp open netbios-ssn
513/tcp open login
514/tcp open shell
515/tcp open printer
666/tcp open doom

On my windowsXP fresh install there are no open ports.
 
Old 03-06-2005, 12:46 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
so... Do you have a question?
 
Old 03-06-2005, 01:36 PM   #3
tormented_one
Member
 
Registered: Oct 2004
Location: Small Town USA
Distribution: slamd64 2.6.12 Slackware 2.4.32 Windows XP x64 pro
Posts: 383

Rep: Reputation: 30
Shutdown the services not needed.

139/tcp open netbios-ssn

Also this is a windows port, are you running samba? Why did you not find the same port on windows?
 
Old 03-07-2005, 05:38 PM   #4
subjazz
Member
 
Registered: May 2004
Location: Rodeo by the Bay
Distribution: Ubuntu;dosbox;Debian;BSD 6.0
Posts: 65

Original Poster
Rep: Reputation: 15
I just happen to like an installation that lets me choose which ports I want open.
It does not 'appear' professional otherwise. What is port 666 for instance?
I installed several versions of linux/unix and none of them have open ports out of the box or fresh install.

I can think of good reasons for keeping this operating system and perhaps learn from doing so..


Just my opinion and I thought my post would be of help!


Last edited by subjazz; 03-07-2005 at 06:11 PM.
 
Old 03-07-2005, 08:40 PM   #5
tormented_one
Member
 
Registered: Oct 2004
Location: Small Town USA
Distribution: slamd64 2.6.12 Slackware 2.4.32 Windows XP x64 pro
Posts: 383

Rep: Reputation: 30
port 666 is for the game doom or many windows trojans, so I find it hard to believe this is a port scan of a linux box.
 
Old 03-07-2005, 09:56 PM   #6
subjazz
Member
 
Registered: May 2004
Location: Rodeo by the Bay
Distribution: Ubuntu;dosbox;Debian;BSD 6.0
Posts: 65

Original Poster
Rep: Reputation: 15
I assume you have EvilEntity linux.
I ran a port scan on DSL Debian laptop that is dual booted with
WindowsXP against a dialup connection (EvilEntity). I used the /sbin/ifconfig to get the IP address (of EE)and did a netstat -n to see if all those ports were being listened on. I used the same phone line which I don't think should make a difference anymore than if I cross cabled my two computers together.
Go figure , perhaps I got it wrong.
The netstat -n and netstat -a confirmed that several of the above ports were being listened on on EE.

My port scan also confirmed that the scan was made from the
evilentity IP address.

I need to read something on sockets and check out the /etc/services or the daemons super server on EvilEntity. I think you can name it (socket sever)anything so maybe 666\tcp doom is not what it says it is.

I should have posted my remarks to EvilEntity--however (they )are not responsive.
 
Old 03-07-2005, 10:32 PM   #7
tormented_one
Member
 
Registered: Oct 2004
Location: Small Town USA
Distribution: slamd64 2.6.12 Slackware 2.4.32 Windows XP x64 pro
Posts: 383

Rep: Reputation: 30
I have never used evilentity linux or evilentity anything for that matter. Here is the nmap against my (Slackware)linux windows-file server:

Starting nmap 3.75 ( http://www.insecure.org/nmap/ ) at 2005-03-07 22:18 CST
Interesting ports on . (192.168.10.3):
(The 65528 ports scanned but not shown below are in state: closed)
PORT STATE SERVICE
22/tcp open ssh
111/tcp open rpcbind
113/tcp open auth
139/tcp open netbios-ssn
445/tcp open microsoft-ds

Nmap run completed -- 1 IP address (1 host up) scanned in 31.673 seconds

Checks out okay, nothing funny. Now a stock install slackeware 10.1 using official cd's dont know if it matters though:
Starting nmap 3.75 ( http://www.insecure.org/nmap/ ) at 2005-03-07 22:25 CST
WARNING: We could not determine for sure which interface to use, so we are guessing 127.0.0.1 . If this is wrong, use -S <my_IP_address>.
Interesting ports on localhost (127.0.0.1):
(The 65528 ports scanned but not shown below are in state: closed)
PORT STATE SERVICE
22/tcp open ssh
25/tcp open smtp

Nmap run completed -- 1 IP address (1 host up) scanned in 0.467 seconds

Now that is even better. Also I am behind a hardware firewall. I also checked out evilentity linux and it is still beta, if that matters. I have never seen so many open ports by default and I have tried many distros. That is crazy.
 
Old 03-08-2005, 05:46 PM   #8
subjazz
Member
 
Registered: May 2004
Location: Rodeo by the Bay
Distribution: Ubuntu;dosbox;Debian;BSD 6.0
Posts: 65

Original Poster
Rep: Reputation: 15
Thanks for your response.

I should also go to sygate's online scanner for a double check.
All the ports can be easly closed by placing the pound sign on the uneeded daemons in inetd.conf.
# ssj telnet stream tcp nowait root/usr/sbin/tcpd in.telnetd

also important after commenting the daemon

kill -HUP $(cat /var/run/inetd.pid)

then try 'netstat -ta' will tell you if the port is closed.

Last edited by subjazz; 03-20-2005 at 03:39 PM.
 
Old 03-09-2005, 01:40 PM   #9
Aeiri
Member
 
Registered: Feb 2004
Posts: 307

Rep: Reputation: 30
Quote:
Originally posted by tormented_one
Now a stock install slackeware 10.1 using official cd's dont know if it matters though:
Starting nmap 3.75 ( http://www.insecure.org/nmap/ ) at 2005-03-07 22:25 CST
WARNING: We could not determine for sure which interface to use, so we are guessing 127.0.0.1 . If this is wrong, use -S <my_IP_address>.
Interesting ports on localhost (127.0.0.1):
(The 65528 ports scanned but not shown below are in state: closed)
PORT STATE SERVICE
22/tcp open ssh
25/tcp open smtp

Nmap run completed -- 1 IP address (1 host up) scanned in 0.467 seconds
Depends on what you mean by a stock install...

I disable rc.ssh and rc.sendmail in the setup of Slackware, so there are no ports open for me.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
nmap ? how do i do nmap in linux ? command not found abbasakhtar Linux - Newbie 2 01-02-2011 01:08 AM
Running Nmap Tons of Fun Debian 4 05-12-2005 11:47 AM
Running Nmap Tons of Fun Linux - Software 1 05-11-2005 06:56 AM
mysql running but now showing under nmap drunkenbanana Linux - Software 3 03-30-2005 04:28 PM
nmap shows port 21 open, but no ftp service running ? epoo Linux - Networking 3 12-21-2003 08:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 08:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration