1
mirror of git://git.acid.vegas/IRCP.git synced 2024-11-22 16:06:41 +00:00

Bug fixed in HOPM detection, vhost is now working, & throttle settings were altered for best performance

This commit is contained in:
Dionysus 2023-06-29 00:31:51 -04:00
parent dd94aabfcb
commit 52fbb67808
Signed by: acidvegas
GPG Key ID: EF4B922DB85DC9DE

10
ircp.py
View File

@ -31,10 +31,10 @@ class throttle:
nick = 300 if not settings.daemon else 600 # Delay between every random NICK change nick = 300 if not settings.daemon else 600 # Delay between every random NICK change
part = 10 if not settings.daemon else 30 # Delay before PARTing a channel part = 10 if not settings.daemon else 30 # Delay before PARTing a channel
seconds = 300 if not settings.daemon else 600 # Maximum seconds to wait when throttled for JOIN or WHOIS seconds = 300 if not settings.daemon else 600 # Maximum seconds to wait when throttled for JOIN or WHOIS
threads = 100 if not settings.daemon else 25 # Maximum number of threads running threads = 300 if not settings.daemon else 100 # Maximum number of threads running
timeout = 30 if not settings.daemon else 60 # Timeout for all sockets timeout = 30 if not settings.daemon else 60 # Timeout for all sockets
whois = 5 if not settings.daemon else 15 # Delay between WHOIS requests whois = 15 if not settings.daemon else 30 # Delay between WHOIS requests
ztimeout = 300 if not settings.daemon else 600 # Timeout for zero data from server ztimeout = 600 if not settings.daemon else 900 # Timeout for zero data from server
class bad: class bad:
donotscan = ( donotscan = (
@ -177,7 +177,7 @@ class probe:
'limit' : 1024, 'limit' : 1024,
'ssl' : None if fallback else ssl_ctx(), 'ssl' : None if fallback else ssl_ctx(),
'family' : self.family, 'family' : self.family,
'local_addr' : settings.vhost 'local_addr' : (settings.vhost, random.randint(5000,65000)) if settings.vhost else None
} }
identity = { identity = {
'nick': settings.nickname if settings.nickname else rndnick(), 'nick': settings.nickname if settings.nickname else rndnick(),
@ -460,7 +460,7 @@ class probe:
self.snapshot['proxy'] = True self.snapshot['proxy'] = True
check = [x for x in ('bopm','hopm') if x in line] check = [x for x in ('bopm','hopm') if x in line]
if check: if check:
error(f'{self.display}\033[93m{check.upper()} detected\033[0m') error(f'{self.display}\033[93m{check[0].upper()} detected\033[0m')
else: else:
error(self.display + '\033[93mProxy Monitor detected\033[0m') error(self.display + '\033[93mProxy Monitor detected\033[0m')
for i in ('You must have been using this nick for','You must be connected for','not connected long enough','Please wait', 'You cannot list within the first'): for i in ('You must have been using this nick for','You must be connected for','not connected long enough','Please wait', 'You cannot list within the first'):