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

	<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>2022-11-06T20:25:35-04:00</updated>

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

		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2022-11-06T20:25:35-04:00</updated>

		<published>2022-11-06T20:25:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111498#p111498</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111498#p111498"/>
		<title type="html"><![CDATA[OP users if their IP (from /whois) appears on a whitelist]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111498#p111498"><![CDATA[
<blockquote class="uncited"><div><br>I wonder if there is a risk here.   <br>In that,  suppose there are lot of nicks in the channel, when the bot is op'd.    It looks like the bot will just hammer the irc server with  /whois  requests.<br>Is there a risk that the network won't like that, and maybe kick the bot off?<br>Should there be built into the script some sort of delaying?   ... putting some time between each /whois command?<br><br>I don't know.<br>Just thinking...</div></blockquote>You are very right willyw its exactly what i first thought of especially since efnet doesn't allow stacked nicks for whois command /whois nick,nick,nick,nick,nick,nick like some other ircds allow so yes i suspect there to be a risk as well as OP didnt provide any info regarding that but perhaps as u mentioned some sort of delay might prevent the risk of disconnect can't really tell<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Sun Nov 06, 2022 8:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2022-11-06T16:32:27-04:00</updated>

		<published>2022-11-06T16:32:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111497#p111497</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111497#p111497"/>
		<title type="html"><![CDATA[OP users if their IP (from /whois) appears on a whitelist]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111497#p111497"><![CDATA[
A couple things come to mind:<br><blockquote class="uncited"><div>this is what i have so far<br><div class="codebox"><p>Code: </p><pre><code>...  check $IP  against whitelist here}</code></pre></div></div></blockquote>I'm thinking that you can use info found here:<br><a href="http://forum.egghelp.org/viewtopic.php?t=6885" class="postlink">http://forum.egghelp.org/viewtopic.php?t=6885</a><br>and<br><a href="https://www.tcl.tk/man/tcl8.6/TclCmd/lsearch.html" class="postlink">https://www.tcl.tk/man/tcl8.6/TclCmd/lsearch.html</a><br>to write this part.<br><br><blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>...        putserv "whois $member"      }    }  }}</code></pre></div></div></blockquote>I wonder if there is a risk here.   <br>In that,  suppose there are lot of nicks in the channel, when the bot is op'd.    It looks like the bot will just hammer the irc server with  /whois  requests.<br>Is there a risk that the network won't like that, and maybe kick the bot off?<br>Should there be built into the script some sort of delaying?   ... putting some time between each /whois command?<br><br>I don't know.<br>Just thinking...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Sun Nov 06, 2022 4:32 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2022-11-06T12:08:50-04:00</updated>

		<published>2022-11-06T12:08:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111496#p111496</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111496#p111496"/>
		<title type="html"><![CDATA[OP users if their IP (from /whois) appears on a whitelist]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111496#p111496"><![CDATA[
this is what i have so far<br><div class="codebox"><p>Code: </p><pre><code>setudef flag whois-IP-checkerbind join - * join:check-ipproc join:check-ip {nick uhost hand chan} {  if {![channel get $chan whois-IP-checker]} { return 0 }  putserv "whois $nick"}bind raw - 338 Whois:Check:IPproc Whois:Check:IP {from key text} {  set chan #channel  set IP [lindex [split $text] 2]  check $IP  against whitelist here}bind mode - "#% +o*" autocheck:whois-IPproc autocheck:whois-IP {nick uhost hand chan mode target} {  if {[isbotnick $target]} {      foreach channel [channels] {      if {![channel get $channel whois-IP-checker]} continue      if {![botisop $channel]} continue      foreach member [chanlist $channel] {        if {[isbotnick $member]} continue        if {[isop $member $channel] || [ishalfop $member $channel] || [matchattr [nick2hand $member] fon|fon $channel]} continue        putserv "whois $member"      }    }  }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Sun Nov 06, 2022 12:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2022-11-06T11:19:21-04:00</updated>

		<published>2022-11-06T11:19:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111495#p111495</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111495#p111495"/>
		<title type="html"><![CDATA[OP users if their IP (from /whois) appears on a whitelist]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111495#p111495"><![CDATA[
yea i just tested again and it seems everyone can see it in whois, true<br><br>let me see if i can attempt to have it check for that<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Sun Nov 06, 2022 11:19 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[catharsis]]></name></author>
		<updated>2022-11-06T11:15:06-04:00</updated>

		<published>2022-11-06T11:15:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111494#p111494</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111494#p111494"/>
		<title type="html"><![CDATA[OP users if their IP (from /whois) appears on a whitelist]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111494#p111494"><![CDATA[
<blockquote class="uncited"><div>to see IP in whois you would need  IRCOP access</div></blockquote>that's not accurate, I see everybody's IP just by doing /whois<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12988">catharsis</a> — Sun Nov 06, 2022 11:15 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2022-11-06T11:12:30-04:00</updated>

		<published>2022-11-06T11:12:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111493#p111493</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111493#p111493"/>
		<title type="html"><![CDATA[OP users if their IP (from /whois) appears on a whitelist]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111493#p111493"><![CDATA[
to see IP in whois you would need  IRCOP access<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Sun Nov 06, 2022 11:12 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[catharsis]]></name></author>
		<updated>2022-11-03T20:38:26-04:00</updated>

		<published>2022-11-03T20:38:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111491#p111491</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111491#p111491"/>
		<title type="html"><![CDATA[OP users if their IP (from /whois) appears on a whitelist]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111491#p111491"><![CDATA[
it's EFnet so there are no cloaks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12988">catharsis</a> — Thu Nov 03, 2022 8:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2022-11-03T20:27:39-04:00</updated>

		<published>2022-11-03T20:27:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111490#p111490</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111490#p111490"/>
		<title type="html"><![CDATA[OP users if their IP (from /whois) appears on a whitelist]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111490#p111490"><![CDATA[
u could also use the cloaked IP for that as thats unique as well tied tthe real IP i use it as well to add users and grant them access in eggdrop for like aop  and such<br><br>that would take a bind join only and no whois to check for it <br><br>i hope this helps, let me know if it worked<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Thu Nov 03, 2022 8:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[catharsis]]></name></author>
		<updated>2022-11-02T22:45:20-04:00</updated>

		<published>2022-11-02T22:45:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111489#p111489</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111489#p111489"/>
		<title type="html"><![CDATA[OP users if their IP (from /whois) appears on a whitelist]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111489#p111489"><![CDATA[
Something like this might already exist but I looked for hours and couldn't find anything<br><br>on /whois there's a line that looks like this:<br><div class="codebox"><p>Code: </p><pre><code>actually using host [IP address here]</code></pre></div>what I have in mind is a script that can look up users on /whois and OP them if the IP displayed there is on a list of trusted IPs<br><br>both IPV4 and IPV6 IPs need to be supported<br><br>users should be checked when they join the channel, also, when eggdrop itself becomes OP'd, it should check all users on the channel (run /whois on every user and OP any who match the trusted IP list). Also maybe also check all users every X minutes just in case something slips through the cracks?<br><br>NOTE: I'm aware of eggdrop's built-in auto-OP functionality but I don't want to use it because it's based on hostnames so anyone with the ability to create PTR records for their own IP could trivially exploit it<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12988">catharsis</a> — Wed Nov 02, 2022 10:45 pm</p><hr />
]]></content>
	</entry>
	</feed>
