<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://wiki.darenet.org/skins/common/feed.css?12"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wiki.darenet.org/index.php?action=history&amp;feed=atom&amp;title=Development_Team%2Fservices-darenet%2Fsockcheck_example_config</id>
		<title>Development Team/services-darenet/sockcheck example config - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.darenet.org/index.php?action=history&amp;feed=atom&amp;title=Development_Team%2Fservices-darenet%2Fsockcheck_example_config"/>
		<link rel="alternate" type="text/html" href="http://wiki.darenet.org/index.php?title=Development_Team/services-darenet/sockcheck_example_config&amp;action=history"/>
		<updated>2026-05-06T06:15:46Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.15.1</generator>

	<entry>
		<id>http://wiki.darenet.org/index.php?title=Development_Team/services-darenet/sockcheck_example_config&amp;diff=2978&amp;oldid=prev</id>
		<title>Admin:&amp;#32;New page: This is an example configuration of services-darenet sockcheck module. &lt;pre&gt; /* sockcheck.conf  *  * This file describes what proxy scans to run: what ports to connect  * to, what to send ...</title>
		<link rel="alternate" type="text/html" href="http://wiki.darenet.org/index.php?title=Development_Team/services-darenet/sockcheck_example_config&amp;diff=2978&amp;oldid=prev"/>
				<updated>2008-09-28T00:38:13Z</updated>
		
		<summary type="html">&lt;p&gt;New page: This is an example configuration of services-darenet sockcheck module. &amp;lt;pre&amp;gt; /* sockcheck.conf  *  * This file describes what proxy scans to run: what ports to connect  * to, what to send ...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This is an example configuration of services-darenet sockcheck module.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/* sockcheck.conf&lt;br /&gt;
 *&lt;br /&gt;
 * This file describes what proxy scans to run: what ports to connect&lt;br /&gt;
 * to, what to send to them, to look for, and what to do if that is&lt;br /&gt;
 * found.&lt;br /&gt;
 */&lt;br /&gt;
&lt;br /&gt;
/* Connect on port 1080, sending &amp;quot;\5\1\0&amp;quot; as challenge.&lt;br /&gt;
 * If we get &amp;quot;\5\0&amp;quot; as a response, it's an unsecured socks5.&lt;br /&gt;
 */&lt;br /&gt;
 &lt;br /&gt;
&amp;quot;1080:050100&amp;quot; {&lt;br /&gt;
   &amp;quot;0500&amp;quot; &amp;quot;reject:Unsecured socks5&amp;quot;;&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
/* Connect on port 1080, sending &amp;quot;\4\1&amp;quot; followed by the port&lt;br /&gt;
 * and IP of the client, followed by the (NUL-terminated) ident to&lt;br /&gt;
 * use. If we get a four byte response with '\x5a' as the second&lt;br /&gt;
 * byte, it's an unsecured socks4 proxy.&lt;br /&gt;
 *&lt;br /&gt;
 * It would be generally wise to replace the $p$i with a hard-coded&lt;br /&gt;
 * one; many insecure proxies refuse to connect to themselves.&lt;br /&gt;
 */&lt;br /&gt;
&lt;br /&gt;
&amp;quot;1080:0401$p$i=p=r=o=x=y00&amp;quot; {&lt;br /&gt;
   &amp;quot;..5a....&amp;quot; &amp;quot;reject:Unsecured socks4&amp;quot;;&lt;br /&gt;
};&lt;br /&gt;
 &lt;br /&gt;
&amp;quot;23:&amp;quot; {&lt;br /&gt;
// This first test is interesting: multi-stage, and a default action is reject&lt;br /&gt;
// this crap at the front is the router trying to negotiate telnet options&lt;br /&gt;
 &lt;br /&gt;
   &amp;quot;fffb01fffb03fffd18fffd1f0d0a0d0a=U=s=e=r= =A=c=c=e=s=s= &lt;br /&gt;
    =V=e=r=i=f=i=c=a=t=i=o=n0d0a0d0a=P=a=s=s=w=o=r=d3a= :=c=i=s=c=o0d0a&amp;quot; {&lt;br /&gt;
           &amp;quot;0d0a=P=a=s=s=w=o=r=d3a= &amp;quot; &amp;quot;accept&amp;quot;;&lt;br /&gt;
           &amp;quot;other&amp;quot; &amp;quot;reject:[1 hour] Cisco router with default password&amp;quot;;&lt;br /&gt;
 &lt;br /&gt;
   };&lt;br /&gt;
 &lt;br /&gt;
   &amp;quot;=W=i=n=G=a=t=e=&amp;gt;&amp;quot; &amp;quot;reject:Unsecured wingate&amp;quot;;&lt;br /&gt;
   &amp;quot;=T=o=o= =m=a=n=y&amp;quot; &amp;quot;reject:Unsecured wingate&amp;quot;;&lt;br /&gt;
   &amp;quot;=E=n=t=e=r= =h=o=s=t= =n=a=m=e&amp;quot; &amp;quot;reject:Unsecured wingate&amp;quot;;&lt;br /&gt;
   // the 3a is ':'; due to a parser glitch, =: isn't parsed like you might expect&lt;br /&gt;
   &amp;quot;=E=n=t=e=r= 3a= =&amp;lt;=h=o=s=t=&amp;gt;&amp;quot; &amp;quot;reject:Unsecured wingate&amp;quot;;&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
/* Connect on port 3128 (squid), trying to use a HTTP CONNECT&lt;br /&gt;
 * proxy.  If we get a 200 response, it worked and should be&lt;br /&gt;
 * booted.&lt;br /&gt;
 *&lt;br /&gt;
 * If you do this check on port 80, you might check for &amp;quot;200&lt;br /&gt;
 * Connection&amp;quot; instead to reduce false positives; many servers&lt;br /&gt;
 * send 200 OK responses for custom 404 Error pages.&lt;br /&gt;
 *&lt;br /&gt;
 * As with the SOCKS4 check, you may want to replace the $c:3128&lt;br /&gt;
 * (client hostname and port) with a hard-coded one.&lt;br /&gt;
 */&lt;br /&gt;
 &lt;br /&gt;
&amp;quot;3128:=C=O=N=N=E=C=T= $c=:=3=1=2=8= =H=T=T=P=/=1=.=00d0a0d0a&amp;quot; {&lt;br /&gt;
   &amp;quot;=H=T=T=P=/=1=.=0= =2=0=0&amp;quot; &amp;quot;reject:Unsecured proxy&amp;quot;;&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
&amp;quot;27374:&amp;quot; {&lt;br /&gt;
   &amp;quot;&amp;quot; &amp;quot;reject:Subseven detected&amp;quot;;&lt;br /&gt;
};&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>