IRCP

- information gathering tool for irc servers
git clone git://git.acid.vegas/IRCP.git
Log | Files | Refs | Archive | README | LICENSE

commit 8bf2f8bf09f550b49ba82977e297d0082eeb4ed0
parent e69d2e8739e47adc8f4d80d0c8b19920d1b423ec
Author: acidvegas <acid.vegas@acid.vegas>
Date: Mon, 5 Jun 2023 18:07:36 -0400

Fixed typos is color reset on some lines (\033[0m)

Diffstat:
Mircp.py | 12++++++------

1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/ircp.py b/ircp.py
@@ -254,7 +254,7 @@ class probe:
 					if line.startswith('ERROR :Closing Link'):
 						if 'dronebl' in line.lower():
 							self.snapshot['proxy'] = True
-							error(self.display + '\033[93mDroneBL detected\033[30m')
+							error(self.display + '\033[93mDroneBL detected\033[0m')
 							raise Exception('DroneBL')
 						else:
 							raise Exception('Banned')
@@ -284,7 +284,7 @@ class probe:
 					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')
+						error(self.display + '\033[93mProxy Monitor detected\033[0m')
 					else:
 						debug(f'{self.display}\033[34mWHOIS\033[0m {nick}')
 				elif event == '322' and len(args) >= 4: # RPL_LIST
@@ -308,7 +308,7 @@ class probe:
 				elif event == '366' and len(args) >= 4: # RPL_ENDOFNAMES
 					chan = args[3]
 					self.channels['current'].append(chan)
-					debug('{0}\033[32mJOIN\033[0m {1} \033[30m(found \033[93m{2}\033[30m users)\033[0m'.format(self.display, chan, self.channels['users'][chan]))
+					debug('{0}\033[32mJOIN\033[0m {1} \033[30m(found \033[93m{2}\033[0m users)\033[0m'.format(self.display, chan, self.channels['users'][chan]))
 					del self.channels['users'][chan]
 					await self.raw('WHO ' + chan)
 					await asyncio.sleep(throttle.part)
@@ -336,7 +336,7 @@ class probe:
 				elif event == '465': # ERR_YOUREBANNEDCREEP
 					if 'dronebl' in line.lower():
 						self.snapshot['proxy'] = True
-						error(self.display + '\033[93mDroneBL detected\033[30m')
+						error(self.display + '\033[93mDroneBL detected\033[0m')
 						raise Exception('DroneBL')
 					else:
 						raise Exception('K-Lined')
@@ -366,9 +366,9 @@ class probe:
 								self.snapshot['proxy'] = True
 								check = [x for x in ('bopm','hopm') if x in line]
 								if check:
-									error(f'{self.display}\033[93m{check.upper()} detected\033[30m')
+									error(f'{self.display}\033[93m{check.upper()} detected\033[0m')
 								else:
-									error(self.display + '\033[93mProxy Monitor detected\033[30m')
+									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'):
 							if i in msg:
 								error(self.display + '\033[31merror\033[0m - delay found', msg)