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

	<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>2013-01-13T21:59:48-04:00</updated>

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

		<entry>
		<author><name><![CDATA[kingkong]]></name></author>
		<updated>2013-01-13T21:59:48-04:00</updated>

		<published>2013-01-13T21:59:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100582#p100582</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100582#p100582"/>
		<title type="html"><![CDATA[TCL get IP from webchat, converts from HEX to the real ip]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100582#p100582"><![CDATA[
hi, thanks for reply, for all. I tried it but couldn't make it work. always gives this output. how to run this? i give here some examples:<blockquote class="uncited"><div>&lt;kingkong&gt;: !hex @350CE3.C1A208.7F4D68.0036C0<br>&lt;bot&gt;: @350CE3.C1A208.7F4D68.0036C0 isn't the amount of characters ( 8 ) required to convert to hex ip.<br>&lt;kingkong&gt; !hex 350CE3.C1A208.7F4D68.0036C0<br>&lt;bot&gt;: 350CE3.C1A208.7F4D68.0036C0 isn't the amount of characters ( 8 ) required to convert to hex ip.</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11957">kingkong</a> — Sun Jan 13, 2013 9:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[bunnybump]]></name></author>
		<updated>2013-01-13T13:13:27-04:00</updated>

		<published>2013-01-13T13:13:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100581#p100581</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100581#p100581"/>
		<title type="html"><![CDATA[TCL get IP from webchat, converts from HEX to the real ip]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100581#p100581"><![CDATA[
<blockquote class="uncited"><div>&lt;birex&gt; ZendOR isn't the amount of characters ( 8 ) required to convert to hex ip.</div></blockquote>what if i want to use less than 8 character to convert it to hex ip? is it possible for that? can somebody help me how to do it pls. thanks <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=12060">bunnybump</a> — Sun Jan 13, 2013 1:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SmasHinG]]></name></author>
		<updated>2013-01-13T06:17:50-04:00</updated>

		<published>2013-01-13T06:17:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100580#p100580</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100580#p100580"/>
		<title type="html"><![CDATA[TCL get IP from webchat, converts from HEX to the real ip]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100580#p100580"><![CDATA[
Can you give me script for this who i want ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11766">SmasHinG</a> — Sun Jan 13, 2013 6:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Get_A_Fix]]></name></author>
		<updated>2013-01-13T02:33:19-04:00</updated>

		<published>2013-01-13T02:33:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100579#p100579</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100579#p100579"/>
		<title type="html"><![CDATA[TCL get IP from webchat, converts from HEX to the real ip]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100579#p100579"><![CDATA[
<blockquote class="uncited"><div>hey, it doesn't work at me coz our cloaked ips different hexed.<br>as an example cloaked ip here: @350CE3.C1A208.7F4D68.0036C0<br><br>can someone help with it please?</div></blockquote>you probably want to change<br><div class="codebox"><p>Code: </p><pre><code>set wnick [lindex [split [getchanhost [lindex [split $text] 0] $chan] @] 0]</code></pre></div>with....<br><div class="codebox"><p>Code: </p><pre><code>set wnick [lindex [split [getchanhost $text $chan] @] 1]</code></pre></div>That should work.<br><br><blockquote class="uncited"><div>Can you make this script to check for proxy checking ip/host and if is proxy bot tell to channel example: Warning This IP 54.67.88.35 is infected !<br>Thank You</div></blockquote>lol, umm, there are plenty of other script's out there that do that. This script is completely different from what you want/need, it's made for webchat IRC client's that use encrypted identd connections.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6204">Get_A_Fix</a> — Sun Jan 13, 2013 2:33 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SmasHinG]]></name></author>
		<updated>2013-01-12T05:15:34-04:00</updated>

		<published>2013-01-12T05:15:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100575#p100575</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100575#p100575"/>
		<title type="html"><![CDATA[TCL get IP from webchat, converts from HEX to the real ip]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100575#p100575"><![CDATA[
Can you make this script to check for proxy checking ip/host and if is proxy bot tell to channel example: Warning This IP 54.67.88.35 is infected !<br>Thank You<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11766">SmasHinG</a> — Sat Jan 12, 2013 5:15 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[kingkong]]></name></author>
		<updated>2013-01-12T02:37:46-04:00</updated>

		<published>2013-01-12T02:37:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100570#p100570</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100570#p100570"/>
		<title type="html"><![CDATA[TCL get IP from webchat, converts from HEX to the real ip]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100570#p100570"><![CDATA[
hey, it doesn't work at me coz our cloaked ips different hexed.<br>as an example cloaked ip here: @350CE3.C1A208.7F4D68.0036C0<br><br>can someone help with it please?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11957">kingkong</a> — Sat Jan 12, 2013 2:37 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[sapo]]></name></author>
		<updated>2012-07-10T15:58:17-04:00</updated>

		<published>2012-07-10T15:58:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99712#p99712</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99712#p99712"/>
		<title type="html"><![CDATA[TCL get IP from webchat, converts from HEX to the real ip]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99712#p99712"><![CDATA[
thanks it really works I just edit the line putserv "privmsg #my_chan .." to only send the data to that specific channel, thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12014">sapo</a> — Tue Jul 10, 2012 3:58 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2012-07-10T15:25:01-04:00</updated>

		<published>2012-07-10T15:25:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99711#p99711</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99711#p99711"/>
		<title type="html"><![CDATA[TCL get IP from webchat, converts from HEX to the real ip]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99711#p99711"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind pub - !hex hexIdentbind join - * hexIdentJoinsetudef flag hexsetudef flag hexjoinproc hexIdentJoin {nick uhost hand chan} {if {![channel get $chan hexjoin]} { return }hexIdent $nick $uhost $hand $chan $nick 1}proc hexIdent {nick uhost hand chan text {join 0}} {if {![channel get $chan hex]} { return }set wnick [lindex [split [getchanhost [lindex [split $text] 0] $chan] @] 0]if {[string length $wnick]} { set text $wnick } { set wnick $text }set a $textif {[string length $a] == 8} {while {[string length $a]} {set piece [string range $a 0 1]set a [string range $a 2 end]if {[regexp {^[a-fA-F0-9]+$} $piece]} {lappend ip [scan $piece %x]} else {set flag 1 ; break}}if {![info exists flag]} {set ip [join $ip "."]putserv "privmsg $chan :\002$wnick\002 &gt; Ident:\002$text\002; IP:\002$ip\002"} else {if {$join &lt; 1} {putserv "privmsg $chan :\002$wnick\002 &gt; \"$text\" is not hex based."}}} else {if {$join &lt; 1} {putserv "privmsg $chan :\002$wnick\002 isn't the amount of characters (8) required to convert to hex ip."}}}</code></pre></div>There are 2 ways this is usually done:<br><br>1) -----<br>nick!<a href="mailto:A6FD2E9F@somewebchat.net">A6FD2E9F@somewebchat.net</a><br><br>This is the code I use to do that. It works when the nickname's "ident" is hex encoded. Where that a6 stuff is above. This is similar to the way the script  you originally posted handles it, except I know mine above works. If this is what you meant.. Enjoys..<br><br>Make sure you:<br>to enable !hex for your users &gt;&gt; .chanset #yourchan +hex<br>to enable hex checks on join &gt;&gt;.chanset #yourchan +hexjoin<br><br><br>2) ----<br>nick!<a href="mailto:webchat@9785F988.22D4FF26.21659F86.IP">webchat@9785F988.22D4FF26.21659F86.IP</a><br><br>If instead, it looks like this. It would take a different script to reverse this type of hostmask. Neither the script I posted nor the one you originally posted will work with this type.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Tue Jul 10, 2012 3:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2012-07-10T09:04:15-04:00</updated>

		<published>2012-07-10T09:04:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99710#p99710</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99710#p99710"/>
		<title type="html"><![CDATA[TCL get IP from webchat, converts from HEX to the real ip]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99710#p99710"><![CDATA[
Could you provide an example of how an hex IP looks like?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Tue Jul 10, 2012 9:04 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[sapo]]></name></author>
		<updated>2012-07-10T07:16:01-04:00</updated>

		<published>2012-07-10T07:16:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99709#p99709</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99709#p99709"/>
		<title type="html"><![CDATA[TCL get IP from webchat, converts from HEX to the real ip]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99709#p99709"><![CDATA[
anyone please?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12014">sapo</a> — Tue Jul 10, 2012 7:16 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[sapo]]></name></author>
		<updated>2012-06-16T21:38:36-04:00</updated>

		<published>2012-06-16T21:38:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99615#p99615</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99615#p99615"/>
		<title type="html"><![CDATA[help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99615#p99615"><![CDATA[
can anyone help please?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12014">sapo</a> — Sat Jun 16, 2012 9:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[sapo]]></name></author>
		<updated>2012-06-15T09:45:32-04:00</updated>

		<published>2012-06-15T09:45:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99604#p99604</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99604#p99604"/>
		<title type="html"><![CDATA[TCL get IP from webchat, converts from HEX to the real ip]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99604#p99604"><![CDATA[
Hello,<br><br>I would like that: when a user from a webchat join a channe where the bot is, his real IP would be written by the bot on a private channel that I have.<br>The IP from a webchat is formatted as HEX.<br><br>The TCL doesn't do nothing can you help, please?<div class="codebox"><p>Code: </p><pre><code># This script allows to find out true IP of an user# connected thru webchat services.## Enable IP discovery on trigger (!findip)set findip_do 1# Enable IP discovery on joinset findjoinedip_do 1# Channels to show info onset findip_channel(#palmela-bots)  1## End of prefs#set findip_header "\[ FindIP \]"bind pub  m|m !findip findipbind join -|- *       findjoinedipproc findip {nick uhost hand channel arg} {  global findip_header findip_do findip_channel  set channel [string tolower $channel]  if {$findip_do != 1} {    return;  }  # hint taken from http://www.peterre.com/characters.html  set arg [lindex [split $arg] 0]  set hexip ""  set host [getchanhost $arg $channel]  if {$host != ""} {    if {[regexp -- {-?([0-9a-f]{8})@(.*\.ircnet\.(info|com)|webchat\.(xs4all\.nl|irc\.cz))} $host all hexip]} {      set realip [long2ip [format %d "0x$hexip"]]      putserv "PRIVMSG $channel :$findip_header Real IP of $arg is $realip"    }  }}proc findjoinedip {nick uhost hand channel} {  global findip_header findjoinedip_do join_message findip_channel  set channel [string tolower $channel]  if {$findjoinedip_do != 1 || [info exists findip_channel($channel)] &amp;&amp; $findip_channel($channel) == "0"} {    return  }  set arg [lindex [split $nick] 0]  set hexip ""  if {$uhost != ""} {    if {[regexp -- {-?([0-9a-f]{8})@(.*\.ircnet\.(info|com)|webchat\.xs4all\.nl|webchat\.irc\.cz)} $uhost all hexip]} {      set realip [long2ip [format %d "0x$hexip"]]      putserv "PRIVMSG $channel :$findip_header $arg is connected thru a webchat service, his real IP is $realip"    }  }}# proc taken from http://www.eggfaq.com/docs/faq.htmlproc long2ip {long} {  return [format "%d.%d.%d.%d" \  [expr ($long &gt;&gt; 24) &amp; 0xff] \  [expr ($long &gt;&gt; 16) &amp; 0xff] \  [expr ($long &gt;&gt; 8) &amp; 0xff] \  [expr $long &amp; 0xff]]}putlog "Loaded FindIP 0.5"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12014">sapo</a> — Fri Jun 15, 2012 9:45 am</p><hr />
]]></content>
	</entry>
	</feed>
