mirror of
git://git.acid.vegas/IRCP.git
synced 2024-11-26 09:56:42 +00:00
Advanced open proxy monitoring detection via WHOIS replies
This commit is contained in:
parent
60662be663
commit
25c6f7a84e
4
ircp.py
4
ircp.py
@ -341,6 +341,10 @@ class probe:
|
|||||||
self.loops['init'] = asyncio.create_task(self.loop_initial())
|
self.loops['init'] = asyncio.create_task(self.loop_initial())
|
||||||
elif numeric == '311' and len(args) >= 4: # RPL_WHOISUSER
|
elif numeric == '311' and len(args) >= 4: # RPL_WHOISUSER
|
||||||
nick = args[3]
|
nick = args[3]
|
||||||
|
if 'open proxy' in line.lower() or 'proxy monitor' in line.lower():
|
||||||
|
self.snapshot['proxy'] = True
|
||||||
|
error(self.display + '\033[93mProxy Monitor detected\033[30m')
|
||||||
|
else:
|
||||||
debug(f'{self.display}\033[34mWHOIS\033[0m {nick}')
|
debug(f'{self.display}\033[34mWHOIS\033[0m {nick}')
|
||||||
elif numeric == '322' and len(args) >= 4: # RPL_LIST
|
elif numeric == '322' and len(args) >= 4: # RPL_LIST
|
||||||
chan = args[3]
|
chan = args[3]
|
||||||
|
Loading…
Reference in New Issue
Block a user