<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.scott5.org/index.php?action=history&amp;feed=atom&amp;title=Windows_security</id>
	<title>Windows security - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.scott5.org/index.php?action=history&amp;feed=atom&amp;title=Windows_security"/>
	<link rel="alternate" type="text/html" href="https://wiki.scott5.org/index.php?title=Windows_security&amp;action=history"/>
	<updated>2026-04-13T00:29:57Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://wiki.scott5.org/index.php?title=Windows_security&amp;diff=538&amp;oldid=prev</id>
		<title>Scott: /* Example */</title>
		<link rel="alternate" type="text/html" href="https://wiki.scott5.org/index.php?title=Windows_security&amp;diff=538&amp;oldid=prev"/>
		<updated>2011-02-04T23:20:46Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Example&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Improving security ==&lt;br /&gt;
* Turn off &amp;quot;simple file sharing&amp;quot; in Windows Explorer -&amp;gt; Tools -&amp;gt; Folder Options -&amp;gt; View&lt;br /&gt;
&lt;br /&gt;
* Turn off &amp;quot;File and Printer Sharing for Microsoft Networks&amp;quot; if the machine isn&amp;#039;t used to serve files or printers. File and printer sharing uses the SMB protocol. Uses TCP ports 139 (netbios-ssn) and 445 (microsoft-ds), which are used by the SMB protocol. &lt;br /&gt;
&lt;br /&gt;
== Command line tools ==&lt;br /&gt;
List open ports and the processes using them:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
netstat -ao&lt;br /&gt;
netstat -aon&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
List processes:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
tasklist&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Etc directory ==&lt;br /&gt;
&amp;lt;code&amp;gt;%SYSTEMROOT%\System32\Drivers\Etc&amp;lt;/code&amp;gt; is like &amp;lt;code&amp;gt;/etc&amp;lt;/code&amp;gt; in unix, contains&lt;br /&gt;
* hosts&lt;br /&gt;
* networks&lt;br /&gt;
* protocol&lt;br /&gt;
* services&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
C:\Documents and Settings\barney&amp;gt;netstat -aon&lt;br /&gt;
&lt;br /&gt;
Active Connections&lt;br /&gt;
&lt;br /&gt;
Proto  Local Address          Foreign Address     State           PID&lt;br /&gt;
TCP    0.0.0.0:135            0.0.0.0:0           LISTENING       808&lt;br /&gt;
TCP    0.0.0.0:445            0.0.0.0:0           LISTENING       4&lt;br /&gt;
...&lt;br /&gt;
&lt;br /&gt;
C:\WINDOWS\system32\drivers\etc&amp;gt;grep 135 services&lt;br /&gt;
epmap             135/tcp    loc-srv      #DCE endpoint resolution&lt;br /&gt;
epmap             135/udp    loc-srv      #DCE endpoint resolution&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Scott</name></author>
	</entry>
</feed>