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

	<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>2021-06-07T16:05:10-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Gulio]]></name></author>
		<updated>2021-06-07T16:05:10-04:00</updated>

		<published>2021-06-07T16:05:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109965#p109965</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109965#p109965"/>
		<title type="html"><![CDATA[Hello]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109965#p109965"><![CDATA[
I Did this but is send report from msg report of client irc not from webirc who the user join with , if someone can help thx in advance<br><div class="codebox"><p>Code: </p><pre><code>[22:20:42] * Joins: mib_ciulq5 (2e67b313@Test-AED0FB6F.mibbit.com)</code></pre></div>Report from wrong source msg report<br><div class="codebox"><p>Code: </p><pre><code>[22:20:45] &lt;~Bot&gt; JOINS:CLIENTIRC ☛ mib_ciulq5 - IP: 46.103.179.19 - SHTETI: Greece - KODI: GR - QYTETI: Thessaloniki - ISP: Cyta Hellas - ASN: AS3329 VODAFONE-PANAFON HELLENIC TELECOMMUNICATIONS COMPANY SA - HOST: 46-179-19.adsl.cyta.gr - WIRELESS: false - PROXY: false</code></pre></div><div class="codebox"><p>Code: </p><pre><code>proc json2dict {JSONtext} {string range [string trim [string trimleft [string map {\t {} \n {} \r {} , { } : { } \[ \{ \] \}} $JSONtext] {\uFEFF}]] 1 end-1}proc scanip:proxy_check {ip nick} {::http::config -useragent "lynx"set ipq [http::geturl http://ip-api.com/json/$ip?fields=status,message,country,countryCode,city,isp,as,reverse,mobile,proxy,query]set data [json2dict [http::data $ipq]]if {[regexp -- {.*?(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}).*?\((.*?)\)} - ip]} {if {[check_ip $ip]} { return }::http::cleanup $ipqif {[dict get $data status] eq "success" } {return}}set Getquery [dict get $data query]set Getcountry [dict get $data country]set GetcountryCode [dict get $data countryCode]set Getcity [dict get $data city]set Getisp [dict get $data isp]set Getas [dict get $data as]set Getreverse [dict get $data reverse]set Getmobile [dict get $data mobile]set Getproxy [dict get $data proxy]set host [dict get $data query]set whois [dict get $data query]switch -glob -- $host {{*.mibbit.com} - {*.kiwiirc.com} {if {[lsearch -nocase $::ccodes $GetcountryCode]!=-1} {putserv "PRIVMSG ${::RepChan(report_chan)} :\002\00304SN-Line \002\00303BadCountry \002\00304[format %c 9755]\002 \002\00314[regsub -all {([^:]+:)} $nick ""] \00305-\00314 IP\00306:\00304 $Getquery \0035-\00314 GECOS\00306:\00304 $whois \0035- \00314SHTETI\00306:\00304 $Getcountry \00305- \00314KODI\0036:\00304 $GetcountryCode \00305- \00314QYTETI\0036:\00304 $Getcity \00305- \00314ISP\0036:\00304 $Getisp \00305- \00314ASN\00306:\00304 $Getas \00305- \00314HOST\0036:\00304 $Getreverse \00305- \00314WIRELESS\0036:\00304 $Getmobile \00305- \00314PROXY\0036:\00304 $Getproxy"if { [getuser $::owner XTRA zline] eq "on" } { putnow "OS SNLINE $whois +1h \002\00314Ndalohen Shtete si \00304$Getcountry \00314- \00304$GetcountryCode\002" }} elseif {[check_asn $Getas]} {putserv "PRIVMSG ${::RepChan(report_chan)} :\002\00304SN-Line \002\00303VPN \002\00304[format %c 9755]\002 \002\00314[regsub -all {([^:]+:)} $nick ""] \00305-\00314 IP\00306:\00304 $Getquery \0035-\00314 GECOS\00306:\00304 $whois \0035- \00314SHTETI\00306:\00304 $Getcountry \00305- \00314KODI\0036:\00304 $GetcountryCode \00305- \00314QYTETI\0036:\00304 $Getcity \00305- \00314ISP\0036:\00304 $Getisp \00305- \00314ASN\00306:\00304 $Getas \00305- \00314HOST\0036:\00304 $Getreverse \00305- \00314WIRELESS\0036:\00304 $Getmobile \00305- \00314PROXY\0036:\00304 $Getproxy"if { [getuser $::owner XTRA zline] eq "on" } { putnow "OS SNLINE $whois +1h \002\00340VPN \00314nga \00304$Getcountry \00314- \00304$GetcountryCode\002 " }} elseif {$Getproxy == "true"} {putserv "PRIVMSG ${::RepChan(report_chan)} :\002\00304SN-Line \002\00303Proxy \002\00304[format %c 9755]\002 \002\00314 [regsub -all {([^:]+:)} $nick ""] \00305-\00314 IP\00306:\00304 $Getquery \0035-\00314 GECOS\00306:\00304 $whois \0035- \00314SHTETI\00306:\00304 $Getcountry \00305- \00314KODI\0036:\00304 $GetcountryCode \00305- \00314QYTETI\0036:\00304 $Getcity \00305- \00314ISP\0036:\00304 $Getisp \00305- \00314ASN\00306:\00304 $Getas \00305- \00314HOST\0036:\00304 $Getreverse \00305- \00314WIRELESS\0036:\00304 $Getmobile \00305- \00314PROXY\0036:\00304 $Getproxy"if { [getuser $::owner XTRA zline] eq "on" } { putnow "OS SNLINE $whois +1h \002\00304Proxy \00314nga \00304$Getcountry \00314- \00304$GetcountryCode\002" }} else {putserv "PRIVMSG ${::RepChan(report_chan)} :\002\00303JOINS\00305:\002\00314WEBIRC\00305:\002\00304 [format %c 9755]\002 \002\00314[regsub -all {([^:]+:)} $nick ""] \00305-\00314 IP\00306:\00304 $Getquery \0035-\00314 GECOS\00306:\00304 $whois \0035- \00314SHTETI\00306:\00304 $Getcountry \00305- \00314KODI\0036:\00304 $GetcountryCode \00305- \00314QYTETI\0036:\00304 $Getcity \00305- \00314ISP\0036:\00304 $Getisp \00305- \00314ASN\00306:\00304 $Getas \00305- \00314HOST\0036:\00304 $Getreverse \00305- \00314WIRELESS\0036:\00304 $Getmobile \00305- \00314PROXY\0036:\00304 $Getproxy"}}{default} {if {[lsearch -nocase $::ccodes $GetcountryCode]!=-1} {putserv "PRIVMSG ${::RepChan(report_chan)} :\002\00304Z-Line \002\00303BadCountry \002\00304[format %c 9755]\002 \002\00314[regsub -all {([^:]+:)} $nick ""] \00305-\00314 IP\00306:\00304 $Getquery \0035- \00314SHTETI\00306:\00304 $Getcountry \00305- \00314KODI\0036:\00304 $GetcountryCode \00305- \00314QYTETI\0036:\00304 $Getcity \00305- \00314ISP\0036:\00304 $Getisp \00305- \00314ASN\00306:\00304 $Getas \00305- \00314HOST\0036:\00304 $Getreverse \00305- \00314WIRELESS\0036:\00304 $Getmobile \00305- \00314PROXY\0036:\00304 $Getproxy"if { [getuser $::owner XTRA zline] eq "on" } { putnow "ZLINE *@$ip +1h \002\00314Ndalohen Shtete si \00304$Getcountry \00314- \00304$GetcountryCode\002" }} elseif {[check_asn $Getas]} {putserv "PRIVMSG ${::RepChan(report_chan)} :\002\00304Z-Line \002\00303VPN \002\00304[format %c 9755]\002 \002\00314[regsub -all {([^:]+:)} $nick ""] \00305-\00314 IP\00306:\00304 $Getquery \0035- \00314SHTETI\00306:\00304 $Getcountry \00305- \00314KODI\0036:\00304 $GetcountryCode \00305- \00314QYTETI\0036:\00304 $Getcity \00305- \00314ISP\0036:\00304 $Getisp \00305- \00314ASN\00306:\00304 $Getas \00305- \00314HOST\0036:\00304 $Getreverse \00305- \00314WIRELESS\0036:\00304 $Getmobile \00305- \00314PROXY\0036:\00304 $Getproxy"if { [getuser $::owner XTRA zline] eq "on" } { putnow "ZLINE *@$ip +1h \002\00340VPN \00314nga \00304$Getcountry \00314- \00304$GetcountryCode\002 " }} elseif {$Getproxy == "true"} {putserv "PRIVMSG ${::RepChan(report_chan)} :\002\00304Z-Line \002\00303Proxy \002\00304[format %c 9755]\002 \002\00314 [regsub -all {([^:]+:)} $nick ""] \00305-\00314 IP\00306:\00304 $Getquery \0035- \00314SHTETI\00306:\00304 $Getcountry \00305- \00314KODI\0036:\00304 $GetcountryCode \00305- \00314QYTETI\0036:\00304 $Getcity \00305- \00314ISP\0036:\00304 $Getisp \00305- \00314ASN\00306:\00304 $Getas \00305- \00314HOST\0036:\00304 $Getreverse \00305- \00314WIRELESS\0036:\00304 $Getmobile \00305- \00314PROXY\0036:\00304 $Getproxy"if { [getuser $::owner XTRA zline] eq "on" } { putnow "ZLINE *@$ip +1h \002\00304Proxy \00314nga \00304$Getcountry \00314- \00304$GetcountryCode\002" }} else {putserv "PRIVMSG ${::RepChan(report_chan)} :\002\00303JOINS\00305:\00303CLIENTIRC \002\00304[format %c 9755]\002 \002\00314[regsub -all {([^:]+:)} $nick ""] \00305-\00314 IP\00306:\00304 $Getquery \0035- \00314SHTETI\00306:\00304 $Getcountry \00305- \00314KODI\0036:\00304 $GetcountryCode \00305- \00314QYTETI\0036:\00304 $Getcity \00305- \00314ISP\0036:\00304 $Getisp \00305- \00314ASN\00306:\00304 $Getas \00305- \00314HOST\0036:\00304 $Getreverse \00305- \00314WIRELESS\0036:\00304 $Getmobile \00305- \00314PROXY\0036:\00304 $Getproxy"}}}}proc scanip:join_proxy_check {nick host hand chan} {if {[isbotnick $nick]} {return}switch -glob -- $host {{*.mibbit.com} - {*.kiwiirc.com} {putserv "WHOIS $nick"bind raw - 311 scanip:raw_whois}{default} {putserv "USERIP $nick"bind raw - 340 scanip:raw_userip}}}proc scanip:raw_whois {from keyword arg} {set whois [lindex [split $arg :] 1]set nick [lindex [split $arg] 1]scanip:proxy_check $whois $nick}proc scanip:raw_userip {from keyword arg} {set userip [string trim [lindex [split $arg @] 1]]set nick [lindex [split $arg "="] 0]scanip:proxy_check $userip $nick}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12887">Gulio</a> — Mon Jun 07, 2021 4:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Gulio]]></name></author>
		<updated>2021-06-07T13:40:34-04:00</updated>

		<published>2021-06-07T13:40:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109964#p109964</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109964#p109964"/>
		<title type="html"><![CDATA[Hello]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109964#p109964"><![CDATA[
how need to be to check the Ip in GECOS (RealName) when a user join with hostmask *.mibbit.com *.kiwi.com<br><br>and give same report channel and action /os snline $gecos +2h:Reason<br><br><div class="codebox"><p>Code: </p><pre><code>19:01:38] * Joins: figaro (2e67b313@Test-AED0FB6F.mibbit.com)</code></pre></div>With Whois raw 311<br><div class="codebox"><p>Code: </p><pre><code>mib_xrrqa6 is 2e67b313@Test-B3B25F2D.mibbit.com * 46-179-19.adsl.cyta.grirc.Test.com 311 Bot figaro 2e67b313 Test-B3B25F2D.mibbit.com * :46-179-19.adsl.cyta.gr</code></pre></div>to show report and action os snline like this<br><br><br><div class="codebox"><p>Code: </p><pre><code>putserv "PRIVMSG ${::RepChan(report_chan)} :JOINS:WEBIRC: [format %c 9755] [regsub -all {([^:]+:)} $nick ""] - IP: $Getquery - GECOS: $gecos \0035- \00314SHTETI\00306:\00304 $Getcountry \00305- \00314KODI\0036:\00304 $GetcountryCode \00305- \00314QYTETI\0036: $Getcity - ISP: $Getisp - ASN: $Getas - REVERSE: $Getreverse - WIRELESS: $Getmobile - PROXY: $Getproxy"if { [getuser $::owner XTRA zline] eq "on" } { putnow "OS SNLINE $gecos +1h \002\00314Ndalohen Shtete si $Getcountry - $GetcountryCode" }</code></pre></div>the ip-api.com make dns when is domain reverse ip<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12887">Gulio</a> — Mon Jun 07, 2021 1:40 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Gulio]]></name></author>
		<updated>2021-06-06T21:27:08-04:00</updated>

		<published>2021-06-06T21:27:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109963#p109963</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109963#p109963"/>
		<title type="html"><![CDATA[Hello]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109963#p109963"><![CDATA[
i fixed now is work the script need a regex for ip to get ip to check and give report in chan<br><div class="codebox"><p>Code: </p><pre><code>if {[regexp -- {.*?(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}).*?\((.*?)\)} - ip]} {</code></pre></div>here<br><div class="codebox"><p>Code: </p><pre><code>proc scanip:proxy_check {ip nick} {   ::http::config -useragent "lynx"   set ipq [http::geturl http://ip-api.com/json/$ip?fields=status,message,country,countryCode,city,isp,as,reverse,mobile,proxy,query]   set data [json2dict [http::data $ipq]]   if {[regexp -- {.*?(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}).*?\((.*?)\)} - ip]} {   if {[check_ip $ip]} { return }   ::http::cleanup $ipq</code></pre></div><div class="codebox"><p>Code: </p><pre><code>[04:22:13] * Joins: nasa (nasa@test-CE2C124C.adsl.cyta.gr)</code></pre></div>Bot report user on join in chan report #test<br><div class="codebox"><p>Code: </p><pre><code>[04:22:13] &lt;~Bot&gt; Connect &gt;&gt; nasa- IP: 46.103.179.19 - SHTETI: Greece - KODI: GR - QYTETI: Thessaloniki - ISP: Cyta Hellas - ASN: AS3329 VODAFONE-PANAFON HELLENIC TELECOMMUNICATIONS COMPANY SA - HOST: 46-179-19.adsl.cyta.gr - WIRELESS: false - PROXY: false</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12887">Gulio</a> — Sun Jun 06, 2021 9:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Gulio]]></name></author>
		<updated>2021-06-06T12:46:13-04:00</updated>

		<published>2021-06-06T12:46:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109961#p109961</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109961#p109961"/>
		<title type="html"><![CDATA[hi]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109961#p109961"><![CDATA[
After join user i did in PL .set errorInfo<br><div class="codebox"><p>Code: </p><pre><code>[19:43:46] &lt;me&gt; .set errorInfo[19:43:46] &lt;Bot&gt; [18:43:47] #me# set errorInfo[19:43:46] &lt;Bot&gt; Currently: can not find channel named "sock56206313f860"[19:43:46] &lt;Bot&gt; Currently:     while executing[19:43:46] &lt;Bot&gt; Currently: "eof $sock"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12887">Gulio</a> — Sun Jun 06, 2021 12:46 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Gulio]]></name></author>
		<updated>2021-06-06T11:17:29-04:00</updated>

		<published>2021-06-06T11:17:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109960#p109960</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109960#p109960"/>
		<title type="html"><![CDATA[Hello]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109960#p109960"><![CDATA[
Now i fixed all errors but still is not give report in chan #test when user join channels<br><div class="codebox"><p>Code: </p><pre><code>set exempt(file)                "./exempt.txt";set exempt(asnfile)             "./asnexempt.txt";set RepChan                     "#Test"set ccodes { AF AX DZ AS AD AO AI AQ AG AR AM AW AZ BS BH BD BB BY BZ BJ BM BT BO BA BW BV BR VG IO BN BF BI KH CM CV KY CF TD CL CN MO CX CC CO KM CG CD CK CR CI CU CY DJ DM DO EC EG SV GQ ER EE ET FK FO FJ GF PF TF GA GM GE GH GI GL GD GP GU GT GG GN GW GY HT HM VA HN HU IS IN ID IR IQ IE IM IL JM JP JE JO KZ KE KI KP KR KW KG LA LV LB LS LR LY LI LT MG MW MY MV ML MH MQ MR MU YT MX FM MD MC MN MS MA MZ MM NA NR NP AN NC NZ NI NE NG NU NF MP OM PK PW PS PA PG PY PE PH PN PL PT PR QA RE RO RU RW BL SH KN LC MF PM VC WS SM ST SA SN SC SL SG SB SO ZA GS SS LK SD SR SJ SZ SY TW TJ TZ TH TL TG TK TO TT TN TM TC TV UG UA AE UM UY UZ VU VE VN VI WF EH YE ZM ZW }package require httpbind pub -|- .pro zline:switchbind join - * scanip:join_proxy_checkbind pub -|- .ipadd "exempt:cmd add"bind pub -|- .ipdel "exempt:cmd del"bind pub -|- .iplist "exempt:cmd list"bind pub -|- .asnadd "exempt:cmd addasn"bind pub -|- .asndel "exempt:cmd delasn"bind pub -|- .asnlist "exempt:cmd listasn"bind pub -|- .iphelp "exempt:cmd help"proc zline:switch {nick uhost hand chan text} {if {![onchan $nick ${::RepChan}]} { return }if {$text eq "on"} {setuser $::owner XTRA zline onputserv "PRIVMSG ${::RepChan} \0036$nick \0035: \00310Mbrotja Eshte \0033ON."} elseif {$text eq "off"} {setuser $::owner XTRA zline offputserv "PRIVMSG ${::RepChan} \0036$nick \0035: \00310Mbrotja Eshte \0034OFF."} else {putserv "PRIVMSG ${::RepChan} \0036$nick \0035: \0035Komande E gabuar, \0036Komanda E Sakte Eshte: \0033on\0035/\0034off."}}proc json2dict {JSONtext} {string range [string trim [string trimleft [string map {\t {} \n {} \r {} , { } : { } \[ \{ \] \}} $JSONtext] {\uFEFF}]] 1 end-1}proc scanip:proxy_check {ip nick} {::http::config -useragent "lynx"set ipq [http::geturl http://ip-api.com/json/$ip?fields=status,message,country,countryCode,city,isp,as,reverse,mobile,proxy,query]set data [json2dict [http::data $ipq]]if {[check_ip $ip]} { return }::http::cleanup $ipqif {[dict get $data status] eq "success" } {return $data}set Getquery [dict get $data query]set Getcountry [dict get $data country]set GetcountryCode [dict get $data countryCode]set Getcity [dict get $data city]set Getisp [dict get $data isp]set Getas [dict get $data as]set Getreverse [dict get $data reverse]set Getmobile [dict get $data mobile]set Getproxy [dict get $data proxy]if {[lsearch -nocase $::ccodes $GetcountryCode]!=-1} {putserv "PRIVMSG $::RepChan:\002\0034Z-Line \0033BadCountry \0034&gt;&gt;\002\00314 [regsub -all {([^:]+:)} $nick ""]\00305- \003014IP\00306:\00304 $Getquery \0035- \00314SHTETI\00306:\00304 $Getcountry \00305- \00314KODI\0036:\00304 $GetcountryCode \00305- \00314QYTETI\0036:\00304 $Getcity \00305- \00314ISP\0036:\00304 $Getisp \00305- \00314ASN\00306:\00304 $Getas \00305- \00314HOST\0036:\00304 $Getreverse \00305- \00314WIRELESS\0036:\00304 $Getmobile \00305- \00314PROXY\0036:\00304 $Getproxy"if { [getuser $::owner XTRA zline] eq "on" } { putnow "ZLINE *@$ip +1h \002\00340Proxy\00347/\00340VPN \00347from \00314$Getcountry \0036- \0034$GetcountryCode\002" }} elseif {[check_asn $Getas]} {putserv "PRIVMSG $::RepChan:\002\0034Z-Line \0033VPN \0034&gt;&gt;\002\00314 [regsub -all {([^:]+:)} $nick ""]\00305- \003014IP\00306:\00304 $Getquery \0035- \00314SHTETI\00306:\00304 $Getcountry \00305- \00314KODI\0036:\00304 $GetcountryCode \00305- \00314QYTETI\0036:\00304 $Getcity \00305- \00314ISP\0036:\00304 $Getisp \00305- \00314ASN\00306:\00304 $Getas \00305- \00314HOST\0036:\00304 $Getreverse \00305- \00314WIRELESS\0036:\00304 $Getmobile \00305- \00314PROXY\0036:\00304 $Getproxy"if { [getuser $::owner XTRA zline] eq "on" } { putnow "ZLINE *@$ip +1h \002\00340Proxy\00347/\00340VPN \00347from \00314$Getcountry \0036- \0034$GetcountryCode\002 " }} elseif {$Getproxy == "true"} {putserv "PRIVMSG $::RepChan:\002\0034Z-Line \0033Proxy \0034&gt;&gt;\002\00314 [regsub -all {([^:]+:)} $nick ""]\00305- \003014IP\00306:\00304 $Getquery \0035- \00314SHTETI\00306:\00304 $Getcountry \00305- \00314KODI\0036:\00304 $GetcountryCode \00305- \00314QYTETI\0036:\00304 $Getcity \00305- \00314ISP\0036:\00304 $Getisp \00305- \00314ASN\00306:\00304 $Getas \00305- \00314HOST\0036:\00304 $Getreverse \00305- \00314WIRELESS\0036:\00304 $Getmobile \00305- \00314PROXY\0036:\00304 $Getproxy"if { [getuser $::owner XTRA zline] eq "on" } { putnow "ZLINE *@$ip +1h \002\00340Proxy\00347/\00340VPN \00347from \00314$Getcountry \0036- \0034$GetcountryCode\002" }} else {putserv "PRIVMSG $::RepChan:\002\00303Connect\00304&gt;&gt;\002\00314 [regsub -all {([^:]+:)} $nick ""]\00305- \003014IP\00306:\00304 $Getquery \0035- \00314SHTETI\00306:\00304 $Getcountry \00305- \00314KODI\0036:\00304 $GetcountryCode \00305- \00314QYTETI\0036:\00304 $Getcity \00305- \00314ISP\0036:\00304 $Getisp \00305- \00314ASN\00306:\00304 $Getas \00305- \00314HOST\0036:\00304 $Getreverse \00305- \00314WIRELESS\0036:\00304 $Getmobile \00305- \00314PROXY\0036:\00304 $Getproxy"}}proc scanip:raw_userip {from key arg} {set userip [concat [lindex [split $arg @] end]]set nick [lindex [split $arg "="] 0]scanip:proxy_check $userip $nick}proc scanip:join_proxy_check {nick host hand chan} {putserv "USERIP $nick"bind raw - 340 scanip:raw_userip}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12887">Gulio</a> — Sun Jun 06, 2021 11:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Gulio]]></name></author>
		<updated>2021-06-06T09:56:32-04:00</updated>

		<published>2021-06-06T09:56:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109959#p109959</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109959#p109959"/>
		<title type="html"><![CDATA[Hello]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109959#p109959"><![CDATA[
Everything i do is the same result,no report in chan #test when user is join on other channels.<br><br>But i get 1 error on paste.tcl<br><br><div class="codebox"><p>Code: </p><pre><code>Line 88: ERROR: Wrong number of arguments (2) to "scanip:join_proxy_check"</code></pre></div>here<br><div class="codebox"><p>Code: </p><pre><code>scanip:join_proxy_check $userip $nick</code></pre></div>from this code:<br><div class="codebox"><p>Code: </p><pre><code>proc scanip:raw_userip {from keyword arg} {set userip [concat [lindex [split $arg @] end]]set nick [lindex [split $arg "="] 0]scanip:join_proxy_check $userip $nick  } proc scanip:join_proxy_check {nick host hand chan} {putserv "USERIP $nick"bind raw - 340 scanip:raw_userip}</code></pre></div>when i restart bot is give this in PL<br><div class="codebox"><p>Code: </p><pre><code>Tcl error [scanip:raw_userip]: wrong # args: should be "scanip:join_proxy_check nick host hand chan"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12887">Gulio</a> — Sun Jun 06, 2021 9:56 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2021-06-06T09:11:15-04:00</updated>

		<published>2021-06-06T09:11:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109958#p109958</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109958#p109958"/>
		<title type="html"><![CDATA[whois info]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109958#p109958"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>if {[dict get $data status] eq "success" } {      return $data   }</code></pre></div>this line doesn't make much sense to me. might want to look at it.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sun Jun 06, 2021 9:11 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Gulio]]></name></author>
		<updated>2021-06-06T10:09:41-04:00</updated>

		<published>2021-06-06T06:01:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109957#p109957</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109957#p109957"/>
		<title type="html"><![CDATA[hi]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109957#p109957"><![CDATA[
I make a new one more simple but now is not sent no report in channel report, all add del list ip asn works and on/off but report is not send to channel #test<br><br><br><div class="codebox"><p>Code: </p><pre><code>set RepChan      "#Test"set ccodes { AF AX DZ AS AD AO AI AQ AG AR AM AW AZ BS BH BD BB BY BZ BJ BM BT BO BA BW BV BR VG IO BN BF BI KH CM CV KY CF TD CL CN MO CX CC CO KM CG CD CK CR CI CU CY DJ DM DO EC EG SV GQ ER EE ET FK FO FJ GF PF TF GA GM GE GH GI GL GD GP GU GT GG GN GW GY HT HM VA HN HU IS IN ID IR IQ IE IM IL JM JP JE JO KZ KE KI KP KR KW KG LA LV LB LS LR LY LI LT MG MW MY MV ML MH MQ MR MU YT MX FM MD MC MN MS MA MZ MM NA NR NP AN NC NZ NI NE NG NU NF MP OM PK PW PS PA PG PY PE PH PN PL PT PR QA RE RO RU RW BL SH KN LC MF PM VC WS SM ST SA SN SC SL SG SB SO ZA GS SS LK SD SR SJ SZ SY TW TJ TZ TH TL TG TK TO TT TN TM TC TV UG UA AE UM UY UZ VU VE VN VI WF EH YE ZM ZW }package require httpbind pub -|- .pro zline:switchbind join - * scanip:join_proxy_checkproc zline:switch {nick uhost hand chan text} {        if {![onchan $nick ${::RepChan}]} { return }        if {$text eq "on"} {                setuser $::owner XTRA zline on                putserv "PRIVMSG ${::RepChan} \0036$nick \0035: \00310Mbrotja Eshte \0033ON."        } elseif {$text eq "off"} {                setuser $::owner XTRA zline off                putserv "PRIVMSG ${::RepChan} \0036$nick \0035: \00310Mbrotja Eshte \0034OFF."        } else {                putserv "PRIVMSG ${::RepChan} \0036$nick \0035: \0035Komande E gabuar, \0036Komanda E Sakte Eshte: \0033on\0035/\0034off."        }}proc json2dict {JSONtext} {string range [string trim [string trimleft [string map {\t {} \n {} \r {} , { } : { } \[ \{ \] \}} $JSONtext] {\uFEFF}]] 1 end-1}proc scanip:proxy_check {ip nick} {::http::config -useragent "lynx"set ipq [http::geturl http://ip-api.com/json/$ip?fields=status,message,country,countryCode,city,isp,as,reverse,mobile,proxy,query]set data [json2dict [http::data $ipq]]if {[check_ip $ip]} { return }::http::cleanup $ipqif {[dict get $data status] eq "success" } {return $data}set Getquery [dict get $data query]set Getcountry [dict get $data country]set GetcountryCode [dict get $data countryCode]set Getcity [dict get $data city]set Getisp [dict get $data isp]set Getas [dict get $data as]set Getreverse [dict get $data reverse]set Getmobile [dict get $data mobile]set Getproxy [dict get $data proxy]if {[lsearch -nocase $::ccodes $GetcountryCode]!=-1} {puthelp "PRIVMSG $::RepChan:\002\0034Z-Line \0033BadCountry \0034&gt;&gt;\002\ \00314[regsub -all {([^:]+:)} $nick ""]\00305- \003014IP\00306:\00304 $Getquery \0035- \00314SHTETI\00306:\00304 $Getcountry \00305- \00314KODI\0036:\00304 $GetcountryCode \00305- \00314QYTETI\0036:\00304 $Getcity \00305- \00314ISP\0036:\00304 $Getisp \00305- \00314ASN\00306:\00304 $Getas \00305- \00314HOST\0036:\00304 $Getreverse \00305- \00314WIRELESS\0036:\00304 $Getmobile \00305- \00314PROXY\0036:\00304 $Getproxy"if { [getuser $::owner XTRA zline] eq "on" } { putnow "ZLINE *@$ip +1h \002\00340Proxy\00347/\00340VPN \00347from \00314$Getcountry \0036- \0034$GetcountryCode\002" }} elseif {[check_asn $Getas]} {puthelp "PRIVMSG $::RepChan:\002\0034Z-Line \0033VPN \0034&gt;&gt;\002\ \00314[regsub -all {([^:]+:)} $nick ""]\00305- \003014IP\00306:\00304 $Getquery \0035- \00314SHTETI\00306:\00304 $Getcountry \00305- \00314KODI\0036:\00304 $GetcountryCode \00305- \00314QYTETI\0036:\00304 $Getcity \00305- \00314ISP\0036:\00304 $Getisp \00305- \00314ASN\00306:\00304 $Getas \00305- \00314HOST\0036:\00304 $Getreverse \00305- \00314WIRELESS\0036:\00304 $Getmobile \00305- \00314PROXY\0036:\00304 $Getproxy"if { [getuser $::owner XTRA zline] eq "on" } { putnow "ZLINE *@$ip +1h \002\00340Proxy\00347/\00340VPN \00347from \00314$Getcountry \0036- \0034$GetcountryCode\002 " }} elseif {$Getproxy == "true"} {puthelp "PRIVMSG $::RepChan:\002\0034Z-Line \0033Proxy \0034&gt;&gt;\002\ \00314[regsub -all {([^:]+:)} $nick ""]\00305- \003014IP\00306:\00304 $Getquery \0035- \00314SHTETI\00306:\00304 $Getcountry \00305- \00314KODI\0036:\00304 $GetcountryCode \00305- \00314QYTETI\0036:\00304 $Getcity \00305- \00314ISP\0036:\00304 $Getisp \00305- \00314ASN\00306:\00304 $Getas \00305- \00314HOST\0036:\00304 $Getreverse \00305- \00314WIRELESS\0036:\00304 $Getmobile \00305- \00314PROXY\0036:\00304 $Getproxy"if { [getuser $::owner XTRA zline] eq "on" } { putnow "ZLINE *@$ip +1h \002\00340Proxy\00347/\00340VPN \00347from \00314$Getcountry \0036- \0034$GetcountryCode\002" }} else {puthelp "PRIVMSG $::RepChan:\002\00303Connect\00304&gt;&gt;\002 \00314[regsub -all {([^:]+:)} $nick ""]\00305- \003014IP\00306:\00304 $Getquery \0035- \00314SHTETI\00306:\00304 $Getcountry \00305- \00314KODI\0036:\00304 $GetcountryCode \00305- \00314QYTETI\0036:\00304 $Getcity \00305- \00314ISP\0036:\00304 $Getisp \00305- \00314ASN\00306:\00304 $Getas \00305- \00314HOST\0036:\00304 $Getreverse \00305- \00314WIRELESS\0036:\00304 $Getmobile \00305- \00314PROXY\0036:\00304 $Getproxy"    }}proc scanip:raw_userip {from keyword arg} {set userip [concat [lindex [split $arg @] end]]set nick [lindex [split $arg "="] 0]        scanip:proxy_check $userip $nick}proc scanip:join_proxy_check {nick host hand chan} {putserv "USERIP $nick"bind raw - 340 scanip:raw_userip}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12887">Gulio</a> — Sun Jun 06, 2021 6:01 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Gulio]]></name></author>
		<updated>2021-06-06T05:12:41-04:00</updated>

		<published>2021-06-06T05:12:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109956#p109956</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109956#p109956"/>
		<title type="html"><![CDATA[Hello]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109956#p109956"><![CDATA[
same error gives and when i remove $ip from <br><div class="codebox"><p>Code: </p><pre><code>set Getas [dict get $data $ip as]</code></pre></div> is not send the info to the channel the <br><br><div class="codebox"><p>Code: </p><pre><code>set message "scanip:proxy_check --&gt; PROBLEM DATA: \n$data"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12887">Gulio</a> — Sun Jun 06, 2021 5:12 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2021-06-06T03:37:17-04:00</updated>

		<published>2021-06-06T03:37:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109955#p109955</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109955#p109955"/>
		<title type="html"><![CDATA[whois info]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109955#p109955"><![CDATA[
Have a look on:<div class="codebox"><p>Code: </p><pre><code>set Getas [dict get $data $ip as]</code></pre></div>Why is there $ip in this line ?<br><br>Just with a visual check, you see that there is a trouble with this line, comparing to others which work<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Sun Jun 06, 2021 3:37 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Gulio]]></name></author>
		<updated>2021-06-05T20:50:35-04:00</updated>

		<published>2021-06-05T20:50:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109954#p109954</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109954#p109954"/>
		<title type="html"><![CDATA[Hello]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109954#p109954"><![CDATA[
is show me this in PL when i change "eq" with "ne" when i give restart to the Bot<br><br>and this when a bot join channel<br><div class="codebox"><p>Code: </p><pre><code>[03:48:09] * ChanServ sets mode: +qo Bot Bot[03:48:09] &lt;~Bot&gt; scanip:proxy_check --&gt; PROBLEM DATA: </code></pre></div>Partyline<br><div class="codebox"><p>Code: </p><pre><code>[03:48:10] &lt;Bot&gt; [02:48:09] scanip:proxy_check --&gt; PROBLEM DATA: [03:48:10] &lt;Bot&gt; "status" "fail" "message" "reserved range" "query" "255.255.255.255"</code></pre></div>And this when a user join in channel<br><div class="codebox"><p>Code: </p><pre><code>[02:49:34] Tcl error [scanip:raw_userip]: key "46.103.179.19" not known in dictionary</code></pre></div>if i change the line <br><div class="codebox"><p>Code: </p><pre><code>set message "scanip:proxy_check --&gt; PROBLEM DATA: \n$data"</code></pre></div>to:<br><div class="codebox"><p>Code: </p><pre><code>set message [dict get $data]</code></pre></div>is show me this in channel and partyline same info<br><div class="codebox"><p>Code: </p><pre><code>[04:55:34] &lt;~Bot&gt; status success country Greece countryCode GR city Thessaloniki isp {Cyta Hellas} as {AS3329 VODAFONE-PANAFON HELLENIC TELECOMMUNICATIONS COMPANY SA} reverse 46-179-19.adsl.cyta.gr mobile false proxy false query 46.103.179.19</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12887">Gulio</a> — Sat Jun 05, 2021 8:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2021-06-05T18:18:18-04:00</updated>

		<published>2021-06-05T18:18:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109953#p109953</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109953#p109953"/>
		<title type="html"><![CDATA[whois info]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109953#p109953"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>if {[dict get $data status] eq "success" } { </code></pre></div>So, if status is success, it's an error ? replace "eq" with "ne", might be better.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Sat Jun 05, 2021 6:18 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Gulio]]></name></author>
		<updated>2021-06-06T06:18:17-04:00</updated>

		<published>2021-06-05T07:55:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109951#p109951</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109951#p109951"/>
		<title type="html"><![CDATA[whois info]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109951#p109951"><![CDATA[
i have this code but is not show in channel report #test the info when a user join in other channel, is show me in partyline the info whois<br><br>how to fix this ?<br><div class="codebox"><p>Code: </p><pre><code>[14:48:15] &lt;Bot&gt; [13:48:16] scanip:proxy_check --&gt; PROBLEM DATA: [14:48:15] &lt;Bot&gt; "status" "success" "country" "Greece" "countryCode" "GR" "city" "Thessaloniki" "isp" "Cyta Hellas" "as" "AS3329 VODAFONE-PANAFON HELLENIC TELECOMMUNICATIONS COMPANY SA" "reverse" "46-179-19.adsl.cyta.gr" "mobile" false "proxy" false "query" "46.103.179.19"</code></pre></div><div class="codebox"><p>Code: </p><pre><code>set zline(operchannel)          "#test";proc json2dict {JSONtext} {string range [string trim [string trimleft [string map {\t {} \n {} \r {} , { } : { } \[ \{ \] \}} $JSONtext] {\uFEFF}]] 1 end-1}proc scanip:proxy_check {ip nick} {::http::config -useragent "lynx"set ipq [http::geturl http://ip-api.com/json/$ip?fields=status,message,country,countryCode,city,isp,as,reverse,mobile,proxy,query]set data [json2dict [http::data $ipq]]if {[check_ip $ip]} { return }::http::cleanup $ipqif {[dict get $data status] eq "success" } {set message "scanip:proxy_check --&gt; PROBLEM DATA: \n$data"putlog $messageputserv "PRIVMSG ${::zline(operchannel)} :$message"return}set Getquery [dict get $data query]set Getcountry [dict get $data country]set GetcountryCode [dict get $data countryCode]set Getcity [dict get $data city]set Getisp [dict get $data isp]set Getas [dict get $data as]set Getreverse [dict get $data reverse]set Getmobile [dict get $data mobile]set Getproxy [dict get $data proxy]if {[lsearch -nocase $::ccodes $GetcountryCode]!=-1} {set message  "\002\0034Z-Line \0033BadCountry \0034&gt;&gt;\002\ \00314[regsub -all {([^:]+:)} $nick ""]\00305- \003014IP\00306:\00304 $Getquery \0035- \00314SHTETI\00306:\00304 $Getcountry \00305- \00314KODI\0036:\00304 $GetcountryCode \00305- \00314QYTETI\0036:\00304 $Getcity \00305- \00314ISP\0036:\00304 $Getisp \00305- \00314ASN\00306:\00304 $Getas \00305- \00314HOST\0036:\00304 $Getreverse \00305- \00314WIRELESS\0036:\00304 $Getmobile \00305- \00314PROXY\0036:\00304 $Getproxy"puthelp "PRIVMSG ${::zline(operchannel)} :$message"if { [getuser $::owner XTRA zline] eq "on" } { putnow "ZLINE *@$ip +${::zline(timeban)} ${::zline(msgban)} \00314$Getcountry \0036- \0034$GetcountryCode\002" }} elseif {[check_asn $Getas]} {set message  "\002\0034Z-Line \0033VPN \0034&gt;&gt;\002\ \00314[regsub -all {([^:]+:)} $nick ""]\00305- \003014IP\00306:\00304 $Getquery \0035- \00314SHTETI\00306:\00304 $Getcountry \00305- \00314KODI\0036:\00304 $GetcountryCode \00305- \00314QYTETI\0036:\00304 $Getcity \00305- \00314ISP\0036:\00304 $Getisp \00305- \00314ASN\00306:\00304 $Getas \00305- \00314HOST\0036:\00304 $Getreverse \00305- \00314WIRELESS\0036:\00304 $Getmobile \00305- \00314PROXY\0036:\00304 $Getproxy"puthelp "PRIVMSG ${::zline(operchannel)} :$message"if { [getuser $::owner XTRA zline] eq "on" } { putnow "ZLINE *@$ip +${::zline(timeban)} ${::zline(msgban)} \00314$Getcountry \0036- \0034$GetcountryCode\002 " }} elseif {$Getproxy == "true"} {set message  "\002\0034Z-Line \0033Proxy \0034&gt;&gt;\002\ \00314[regsub -all {([^:]+:)} $nick ""]\00305- \003014IP\00306:\00304 $Getquery \0035- \00314SHTETI\00306:\00304 $Getcountry \00305- \00314KODI\0036:\00304 $GetcountryCode \00305- \00314QYTETI\0036:\00304 $Getcity \00305- \00314ISP\0036:\00304 $Getisp \00305- \00314ASN\00306:\00304 $Getas \00305- \00314HOST\0036:\00304 $Getreverse \00305- \00314WIRELESS\0036:\00304 $Getmobile \00305- \00314PROXY\0036:\00304 $Getproxy"puthelp "PRIVMSG ${::zline(operchannel)} :$message"if { [getuser $::owner XTRA zline] eq "on" } { putnow "ZLINE *@$ip +${::zline(timeban)} ${::zline(msgban)} \00314$Getcountry \0036- \0034$GetcountryCode\002" }} else {set message  "\002\0033&gt;&gt;\002\ \00314[regsub -all {([^:]+:)} $nick ""]\00305- \003014IP\00306:\00304 $Getquery \0035- \00314SHTETI\00306:\00304 $Getcountry \00305- \00314KODI\0036:\00304 $GetcountryCode \00305- \00314QYTETI\0036:\00304 $Getcity \00305- \00314ISP\0036:\00304 $Getisp \00305- \00314ASN\00306:\00304 $Getas \00305- \00314HOST\0036:\00304 $Getreverse \00305- \00314WIRELESS\0036:\00304 $Getmobile \00305- \00314PROXY\0036:\00304 $Getproxy"puthelp "PRIVMSG ${::zline(operchannel)} :$message"}}proc scanip:raw_userip {from key arg} {set userip [concat [lindex [split $arg @] end]]set nick [lindex [split $arg "="] 0]scanip:proxy_check $userip $nick}proc scanip:join_proxy_check {nick host hand chan} {putserv "USERIP $nick"bind raw - 340 scanip:raw_userip}</code></pre></div>[/code]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12887">Gulio</a> — Sat Jun 05, 2021 7:55 am</p><hr />
]]></content>
	</entry>
	</feed>
