<?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/18529" />

	<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>2011-06-30T11:30:57-04:00</updated>

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

		<entry>
		<author><name><![CDATA[samhain]]></name></author>
		<updated>2011-06-30T11:30:57-04:00</updated>

		<published>2011-06-30T11:30:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=97130#p97130</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=97130#p97130"/>
		<title type="html"><![CDATA[Proxy checker Lock mode help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=97130#p97130"><![CDATA[
I Use James Proxycheck TCL, the channel gets flooded daily, however I tried to use a few tweaks, but I failed, I'd like to see this script modified, to Such that it's not working good when there are 3-4 joins of flood bots at once, plus I'd like to see an option so that if there's a proxy that joins the channel the script should Lock the channel to +mr modes, and then send a notice to the channel that the channel has been locked due to flood, here's the code.<br><div class="codebox"><p>Code: </p><pre><code>set proxycheck_rbls { "dnsbl.dronebl.org" "tor.dnsbl.sectoor.de" "rbl.efnet.org" "dnsbl.swiftbl.org" "opm.blitzed.org" "dnsbl.ahbl.org" }# Eggdrop's Time in minutes to BAN the proxy. (Note: The ban will last in the banlist of the manual channel).set proxycheck_bantime 30# DO NOT TOUCH THE CODE YOU WILL RUIN THE SCRIPT]#add our channel flagsetudef flag proxycheck#bind our eventsbind join - *!*@* proxycheck_join#swing your pants# catch joinsproc proxycheck_join { nick host handle channel } {  #check we're active  if {![channel get $channel proxycheck]} {    return 0  }  #don't apply to friends, voices, ops  if {[matchattr $handle fov|fov $channel]} {    return 0  }  #get the actual host  regexp ".+@(.+)" $host matches newhost  if [regexp {[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}$} $newhost] {    #it's a numeric host, skip the lookup    proxycheck_check2 $newhost $newhost 1 $nick $newhost $channel  } else {    putloglev d * "proxycheck: doing dns lookup on $newhost to get IP"    dnslookup $newhost proxycheck_check2 $nick $newhost $channel  }}# first callback (runs RBL checks)proc proxycheck_check2 { ip host status nick orighost channel } {  global proxycheck_rbls  if {$status} {    putloglev d * "proxycheck: $host resolved DNS to $ip"    # reverse the IP    regexp {([0-9]{1,3}).([0-9]{1,3}).([0-9]{1,3}).([0-9]{1,3})} $ip matches a b c d    set newip "$d.$c.$b.$a"    # look it up in the rbls    foreach rbl $proxycheck_rbls {      putloglev d * "proxycheck: looking up $newip.$rbl"      dnslookup "$newip.$rbl" proxycheck_check3 $nick $host $channel $rbl    }  } else {    putlog "proxycheck: Couldn't resolve $host. (No further action taken.)"  }}# second callback (catches RBL results)proc proxycheck_check3 { ip host status nick orighost channel rbl } {  global proxycheck_bantime  if {$status} {    putlog "proxycheck: got host $host = ip $ip from RBL $rbl ... banning    putserv "KICK $channel $nick :Reason: OPEN proxy -- Source: $rbl From: $nick"    putserv "MODE $channel +b *@$orighost"  }  #if we didn't get a host, they're not in RBL}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8567">samhain</a> — Thu Jun 30, 2011 11:30 am</p><hr />
]]></content>
	</entry>
	</feed>
