Re: Win2k Netstat sockets interpretation

Re: Win2k Netstat sockets interpretation

Secure Home | Search | About
 Computer Software Security    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content add this group's latest topics to your Google content
Subject Author Date
Re: Win2k Netstat sockets interpretation Sebastian Gottschalk 01-29-2007
Posted by Sebastian Gottschalk on January 29, 2007, 6:20 am
If you were  Registered and logged in, you could reply and use other advanced thread options
warf wrote:

> I have been trying to learn as much as I can about internet 'security'

Obviously you didn't. Anyway else you would have never installed:
>ZAint-security7-Highsecurity,
to fuck up your system for no good reason.

> to get a better feeling for what data is leaving my home,

Eh... is that any serious problem at all?

> cookies expirede immediately,

What a nonsense. Seems like you don't understand the concept of cookies.

> BUT, netstat /a indicates netbios ports 137,138,139,445 listening

See, you didn't learn anything. You didn't even disable the SMB binding and
the NetBIOS bindings. And this even when some clever guys already collected
an easily understandable overview on websites like
<http://ntsvcfg.de/ntsvcfg_eng.html>.

> when I allow ZA to allow T-bird to act as a server

Again, pure nonsense. Thunderbird doesn't open any ports in LISTENING
state. An no, the things below are no excuse for ZA.

> I am confused by netstats output and don't understand the loopback
> 0.0.0.0 ports, the 255.255.255 gateway significance?

0.0.0.0 is no loopback, 255.255.255.x is no gateway. You want to run a
host-based packet filter as a security mechanisms, but you don't even have
the slightest clue about TCP/IP? Get figure!

> For eg; If I allow scvhost to access 0.0.0.0 when firefox2.0 opens i
> notice randomly ports assigned to urls or ip addresss.

> and firefox always has 4 connections local and 4 remote open inaddition
> to the url i am browsing????

*repeating the thousandth time*
'netstat' on Win2K provides a view on the state of the *TDI interface*, not
the actual TCP/IP sockets. The TDI interface has different semantics, and
something appearing as 0.0.0.0 listening means "an outstanding request to
open a TCP/IP connection", thus no actual TCP/IP socket in LISTENING state.
If you had just take the simplest measures to actualy verify such bogus
open ports with a port scan, you'd have found them closed.

> but Akamaitech~ is frequently there

Wow... Windows Automatic Updates... the mysterious of technology aren't to
be believed !!!11

> I have checked many netstat resources to no avail...help?

MSDN... Ah, might just be better to get a replacement which works like the
real netstat command, f.e. TcpView from Sysinternals^W Microsoft.

Posted by warf on January 30, 2007, 4:15 pm
If you were  Registered and logged in, you could reply and use other advanced thread options
Sebastian Gottschalk wrote:
> warf wrote:
>
>> I have been trying to learn as much as I can about internet 'security'
snip diatribe and gratuitous snarling....
>> to get a better feeling for what data is leaving my home,

> Eh... is that any serious problem at all?

Yes, if you have, or ever did have, any media on your system, or if you
realize the RIAA and ilk will someday get the legal club to go after
'other' citizens for $750USD/title, or even if you are just fed up with
surreptitious datamining for unstated purposes. or if subversion of your

connection for nepharious purposes is 'problematic: then,YES.

>> BUT, netstat /a indicates netbios ports 137,138,139,445 listening
>
> See, you didn't learn anything. You didn't even disable the SMB binding and
> the NetBIOS bindings. And this even when some clever guys already collected
> an easily understandable overview on websites like
> <http://ntsvcfg.de/ntsvcfg_eng.html>.

I said I was "trying"....never claimed to 'know'. better ishould be like
the rest of the cattle and pretend it is not really going to affect me?
By making an effort to learn I take responsibility...you have been
helpful..even if grumpy.

>
>> when I allow ZA to allow T-bird to act as a server
snip.......
Restated "When I run T-bird ZA tells me T-bird wants to access the
internet and act as a server.
I have deleted "file and print sharing" under "internet connections and
disbled most recognizable "remote access" services under 'services.msc'
but ZA detects a few remote access modules running and gives them
permission if select "OK" to the suggested query.
AND
>> For eg; If I allow scvhost to access 0.0.0.0 when firefox2.0 opens i
>> notice randomly ports assigned to urls or ip addresss.
>
>> and firefox always has 4 connections local and 4 remote open inaddition
>> to the url i am browsing????


