IRCP

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

commit ad1c99a99c135c23093eb049f31df6694772fcb9
parent abc8150ddf81697b1811ec5cd44d2a2a3e6d8abb
Author: acidvegas <acid.vegas@acid.vegas>
Date: Fri, 26 May 2023 19:59:31 -0400

SSL connection status wasnt being update in the snapshot. (Fixed)

Diffstat:
Mircp.py | 4+++-

1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/ircp.py b/ircp.py
@@ -36,7 +36,7 @@ snapshot = {
 	'raw'      : [], # All non-classified data is stored in here for analysis
 	'NOTICE'   : None,
 	'services' : False,
-	'ssl'      : True,
+	'ssl'      : False,
 
 	# server information
 	'001' : None, # RPL_WELCOME
@@ -158,6 +158,8 @@ class probe:
 			'real': settings.realname if settings.realname else rndnick()
 		}
 		self.reader, self.writer = await asyncio.wait_for(asyncio.open_connection(**options), throttle.timeout)
+		if not fallback:
+			self.snapshot['ssl'] = True
 		await self.raw('USER {0} 0 * :{1}'.format(identity['user'], identity['real']))
 		await self.raw('NICK ' + identity['nick'])
 		await self.listen()