<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/13469" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2007-05-14T01:50:17-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/13469</id>

		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2007-05-14T01:50:17-04:00</updated>

		<published>2007-05-14T01:50:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72758#p72758</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72758#p72758"/>
		<title type="html"><![CDATA[Detecting users with normal ips and vhost ips]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72758#p72758"><![CDATA[
This is the complete tested script. Works efficiently to determine vhosts against normal ip addresses. Also added a DNS function in normal ips to check for vhosts if they are not resolved on the ircd.<br><div class="codebox"><p>Code: </p><pre><code> global unresolved_vhost #setting variables set uhost [lindex [split $host @] 1] set tld [lindex [split $uhost "."] [expr [llength [split $uhost "."]] - 1]] set domain [lindex [split $uhost "."] [expr [llength [split $uhost "."]] - 2]] set nodomaintld [string map {" " "."} [lrange [split $uhost "."] 0 [expr [llength [split $uhost "."]] - 3]]] set numbers [regexp -all {[0-9]} $uhost] set alphabets [regexp -nocase -all {[a-z]} $uhost] set totalchar [expr $numbers + $alphabets] set numbersper [expr (($totalchar - $alphabets) * 100) / $totalchar] if {[info exists vhost_ip]} { unset vhost_ip } #vhosts with no numbers if {[string equal "0" $numbersper] &amp;&amp; [string equal "0" [regexp -all {[0-9]} $uhost]] &amp;&amp; ([regexp -all {\-} $domain] &lt;= 2) &amp;&amp; ([regexp -all -nocase {[a-z]} $nodomaintld] &gt;= 5) &amp;&amp; [regexp -nocase {com|net|org|biz|info|tv|uk|us|name|ac|as|at|au|br|ca|cc|cd|de|eu|fr|id|in|it|je|jp|kz|la|lt|lu|my|pk|ro|tk|ws} $tld]} {   set vhost_ip 1 } #vhosts with numbers if {($numbersper &gt;= 1) &amp;&amp; ($numbersper &lt;= 8) &amp;&amp; ([regexp -all {\-} $domain] &lt;= 2) &amp;&amp; ([regexp -all {[0-9]} $domain] &lt;= 2) &amp;&amp; ([regexp -all {\-} $nodomaintld] &lt;= 1) &amp;&amp; ([regexp -all -nocase {[a-z]} $nodomaintld] &gt;= 5) &amp;&amp; [regexp -nocase {com|net|org|biz|info|tv|uk|us|name|ac|as|at|au|br|ca|cc|cd|de|eu|fr|id|in|it|je|jp|kz|la|lt|lu|my|pk|ro|tk|ws} $tld]} {   set vhost_ip 1 } if {![info exists vhost_ip]} { #ip address in (0.0.0.0 - 255.255.255.255 range) - can be unresolved vhost  if {([string length [string map {"." ""} $uhost]] &lt;= 12) &amp;&amp; [string equal "3" [regexp -all {\.} $uhost]] &amp;&amp; [string equal [string length [string map {"." ""} $uhost]] [regexp -all {[0-9]} $uhost]] &amp;&amp; [string equal "0" [regexp -all -nocase {[a-z]} $uhost]] &amp;&amp; [regexp {^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$} $uhost] &amp;&amp; [string equal "0" [regexp -all -nocase {[a-z]} $uhost]] || [string equal "100" $numbersper] &amp;&amp; [regexp {^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$} $uhost]} {   if {[info exists unresolved_vhost]} { unset unresolved_vhost }   #check for unresolved vhost   dnslookup $uhost ip_address_output $uhost    if {[info exists unresolved_vhost]} {     unset unresolved_vhost     #do stuff    } #ip address in domain format } elseif {([string length [string map {"." ""} $uhost]] &gt;= 18) &amp;&amp; ($numbersper &gt;= 20) &amp;&amp; [string equal "0" [regexp -all {\-} $domain]] &amp;&amp; [string equal "0" [regexp -all {[0-9]} $domain]] &amp;&amp; ([regexp -all {\-} $nodomaintld] &gt;= 1) &amp;&amp; ([regexp -all -nocase {[a-z]} $nodomaintld] &gt;= 8)} {    #do stuff       }}proc ip_address_output {ip host status addr} { global unresolved_vhost set uhost [expr {([string match -nocase *$ip* $addr])?$host:$ip}] set tld [lindex [split $uhost "."] [expr [llength [split $uhost "."]] - 1]] set domain [lindex [split $uhost "."] [expr [llength [split $uhost "."]] - 2]] set nodomaintld [string map {" " "."} [lrange [split $uhost "."] 0 [expr [llength [split $uhost "."]] - 3]]] set numbers [regexp -all {[0-9]} $uhost] set alphabets [regexp -nocase -all {[a-z]} $uhost] set totalchar [expr $numbers + $alphabets] set numbersper [expr (($totalchar - $alphabets) * 100) / $totalchar] if {[info exists $status] &amp;&amp; [string equal "0" $numbersper] &amp;&amp; [string equal "0" [regexp -all {[0-9]} $uhost]] &amp;&amp; ([regexp -all {\-} $domain] &lt;= 2) &amp;&amp; ([regexp -all -nocase {[a-z]} $nodomaintld] &gt;= 5) &amp;&amp; [regexp -nocase {com|net|org|biz|info|tv|uk|us|name|ac|as|at|au|br|ca|cc|cd|de|eu|fr|id|in|it|je|jp|kz|la|lt|lu|my|pk|ro|tk|ws} $tld]} {  set unresolved_vhost 1 } else {    return   }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Mon May 14, 2007 1:50 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2007-05-13T04:23:38-04:00</updated>

		<published>2007-05-13T04:23:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72725#p72725</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72725#p72725"/>
		<title type="html"><![CDATA[Detecting users with normal ips and vhost ips]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72725#p72725"><![CDATA[
After doing a survey I found:<br>Vhosts have percentage of alphabets like 92% and numbers like 8%, while regular hosts have about percentage of numbers like 40% or more.<br><br>Here is the current solution I derived for determining vhosts against normal ip addresses: (not valid if vhosts are not resolved on the ircd)<br><div class="codebox"><p>Code: </p><pre><code>set tld [expr [llength [lindex [split $uhost @] 1]] - 1]set domain [expr [llength [lindex [split $uhost @] 1]] - 2]set tlduhost [lrange [split $uhost "."] 0 [expr $tld - 1]]set notlduhost [string map {" " ""} $tlduhost]set numbers [regexp -all {[0-9]} $uhost]set alphabets [regexp -nocase -all {[a-z]} $uhost]set totalchar [expr $numbers + $alphabets]set numbersper [expr (($totalchar - $alphabets) * 100) / $totalchar]#vhosts with no numbersif {[string equal "0" [regexp -all {[0-9]} $uhost]] &amp;&amp; ([regexp -all {\-} [lindex [split $uhost "."] $domain]] &lt;= 2) &amp;&amp; ([regexp -all -nocase {[a-z]} $notlduhost] &gt;= 5) &amp;&amp; [regexp -nocase {com|net|org|biz|info|tv|uk|us|name|ac|as|at|au|br|ca|cc|cd|de|eu|fr|id|in|it|je|jp|kz|la|lt|lu|my|pk|ro|tk} [lindex [split $uhost "."] $tld]]} {#do stuff}#vhosts with numbersif {($numbersper &lt;= 8) &amp;&amp; ([regexp -all {\-} [lindex [split $uhost "."] $domain]] &lt;= 2) &amp;&amp; ([regexp -all {[0-9]} [lindex [split $uhost "."] $domain]] &lt;= 2) &amp;&amp; ([regexp -all {\-} [lrange [split $uhost "."] 0 [expr $domain - 1]]] &lt;= 1) &amp;&amp; ([regexp -all -nocase {[a-z]} $notlduhost] &gt;= 5) &amp;&amp; [regexp -nocase {com|net|org|biz|info|tv|uk|us|name|ac|as|at|au|br|ca|cc|cd|de|eu|fr|id|in|it|je|jp|kz|la|lt|lu|my|pk|ro|tk} [lindex [split $uhost "."] $tld]]} {#do stuff}#ip address in (0.0.0.0 - 255.255.255.255 range)if {([string length $uhost] &lt;= 15) &amp;&amp; [string equal "3" [regexp -all {\.} $uhost]] &amp;&amp; [string equal [string length [string map {"." ""} $uhost]] [regexp -all {[0-9]} $uhost]] || [regexp {^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$} $uhost]} {#do stuff}#ip address in domain formatif {([string length [string map {"." ""} $uhost]] &gt;= 18) &amp;&amp; ($numbersper &gt;= 30) &amp;&amp; [string equal "0" [regexp -all {\-} [lindex [split $uhost "."] $domain]]] &amp;&amp; [string equal "0" [regexp -all {[0-9]} [lindex [split $uhost "."] $domain]]] &amp;&amp; ([regexp -all {\-} [lrange [split $uhost "."] 0 [expr $domain - 1]]] &gt;= 1) &amp;&amp; ([regexp -all -nocase {[a-z]} $notlduhost] &gt;= 8)} {#do stuff}</code></pre></div><em class="text-italics">Edit: I haven't really tested these logics yet for accuracy</em><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Sun May 13, 2007 4:23 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-05-11T13:15:42-04:00</updated>

		<published>2007-05-11T13:15:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72663#p72663</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72663#p72663"/>
		<title type="html"><![CDATA[Detecting users with normal ips and vhost ips]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72663#p72663"><![CDATA[
Since we're not dealing with HostServ based vhosts, this means that there's really no difference between vhosts and other hosts. I think you're rather looking for a DNS-pollution scanner.<br>A few good links on the subject:<br><a href="http://www.dnsspam.nl/" class="postlink">http://www.dnsspam.nl/</a>, <a href="http://www.nl.ircnet.org/hostname-rules.html" class="postlink">http://www.nl.ircnet.org/hostname-rules.html</a>.<br>Also might wish to inspect <a href="http://www.egghelp.org/tclhtml/3478-4-0-0-1-dns-pollution.htm" class="postlink">dnsspam.tcl</a> which uses <a href="http://spamcalc.net/" class="postlink">spamcalc</a> to determine the grade of pollution of the hostname.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Fri May 11, 2007 1:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-05-11T10:20:10-04:00</updated>

		<published>2007-05-11T10:20:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72657#p72657</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72657#p72657"/>
		<title type="html"><![CDATA[Detecting users with normal ips and vhost ips]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72657#p72657"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>[regexp {^[^0-9]} $host]</code></pre></div>Means that the first character in $host is not a number.<div class="codebox"><p>Code: </p><pre><code>[regexp {[a-zA-Z]} $host]</code></pre></div>Means that $host contains an alphabet.<br>So it can simply be replaced with<div class="codebox"><p>Code: </p><pre><code>[regexp {[^0-9]} $host]</code></pre></div>If there's no numbers, then they're definitely alphabets (with '.' and perhaps '-').<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Fri May 11, 2007 10:20 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2007-05-11T08:45:15-04:00</updated>

		<published>2007-05-11T08:45:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72654#p72654</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72654#p72654"/>
		<title type="html"><![CDATA[Detecting users with normal ips and vhost ips]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72654#p72654"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>[regexp {^[^0-9]} $host] &amp;&amp; [regexp {[a-zA-Z]} $host] &amp;&amp; [regexp {\.(com|net|org|info|biz|tk)$} $host]#this would be for hosts with alphabets and no numbers#my next situation would be for determining with numbers as well, maybe take the percentage of numbers in the vhost along with the length of the alphabets present in the host, and comparing it with a certain number which i will observe by looking at most vhosts of certain shell companies :)</code></pre></div>This should be the current simplest logic. I'll find a more suitable solution, by looking at vhosts carefully and try to detect the most best setting for matching vhosts over regular ip addresses. I'll follow up the code and include it within this post for other users to see and utilize.<br><br>The problem with gathering shell box ranges for various shell providers, would be a very trivial task and tidious, since they are just too many.. and HostServ is not used on DALnet, which is the network I use.<br><br>I appreciate everyone for their help and contribution. Thanks.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Fri May 11, 2007 8:45 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-05-11T07:53:35-04:00</updated>

		<published>2007-05-11T07:53:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72652#p72652</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72652#p72652"/>
		<title type="html"><![CDATA[Detecting users with normal ips and vhost ips]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72652#p72652"><![CDATA[
<blockquote class="uncited"><div>This basically works that, vhosts only contains alphabets with small and upper cases and no numbers. Since virtual hosts normally contain alphabets and no numbers. If so numbers are present only 1 minmum to 3 maximum.<br><div class="codebox"><p>Code: </p><pre><code>regexp {^[^0-9]*[a-zA-Z]$} $host]</code></pre></div>Anyway, thanks for all the suggestions.. I'll give them a go <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"></div></blockquote>Actually, this matches any number of non-numeric characters, followed by one alphabetic character.<br><blockquote class="uncited"><div>Yes we can check if virtual hosts resolve to an ip, but also we would need to check if they reverse-dns also resolves? right?</div></blockquote>Unless they use HostServ vhosts (which are not ip-based at all), a reverse-dns of the ip would most likely return the same hostname as seen on irc, with the rare exception when an ircd would use it's own dns-server with "bogus" entries for *.in-addr.arpa.<br><br>In the case of "normal" vhosts, I guess your best bet would be to gather network-ranges that are confirmed vhosts, do a dns-lookup on the suspected hostname, and see if the resulting ip matches any known vhost net.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Fri May 11, 2007 7:53 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2007-05-11T04:43:18-04:00</updated>

		<published>2007-05-11T04:43:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72649#p72649</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72649#p72649"/>
		<title type="html"><![CDATA[Detecting users with normal ips and vhost ips]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72649#p72649"><![CDATA[
Here are some examples of virtual hosts:<br><div class="codebox"><p>Code: </p><pre><code>64.18.135.148 ==&gt; search.on.g0ogle.be64.18.135.149 ==&gt; get.me.bill.gatesweb.info64.18.135.150 ==&gt; halloween.gh0strider.be64.18.135.151 ==&gt; got.girls4uboys.com64.18.135.152 ==&gt; trust.godhost.us64.18.135.153 ==&gt; idiots.gothacked.biz64.18.135.154 ==&gt; are.you.h0m0.net64.18.135.155 ==&gt; come.here.to.have-my.info64.18.135.156 ==&gt; mess.with.me.if.you.want.hellentry.com64.18.135.157 ==&gt; whats.his-real.name64.18.135.158 ==&gt; w.hore.be64.18.135.159 ==&gt; amd.vs.intel.st64.18.135.160 ==&gt; dont.even.dare.to.ban.my.ip-address.be64.18.135.161 ==&gt; smart.ircnoob.com64.18.135.162 ==&gt; you.are.lag.in64.18.135.163 ==&gt; this.is.leet.la64.18.135.164 ==&gt; only.me.no-u.be64.18.135.165 ==&gt; shoutcast.is.nullsoft.be64.18.135.166 ==&gt; lets.talk.about.ourmeetings.net64.18.135.167 ==&gt; you.must.be.outofmind.be64.18.135.168 ==&gt; its.time.to.ping-timeout.be64.18.135.169 ==&gt; group.of.rappers.cc64.18.135.170 ==&gt; your.secrets.are.recorded.be64.18.135.171 ==&gt; dont.worry.you.are.secure.la64.18.135.172 ==&gt; you.are.just.another.sh1tbox.com64.18.135.173 ==&gt; be.my.shad0w.be64.18.135.174 ==&gt; her.nightie.is.made.of.silk.com64.18.135.175 ==&gt; she.is.one.of.the.top-escort.nl64.18.135.176 ==&gt; are.you.virgine.ws </code></pre></div>Yes we can check if virtual hosts resolve to an ip, but also we would need to check if they reverse-dns also resolves? right?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Fri May 11, 2007 4:43 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2007-05-11T03:01:08-04:00</updated>

		<published>2007-05-11T03:01:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72647#p72647</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72647#p72647"/>
		<title type="html"><![CDATA[Detecting users with normal ips and vhost ips]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72647#p72647"><![CDATA[
This basically works that, vhosts only contains alphabets with small and upper cases and no numbers. Since virtual hosts normally contain alphabets and no numbers. If so numbers are present only 1 minmum to 3 maximum.<br><div class="codebox"><p>Code: </p><pre><code>regexp {^[^0-9]*[a-zA-Z]$} $host]</code></pre></div>Anyway, thanks for all the suggestions.. I'll give them a go <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Fri May 11, 2007 3:01 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[honeybee]]></name></author>
		<updated>2007-05-10T22:03:23-04:00</updated>

		<published>2007-05-10T22:03:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72641#p72641</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72641#p72641"/>
		<title type="html"><![CDATA[Detecting users with normal ips and vhost ips]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72641#p72641"><![CDATA[
vhost are usually resolved so why dont you check if the ip is really a resolving ip?<div class="codebox"><p>Code: </p><pre><code>if {[regexp {\@(\d+\.\d+\.\d+\.\d+)$} $uhost tmp host]} {# is not a resolving ip; where host is the original uhost.}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7174">honeybee</a> — Thu May 10, 2007 10:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-05-10T08:58:40-04:00</updated>

		<published>2007-05-10T08:58:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72625#p72625</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72625#p72625"/>
		<title type="html"><![CDATA[Detecting users with normal ips and vhost ips]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72625#p72625"><![CDATA[
It would be helpful to know what characteristics these vhosts have (that is, how are they different from real hosts)?<br>As for simplifying the code in your first post, considder using this:<div class="codebox"><p>Code: </p><pre><code>if {[lindex [split $uhost "@"] 1]] &amp;&amp; [regexp {\.(com|net|org)$} $uhost]} {return 0}</code></pre></div>(list of tld's trunkated to make it easier to read).<br><br>Also, I am not sure what you try to accomplish with the first regular expression, although using ![regexp ....] is abit easier than [string equal "0" [regexp...]]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Thu May 10, 2007 8:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2007-05-10T03:52:17-04:00</updated>

		<published>2007-05-10T03:52:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72619#p72619</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72619#p72619"/>
		<title type="html"><![CDATA[Detecting users with normal ips and vhost ips]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72619#p72619"><![CDATA[
That is also a good logic, but im concerned when hosts are not always in the format of numbers. They are also in the format like:<br><div class="codebox"><p>Code: </p><pre><code>chaos@179.13.95.219.kmr01-home.tm.net.mykarrde@bzq-88-153-115-56.red.bezeqint.net~plamen@87-126-143-181.btc-net.bgnet@dsl-201-219-71-82.users.telpin.com.arrichardw@M263P003.adsl.highway.telekom.atNem@dslb-084-056-241-131.pools.arcor-ip.net~jjkola@cable-roi-fff8dd00-151.dhcp.inet.fi</code></pre></div>When they include numbers both together with alphabets. Anything suggested for situations like this?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Thu May 10, 2007 3:52 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-05-10T03:47:16-04:00</updated>

		<published>2007-05-10T03:47:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72618#p72618</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72618#p72618"/>
		<title type="html"><![CDATA[Detecting users with normal ips and vhost ips]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72618#p72618"><![CDATA[
If a host ends with a number then it's an IP else it's a hostname:<div class="codebox"><p>Code: </p><pre><code>if {[string is integer [string index $host end]]} {# IP} {# Vhost}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Thu May 10, 2007 3:47 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2007-05-09T22:58:01-04:00</updated>

		<published>2007-05-09T22:58:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72617#p72617</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72617#p72617"/>
		<title type="html"><![CDATA[Detecting users with normal ips and vhost ips]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72617#p72617"><![CDATA[
What would be a good way of determining normal ip users, against people using vhosts??<br><br>Currently came up with this:<div class="codebox"><p>Code: </p><pre><code>set host [lindex [split $uhost @] 1]set tld [expr [llength [lindex [split $uhost @] 1]] - 1]if {[string equal "0" [regexp {^[^0-9]*[a-zA-Z]$} $host]] &amp;&amp; [regexp {com|net|org|biz|info|tv|uk|us|name|ac|as|at|au|br|ca|cc|cd|de|eu|fr|id|in|it|je|jp|kz|la|lt|lu|my|pk|ro|tk} [lindex [split $host "."] $tld]]} { return 0 }</code></pre></div>All suggestions would be appreciated.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Wed May 09, 2007 10:58 pm</p><hr />
]]></content>
	</entry>
	</feed>