> *repeating the thousandth time*
> 'netstat' on Win2K provides a view on the state of the *TDI interface*, not
> the actual TCP/IP sockeets. The TDI interface has different semantics, and
> something appearing as 0.0.0.0 listening means "an outstanding request to
> open a TCP/IP connection", thus no actual TCP/IP socket in LISTENING state.
> If you had just take the simplest measures to actualy verify such bogus
> open ports with a port scan, you'd have found them closed.

Iam using Ethereal and there is traffic...I am 'learning' but it is a
very complex topic ...for non-pro's like me...but that is why i ask.

>> but Akamaitech~ is frequently there
>
> Wow... Windows Automatic Updates... the mysterious of technology aren't to
> be believed !!!11

no, WINUPDATE is manual...I reassembled the TCP/IP strream and saw in
one instance it was a ZA update. This concurrs with the stated utility
of those servers. I read conflicting ideas as to the scope of the AKAMAI
servers and wondered why I would be 'uploading' to them as well...with
optout selected for all products 'satisfaction' reports.

>> I have checked many netstat resources to no avail...help?
>
> MSDN... Ah, might just be better to get a replacement which works like the
> real netstat command, f.e. TcpView from Sysinternals^W Microsoft.

Now I have to spracken ze duetch. That is exactly what i needed but the
launguage for the links is all german!!! Damn.

Breifly: How does one interpret the 'listening', 'waiting',
'established' and all the other port information netstat lists? The only
one I get is one with a 'foreign' ip and 'established'...those are
actual internet connections right?
Eastlink is very coy and stingy with 'what services and ports I require'
info...so I am trying to learn thru you and int-resources.

Thanks for that helpful link...wish I spoke enough german to decipher it!
Warf.

Posted by Sebastian Gottschalk on January 30, 2007, 5:32 pm
If you were  Registered and logged in, you could reply and use other advanced thread options
warf wrote:

> Sebastian Gottschalk wrote:
>> warf wrote:
>>
>>> I have been trying to learn as much as I can about internet 'security'
> snip diatribe and gratuitous snarling....
>>> to get a better feeling for what data is leaving my home,
>
>> Eh... is that any serious problem at all?
> [...]
> or if subversion of your connection for nepharious purposes is
> 'problematic: then,YES.

Subversion of your connection implies malicious software. There's nothing
you can do against this except to ensure that it doesn't get executed in
first place. Once it's running, you've lost.

>>> when I allow ZA to allow T-bird to act as a server
> snip.......
> Restated "When I run T-bird ZA tells me T-bird wants to access the
> internet and act as a server.

Then uninstall this software. It's obviously telling nonsense.

>>> For eg; If I allow scvhost to access 0.0.0.0 when firefox2.0 opens i
>>> notice randomly ports assigned to urls or ip addresss.
>>
>>> and firefox always has 4 connections local and 4 remote open inaddition
>>> to the url i am browsing????
>
>> *repeating the thousandth time*
>> 'netstat' on Win2K provides a view on the state of the *TDI interface*, not
>> the actual TCP/IP sockeets. The TDI interface has different semantics, and
>> something appearing as 0.0.0.0 listening means "an outstanding request to
>> open a TCP/IP connection", thus no actual TCP/IP socket in LISTENING state.
>> If you had just take the simplest measures to actualy verify such bogus
>> open ports with a port scan, you'd have found them closed.
>
> Iam using Ethereal

Fine, then why don't you provide a dump of which traffic you see and what's
unclear to you?

> and there is traffic...

Let's hash this together:

If a socket is not in LISTENING state, even though TDI tells so, then every
incoming traffic to that port gets a TCP RST as reply. Nothing more.

If you're actively sending data on this port, it should be in the OPEN
state and TDI just gets it wrong as well.

If you're passively sending data on this port really being in LISTENING
state, then it can't be on 0.0.0.0, but must be bound to an interface. (An
exception would be Raw Sockets, but this almost never applies.)

In any case, TDI gets it wrong. Thus, there is traffic, but no port in
LISTENING state.

> I reassembled the TCP/IP strream and saw in
> one instance it was a ZA update. This concurrs with the stated utility
> of those servers. I read conflicting ideas as to the scope of the AKAMAI
> servers and wondered why I would be 'uploading' to them as well...with
> optout selected for all products 'satisfaction' reports.

This "upload" is either the requests for the download or the ACKs of the
connection.

Unless we once again catched ZoneAlarm with spying on the users.

