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

	<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-09-05T10:53:05-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Valentin]]></name></author>
		<updated>2022-09-05T10:53:05-04:00</updated>

		<published>2022-09-05T10:53:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111367#p111367</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111367#p111367"/>
		<title type="html"><![CDATA[VPN Hunter]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111367#p111367"><![CDATA[
Hey CrazyCat, My idea been to show me ip and country from connection.<br>For example CrazyCat is connected with ip 1.1.1.1 from France.<br>May be I didn`t explaned you better. So that is what I want, and is more better if show me only vpn connections.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12983">Valentin</a> — Mon Sep 05, 2022 10:53 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2022-09-05T05:21:26-04:00</updated>

		<published>2022-09-05T05:21:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111361#p111361</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111361#p111361"/>
		<title type="html"><![CDATA[VPN Hunter]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111361#p111361"><![CDATA[
IMHO if u tackle the abuse rather than using all kinds of databases for vpn proxy and what not its rather more effiecient i assume u are running your own irc server since u opered  your  eggdrops IRCDs like unrealircd 6 and inspircd 3 have all kinds of modules and protections to handle almost any kind of abuse without having to set any  ban or keep databases to gline vpn ranges  , proxy or other.<br><br>I manage several irc networks as well and we had issues with vpn ranges too  but we used a zillion modules and now abuse is of the past regardless of them using vpn ranges or proxy IP's.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Mon Sep 05, 2022 5:21 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2022-09-05T04:54:24-04:00</updated>

		<published>2022-09-05T04:54:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111360#p111360</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111360#p111360"/>
		<title type="html"><![CDATA[VPN Hunter]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111360#p111360"><![CDATA[
That is exactly what you asked me:<blockquote class="uncited"><div>2022-08-29 16:03:04  Valentin so the bot is VPNSErv<br>2022-08-29 16:03:18  Valentin I want the same bot to show me any connection<br>2022-08-29 16:03:26  Valentin and if I set !on<br>2022-08-29 16:03:42  Valentin to add gline to every vpn connection<br>2022-08-29 16:04:00  Valentin but still show me who from where is connected<br>2022-08-29 16:04:33  CrazyCat So, if I summarize: all connections are alway showed and the gline is done only if the script is set to on ?<br>2022-08-29 16:05:00  CrazyCat if !off command has ben set, the connection is showed, nothing else</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Mon Sep 05, 2022 4:54 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Valentin]]></name></author>
		<updated>2022-09-05T00:02:24-04:00</updated>

		<published>2022-09-05T00:02:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111358#p111358</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111358#p111358"/>
		<title type="html"><![CDATA[VPN Hunter]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111358#p111358"><![CDATA[
Hello, all.<br>I have this script, that make the bot to add gline to all vpns if is !on and show all vpns connection if is !off.<br>But something doesn`t work properly. The bot show me all connections in that channel, doesn`t matter are they vpn or not. <br>I need a help to fix it.<br><div class="codebox"><p>Code: </p><pre><code>package require httppackage require jsonnamespace eval pchecker {# proxycheck.io api keyvariable pckey "xxxxx xxxxx xxxxx xxxxx"# min score to banvariable score 10# gzline messagevariable gmsg "VPN is not allowed at the moment!"# List of IP not checked# they are regexp stylevariable whitelist {"192.168.0.1" "10.0.0.*"}# List of blacklisted IP# regexp too :)variable blacklist {}# Control channelset cchan #vpn# internal variable : status of VPN searchset onoff 0bind raw - NOTICE ::pchecker::ipcheckbind pub - "!on" ::pchecker::onbind pub - "!off" ::pchecker::offproc on {nick uhost handle chan text} {if {$chan ne $::pchecker::cchan} { return }if {$::pchecker::onoff == 1} {putserv "PRIVMSG $::pchecker::cchan :\00303VPN HUNTER is tutn ON"return}set ::pchecker::onoff 1}proc off {nick uhost handle chan text} {if {$chan ne $::pchecker::cchan} { return }if {$::pchecker::onoff == 0} {putserv "PRIVMSG $::pchecker::cchan :\00304VPN HUNTER is turn OFF\003"return}set ::pchecker::onoff 0}proc ipcheck {frm key text} {if {[string match *!*@* $frm] || ![string match -nocase "*client connecting*" $text]} { return }regexp {:\s.*?:\s(.*?)!(.*?)@(.*?)\s\((.*?)\)} $text - unick ident host ipputserv "PRIVMSG $::pchecker::cchan :\00304VPN Detected\003 : \00303$unick\003 \00307is connecting with ip\003 $ip"if {[lsearch -regexp $::pchecker::whitelist $ip] ne -1} { return }if {[lsearch -regexp $::pchecker::blacklist $ip] ne -1} {putquick "GLINE *@$ip 7d :$::pchecker::gmsg"return}if {$::pchecker::onoff == 1 } { ::pchecker::isvpn $ip }}proc isvpn {ip} {::http::config -useragent "lynx"set pcheck [::http::geturl http://proxycheck.io/v2/${ip}?key=$::pchecker::pckey&amp;vpn=1&amp;risk=1]set data [::json::json2dict [::http::data $pcheck]]if {[dict get $data status] == "ok"} {set proxy [dict get [dict get $data $ip] proxy]set risk [dict get [dict get $data $ip] risk]if {[expr $risk - $::pchecker::score] &gt;= 0 } {lappend $::pchecker::blacklist [string map {. \.} $ip]putquick "GLINE *@$ip 7d :$::pchecker::gmsg"}}::http::cleanup $pcheck}}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12983">Valentin</a> — Mon Sep 05, 2022 12:02 am</p><hr />
]]></content>
	</entry>
	</feed>
