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

	<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>2025-06-17T05:46:23-04:00</updated>

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

		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2025-06-17T05:46:23-04:00</updated>

		<published>2025-06-17T05:46:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=113328#p113328</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=113328#p113328"/>
		<title type="html"><![CDATA[Re: domain.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=113328#p113328"><![CDATA[
<a href="https://tools.whois.com.au/" class="postlink">https://tools.whois.com.au/</a> doesn't exist anymore, this is the one used for .id tlds<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Tue Jun 17, 2025 5:46 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[abi]]></name></author>
		<updated>2025-06-17T05:38:56-04:00</updated>

		<published>2025-06-17T05:38:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=113327#p113327</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=113327#p113327"/>
		<title type="html"><![CDATA[domain.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=113327#p113327"><![CDATA[
Hello<br>i try to used this script<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/atom-one-dark-reasonable.min.css"> <strong>script</strong>  <strong>script</strong> <div class="codebox"><pre><code class="language-tcl">######################################################## Who is Versi 1.1 by dono### +Update host +Whois Automation With IP Info##################################################bind pub - domain msg_whoispackage require httppackage require tlsproc msg_whois {nick uhost hand chan text} {  global botnick  if {$text == ""} { putquick "PRIVMSG $chan :You have to use true command for look up whois information. Command: &lt;domain domain&gt;"; return }        package require tls        ::http::register https 443 ::tls::socketif {[string match "*.id" $text]} {   set connect [::http::geturl https://tools.whois.com.au/whois/$text]   set files [::http::data $connect]  ::http::cleanup $files    set l [regexp -all -inline -- {Creation Date:(.*?)T.*?Expiration Date:(.*?)T.*?Sponsoring Registrar:(.*?)Status:.*?Registrant ID:(.*?)Admin Contact.*?Name Server:(.*?)Access to WHOIS} $files]     foreach {black a b c d e} $l {         set a [string trim $a " \n"]         set b [string trim $b " \n"]         set c [string trim $c " \n"]         set d [string trim $d " \n"]         set e [string trim $e " \n"]         regsub -all {&lt;.+?&gt;} $a {} a         regsub -all {&lt;.+?&gt;} $b {} b         regsub -all {&lt;.+?&gt;} $c {} c         regsub -all {&lt;.+?&gt;} $d {} d         regsub -all {&lt;.+?&gt;} $e {} eif {[info exists a]} { putserv "PRIVMSG $chan :\[\002$text\002\] Created: $a - Exp: $b - Registrar: $c - Registrant: $d - DNS: $e"  set connect2 [::http::geturl https://tools.whois.com.au/dig/$text]  set files2 [::http::data $connect2]  ::http::cleanup $files2    set l2 [regexp  -all -inline -- {&lt;td headers="th-ip-1"&gt;(.*?)&lt;/td&gt;} $files2]     foreach {blue z } $l2 {         set a [string trim $z " \n"]         regsub -all {&lt;.+?&gt;} $z {} z        if {[info exists z]} {  set connect3 [::http::geturl http://whatismyipaddress.com/ip/$z]  set files3 [::http::data $connect3]  ::http::cleanup $files3    regexp -- {ISP:&lt;/th&gt;&lt;td&gt;(.*?)&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;th&gt;Organization} $files3 - isp    regexp -- {Country:&lt;/th&gt;&lt;td&gt;(.*?) &lt;img src=} $files3 - country    regexp -- {Hostname:&lt;/th&gt;&lt;td&gt;(.*?)&lt;/td&gt;&lt;/tr&gt;} $files3 - hostname    regexp -- {State/Region:&lt;/th&gt;&lt;td&gt;(.*?)&lt;/td&gt;&lt;/tr&gt;} $files3 - state    regexp -- {City:&lt;/th&gt;&lt;td&gt;(.*?)&lt;/td&gt;&lt;/tr&gt;} $files3 - cityif {[info exists country]} { puthelp "privmsg $chan :\[\002$text\002\] IP: $z - ISP: $isp - Hostname: $hostname - Country: $country" } if {[info exists state]} { puthelp "privmsg $chan :\[\002$text\002\] State: $state - City: $city"}                }          }# tutup info exists f} # tutup foreach}# tutup string match "*.id"} elseif {[string match "*.org" $text]} {  set connect [::http::geturl https://tools.whois.com.au/whois/$text]  set files [::http::data $connect]  ::http::cleanup $files    set l [regexp -all -inline -- {Created On:(.*?)UTC.*?Last Updated On:(.*?)UTC.*?Expiration Date:(.*?)Sponsoring Registrar:(.*?)Status:.*?Registrant Street1:(.*?)Registrant Street2:.*?Registrant City:(.*?)Registrant State/Province:(.*?)Registrant Postal Code:(.*?)Registrant Country:(.*?)Registrant Phone:.*?Registrant Email:(.*?)Admin ID} $files]     foreach {black a b c d e f g h i j} $l {         set a [string trim $a " \n"]         set b [string trim $b " \n"]         set c [string trim $c " \n"]         set d [string trim $d " \n"]         set e [string trim $e " \n"]         set f [string trim $f " \n"]         set g [string trim $g " \n"]         set h [string trim $h " \n"]         set i [string trim $i " \n"]         set j [string trim $j " \n"]         regsub -all {&lt;.+?&gt;} $a {} a         regsub -all {&lt;.+?&gt;} $b {} b         regsub -all {&lt;.+?&gt;} $c {} c         regsub -all {&lt;.+?&gt;} $d {} d         regsub -all {&lt;.+?&gt;} $e {} e         regsub -all {&lt;.+?&gt;} $f {} f         regsub -all {&lt;.+?&gt;} $g {} g         regsub -all {&lt;.+?&gt;} $h {} h         regsub -all {&lt;.+?&gt;} $i {} i         regsub -all {&lt;.+?&gt;} $j {} j        if {[info exists a]} { putserv "PRIVMSG $chan :\[\002$text\002\] Created: $a - Update: $b - Exp: $c - Registrar: $d - Email: $j"  set connect2 [::http::geturl https://tools.whois.com.au/dig/$text]  set files2 [::http::data $connect2]  ::http::cleanup $files2    set l2 [regexp  -all -inline -- {&lt;td headers="th-ip-1"&gt;(.*?)&lt;/td&gt;} $files2]     foreach {blue z } $l2 {         set a [string trim $z " \n"]         regsub -all {&lt;.+?&gt;} $z {} z        if {[info exists z]} {  set connect3 [::http::geturl http://whatismyipaddress.com/ip/$z]  set files3 [::http::data $connect3]  ::http::cleanup $files3    regexp -- {ISP:&lt;/th&gt;&lt;td&gt;(.*?)&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;th&gt;Organization} $files3 - isp    regexp -- {Country:&lt;/th&gt;&lt;td&gt;(.*?) &lt;img src=} $files3 - country    regexp -- {Hostname:&lt;/th&gt;&lt;td&gt;(.*?)&lt;/td&gt;&lt;/tr&gt;} $files3 - hostname    regexp -- {State/Region:&lt;/th&gt;&lt;td&gt;(.*?)&lt;/td&gt;&lt;/tr&gt;} $files3 - state    regexp -- {City:&lt;/th&gt;&lt;td&gt;(.*?)&lt;/td&gt;&lt;/tr&gt;} $files3 - cityif {[info exists country]} { puthelp "privmsg $chan :\[\002$text\002\] IP: $z - ISP: $isp - Hostname: $hostname - Country: $country" }if {[info exists state]} { puthelp "privmsg $chan :\[\002$text\002\] State: $state - City: $city"}                }          }# tutup info exists f                        }# tutup foreach#                }# tutup string match "*.org"} else {  set connect [::http::geturl https://tools.whois.com.au/whois/$text]   set files [::http::data $connect]  ::http::cleanup $files    set l [regexp  -all -inline -- {Domain Name:(.*?)Registrar:(.*?)Whois Server:.*?Updated Date:(.*?)Creation Date:(.*?)Expiration Date:(.*?)&amp;gt;&amp;gt;&amp;gt;} $files]      foreach {red a b c d e } $l {         set a [string trim $a " \n"]         set b [string trim $b " \n"]         set c [string trim $c " \n"]         set d [string trim $d " \n"]         set e [string trim $e " \n"]         regsub -all {&lt;.+?&gt;} $a {} a         regsub -all {&lt;.+?&gt;} $b {} b         regsub -all {&lt;.+?&gt;} $c {} c         regsub -all {&lt;.+?&gt;} $d {} d         regsub -all {&lt;.+?&gt;} $e {} eif {[info exists b]} { putserv "PRIVMSG $chan : \[\002$text\002\] Registrar: $b - Updated Date: $c - Creation Date: $d - Expiration Date: $e" }   set connect2 [::http::geturl https://tools.whois.com.au/dig/$text]  set files2 [::http::data $connect2]  ::http::cleanup $files2    set l2 [regexp  -all -inline -- {&lt;td headers="th-ip-1"&gt;(.*?)&lt;/td&gt;} $files2]     foreach {blue z } $l2 {         set a [string trim $z " \n"]         regsub -all {&lt;.+?&gt;} $z {} z        if {[info exists z]} {  set connect3 [::http::geturl http://whatismyipaddress.com/ip/$z]  set files3 [::http::data $connect3]  ::http::cleanup $files3    regexp -- {ISP:&lt;/th&gt;&lt;td&gt;(.*?)&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;th&gt;Organization} $files3 - isp    regexp -- {Country:&lt;/th&gt;&lt;td&gt;(.*?) &lt;img src=} $files3 - country    regexp -- {Hostname:&lt;/th&gt;&lt;td&gt;(.*?)&lt;/td&gt;&lt;/tr&gt;} $files3 - hostname    regexp -- {State/Region:&lt;/th&gt;&lt;td&gt;(.*?)&lt;/td&gt;&lt;/tr&gt;} $files3 - state    regexp -- {City:&lt;/th&gt;&lt;td&gt;(.*?)&lt;/td&gt;&lt;/tr&gt;} $files3 - cityif {[info exists country]} { puthelp "privmsg $chan : \[\002$text\002\] IP: $z - ISP: $isp - Hostname: $hostname - Country: $country" }if {[info exists state]} { puthelp "privmsg $chan : \[\002$text\002\] State: $state - City: $city" } }    }  } }}#bind pub - !ip msg_ipwhois#proc msg_ipwhois {nick uhost hand chan text} {#  global botnick#  if {$text == "" } {putquick "PRIVMSG $chan :You have to use true command for look up whois information. Command: !ip ipnumber";return}#        if {[string match "*" $text]} {#  set connect [::http::geturl http://whatismyipaddress.com/ip/$text]#  set files [::http::data $connect]#  ::http::cleanup $files#    regexp -- {ISP:&lt;/th&gt;&lt;td&gt;(.*?)&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;th&gt;Organization} $files - isp#    regexp -- {Country:&lt;/th&gt;&lt;td&gt;(.*?) &lt;img src=} $files - country#    regexp -- {Hostname:&lt;/th&gt;&lt;td&gt;(.*?)&lt;/td&gt;&lt;/tr&gt;} $files - hostname#    regexp -- {State/Region:&lt;/th&gt;&lt;td&gt;(.*?)&lt;/td&gt;&lt;/tr&gt;} $files - state#    regexp -- {City:&lt;/th&gt;&lt;td&gt;(.*?)&lt;/td&gt;&lt;/tr&gt;} $files - city#if {[info exists country]} {#        puthelp "privmsg $chan :IP: $text - ISP: $isp - Hostname: $hostname - Country: $country"#if {[info exists state]} {#        puthelp "privmsg $chan :State: $state - City: $city"#} #} else {  puthelp "privmsg $chan :Invalid address or IP not found" }#}#}set whoisinfo(port) 43set whoisinfo(ripe) "whois.ripe.net"set whoisinfo(arin) "whois.arin.net"set whoisinfo(apnic) "whois.apnic.net"set whoisinfo(lacnic) "whois.lacnic.net"set whoisinfo(afrinic) "whois.afrinic.net"bind pub - !ip pub_whoisinfobind pub - .ip pub_whoisinfoproc whoisinfo_setarray {} {global queryset query(netname) "(none)"set query(country) "(none)"set query(orgname) "(none)"set query(orgid) "(none)"set query(range) "(none)"}proc whoisinfo_display { chan } {global queryputlog "Firstline: $query(firstline)"putquick "PRIVMSG $chan :Range : $query(range) - NetName : $query(netname) - Organization : $query(orgname) - Country : $query(country)"}proc pub_whoisinfo {nick uhost handle chan search} {global whoisinfoglobal querywhoisinfo_setarray if {[whoisinfo_whois $whoisinfo(arin) $search]==1} {if {[string compare [string toupper $query(orgid)] "RIPE"]==0} {if {[whoisinfo_whois $whoisinfo(ripe) $search]==1} {whoisinfo_display $chan} } elseif {[string compare [string toupper $query(orgid)] "APNIC"]==0} {if {[whoisinfo_whois $whoisinfo(apnic) $search]==1} {whoisinfo_display $chan} } elseif {[string compare [string toupper $query(orgid)] "LACNIC"]==0} {if {[whoisinfo_whois $whoisinfo(lacnic) $search]==1} {whoisinfo_display $chan} } elseif {[string compare [string toupper $query(orgid)] "AFRINIC"]==0} {if {[whoisinfo_whois $whoisinfo(afrinic) $search]==1} {whoisinfo_display $chan} } else {whoisinfo_display $chan}} else {if { [info exist query(firstline)] } {puthelp "PRIVMSG $chan :$query(firstline)"} else {puthelp "PRIVMSG $chan :Error!"}}}proc whoisinfo_whois {server search} {global whoisinfoglobal queryset desccount 0set firstline 0set reply 0putlog "Whois: $server:$whoisinfo(port) -&gt; $search"if {[catch {set sock [socket -async $server $whoisinfo(port)]} sockerr]} {      puthelp "PRIVMSG $chan :Error: $sockerr. Try again later."      close $sockreturn 0    }puts $sock $searchflush $sockwhile {[gets $sock whoisline]&gt;=0} {putlog "Whois: $whoisline"if {[string index $whoisline 0]!="#" &amp;&amp; [string index $whoisline 0]!="%" &amp;&amp; $firstline==0} {if {[string trim $whoisline]!=""} {set query(firstline) [string trim $whoisline]set firstline 1}}if {[regexp -nocase {netname:(.*)} $whoisline all item]} {set query(netname) [string trim $item]set reply 1} elseif {[regexp -nocase {owner-c:(.*)} $whoisline all item]} {set query(netname) [string trim $item]set reply 1 } elseif {[regexp -nocase {country:(.*)} $whoisline all item]} {set query(country) [string trim $item]set reply 1} elseif {[regexp -nocase {descr:(.*)} $whoisline all item] &amp;&amp; $desccount==0} {set query(orgname) [string trim $item]set desccount 1set reply 1} elseif {[regexp -nocase {orgname:(.*)} $whoisline all item]} {set query(orgname) [string trim $item]set reply 1} elseif {[regexp -nocase {owner:(.*)} $whoisline all item]} {set query(orgname) [string trim $item]set reply 1} elseif {[regexp -nocase {orgid:(.*)} $whoisline all item]} {set query(orgid) [string trim $item]set reply 1} elseif {[regexp -nocase {inetnum:(.*)} $whoisline all item]} {set query(range) [string trim $item]set reply 1} elseif {[regexp -nocase {netrange:(.*)} $whoisline all item]} {set query(range) [string trim $item]set reply 1}}close $sockreturn $reply}bind pub - !check msg_domainproc msg_domain {nick uhost hand chan text} {  global botnick  if {$text == "" } {putquick "PRIVMSG $chan :You have to use true command for look up whois information. Command: !check domain";return}        if {[string match "*" $text]} {  set connect [::http::geturl http://www.isup.me/$text]  set isup [::http::data $connect]  ::http::cleanup $isup    regexp -- {class="domain"&gt;.*?&lt;/a&gt;&lt;/span&gt; (.*?)&lt;p&gt;&lt;a href.*?&lt;/a&gt;&lt;/p&gt;} $isup - hasilif {[info exists hasil]} { puthelp "privmsg $chan :$nick, web server na $text $hasil" } else {  puthelp "privmsg $chan :Kayaknya down br0 ?" }        }}bind pub - !help msg_helpproc msg_help {nick uhost hand chan text} {  global botnick  if {$text == "" } {putquick "PRIVMSG $nick :!help twitter";return}puthelp "privmsg $nick : Silahkan baca full commandnya di http://www.kaskus.xxx/twit.txt"}putlog "whois.tcl v1.1 by dono Loaded..."</code></pre></div> <strong>script</strong> execute<blockquote class="uncited"><div>&lt;@sen&gt; domain a-a.my.id</div></blockquote>error<blockquote class="uncited"><div>Tcl error [msg_whois]: couldn't open socket: Name or service not known</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=13249">abi</a> — Tue Jun 17, 2025 5:38 am</p><hr />
]]></content>
	</entry>
	</feed>