>>> I have checked many netstat resources to no avail...help?
>>
>> MSDN... Ah, might just be better to get a replacement which works like the
>> real netstat command, f.e. TcpView from Sysinternals^W Microsoft.
>
> Now I have to spracken ze duetch. That is exactly what i needed but the
> launguage for the links is all german!!! Damn.

Ehm... now why don't you grap TcpView?

> Breifly: How does one interpret the 'listening', 'waiting',
> 'established' and all the other port information netstat lists?

Read RFC 793. On page 21 you'll find a wonderful ASCII art illustration.

> Eastlink is very coy and stingy with 'what services and ports I require'

As a client you don't require any services at all.

Posted by warf on February 3, 2007, 10:32 pm
If you were  Registered and logged in, you could reply and use other advanced thread options
Sebastian Gottschalk wrote:
> warf wrote:
>
>> Sebastian Gottschalk wrote:
>>> warf wrote:
>>>
>>>> I have been trying to learn as much as I can about internet 'security'
snip....
> Ehm... now why don't you grap TcpView?

I have It Sebastian, while useful it appears to yield a subsection of
what Spybot S&D 'processtool' coughs up. And S&D lists modules and
process's. etc...

I am reading the win2k manual and it explains the difference between
application 'ports', sockets[winsock] and the various protocals layered
within. I am getting a 'better' picture of the hiearchy.
I am still confused by 'NETBUI'[not NETBIOS, that I understand is simply
a file/print sharing protocal yes?] Even when I have 'SERVER', FILE
PRINT SHARING, REMOTE ACCESS services disabled I still see NETBUI ports
136,137,138,139,445 'listening in TCPVIEW and S&D Processes???
Then enthereal shows NETBUI "name lookup" traffic...is this the DHCP IP
renewal server contacting my cable ISP to register my IP?

I ask becasue in an effort to disable all 'REmote access' I ineveitably
loose DNS Lookup or something that can't be restored short of an OS
REPAIR install...and that gets tiring..."wipe and rebuild"

>> Eastlink is very coy and stingy with 'what services and ports I require'
>
> As a client you don't require any services at al l.

As a Cable modem customer placed directly on the Inet backbone if I
block ALL servers via ZA I loose DNSlookup, autoupdates and I can't
restore it easilly...

Most of the W2K essential services [services.msc] are hard to ascertain
for HTTP internet browsing, pop/smtp and newsgroups...for eg: REMOTE
ACCESS CONNECTION MGR....seems to imply "I am a server" if allowed to
start automaticly....but DHCP fails because NETBUI is innactivated If I
disable it in SERVices.msc

I'll get it someday.
I sure wish that link you sent me was in English as well as German...se
la gar.
Warf.

Posted by Sebastian Gottschalk on February 4, 2007, 9:48 am
If you were  Registered and logged in, you could reply and use other advanced thread options
warf wrote:

> Even when I have 'SERVER', FILE
> PRINT SHARING, REMOTE ACCESS services disabled I still see NETBUI ports
> 136,137,138,139,445 'listening in TCPVIEW and S&D Processes???

Well, why don't you take a look at <http://ntsvcfg.de/ntsvcfg_eng.html>?

> I ask becasue in an effort to disable all 'REmote access' I ineveitably
> loose DNS Lookup or something that can't be restored short of an OS
> REPAIR install...

Then why don't you read before acting?

> and that gets tiring..."wipe and rebuild"

Nonsense. It's trivial to backup and restore the service configuration.

> but DHCP fails because NETBUI is innactivated If I disable it in SERVices.msc

Very strange.

Similar ThreadsPosted
Is this an accurate interpretation of this mail header? Any advice is thankful. April 21, 2007, 8:28 pm
ANNOUNCE: Syngress E-Book - Sockets, Shellcode, Porting & Coding September 1, 2006, 9:15 pm
netstat -a question July 19, 2005, 4:39 pm
Which of these netstat connections should be banned on WinXP? March 23, 2006, 2:57 am
Getting win2k admin password? October 27, 2005, 3:06 pm
Win2K Complex Password Enforcement August 1, 2005, 3:49 pm
win2k machine hacked with Serv-U FTP etc May 29, 2006, 11:37 pm
Simple security software for Win2k October 16, 2006, 9:49 pm
"process deneid" running on win2k machine June 16, 2005, 6:16 pm
Re: Anti-malware on Win2K: Run as administrator or user February 4, 2006, 6:48 am

The site map in XML format XML site map

Contact Us | Privacy Policy