Fixed broken identd link and possible fix for issue reported by chrono
This commit is contained in:
parent
e8a7c90788
commit
d011286fa1
@ -14,7 +14,7 @@ Any server with SSL/TLS ports opened, will be connected using SSL/TLS. If using
|
||||
|
||||
The bot is designed to be very minimal, secure, & trustless by nature. This means anyone can run a copy of your script on their server to help build your botnet.
|
||||
|
||||
It is highly recommended that you use a [random spoofing ident protocol daemon](https://github.com/acidvegas/random/blob/master/irc/identd.py)
|
||||
It is highly recommended that you use a [random spoofing ident protocol daemon](https://github.com/internet-relay-chat/archive/blob/master/identd.py)
|
||||
|
||||
## Commands
|
||||
| Command | Description |
|
||||
|
@ -140,9 +140,10 @@ class clone():
|
||||
self.writer = None
|
||||
|
||||
async def connect(self):
|
||||
while True:
|
||||
try:
|
||||
if connect_delay:
|
||||
await asyncio.sleep(random.randint(300,900))
|
||||
while True:
|
||||
if self.proxy:
|
||||
options = {
|
||||
'proxy' : aiosocks.Socks5Addr(self.proxy.split(':')[0], int(self.proxy.split(':')[1])),
|
||||
@ -162,7 +163,6 @@ class clone():
|
||||
'family' : socket.AF_INET6 if self.use_ipv6 else socket.AF_INET,
|
||||
'local_addr' : (self.vhost, random.randint(5000,60000)) if self.vhost else None
|
||||
}
|
||||
try:
|
||||
self.reader, self.writer = await asyncio.wait_for(asyncio.open_connection(**options), 15)
|
||||
await self.raw(f'USER {rndnick()} 0 * :{rndnick()}')
|
||||
await self.raw('NICK ' + self.nickname)
|
||||
@ -177,7 +177,6 @@ class clone():
|
||||
error('Failed to connect to \'{0}\' IRC server {1}'.format(self.server['server'], v6), ex)
|
||||
else:
|
||||
await self.listen()
|
||||
self.loop.cancel()
|
||||
finally:
|
||||
await asyncio.sleep(86400+random.randint(1800,3600))
|
||||
|
||||
@ -396,6 +395,10 @@ class clone():
|
||||
pass
|
||||
except Exception as ex:
|
||||
error('Unexpected error occured on \'{0}\' server.'.format(self.server['server']), ex)
|
||||
try:
|
||||
self.loop.cancel()
|
||||
except:
|
||||
pass
|
||||
break
|
||||
|
||||
async def mode(self, target, mode):
|
||||
|
Loading…
Reference in New Issue
Block a user