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.
|
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
|
## Commands
|
||||||
| Command | Description |
|
| Command | Description |
|
||||||
|
@ -140,9 +140,10 @@ class clone():
|
|||||||
self.writer = None
|
self.writer = None
|
||||||
|
|
||||||
async def connect(self):
|
async def connect(self):
|
||||||
|
while True:
|
||||||
|
try:
|
||||||
if connect_delay:
|
if connect_delay:
|
||||||
await asyncio.sleep(random.randint(300,900))
|
await asyncio.sleep(random.randint(300,900))
|
||||||
while True:
|
|
||||||
if self.proxy:
|
if self.proxy:
|
||||||
options = {
|
options = {
|
||||||
'proxy' : aiosocks.Socks5Addr(self.proxy.split(':')[0], int(self.proxy.split(':')[1])),
|
'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,
|
'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
|
'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)
|
self.reader, self.writer = await asyncio.wait_for(asyncio.open_connection(**options), 15)
|
||||||
await self.raw(f'USER {rndnick()} 0 * :{rndnick()}')
|
await self.raw(f'USER {rndnick()} 0 * :{rndnick()}')
|
||||||
await self.raw('NICK ' + self.nickname)
|
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)
|
error('Failed to connect to \'{0}\' IRC server {1}'.format(self.server['server'], v6), ex)
|
||||||
else:
|
else:
|
||||||
await self.listen()
|
await self.listen()
|
||||||
self.loop.cancel()
|
|
||||||
finally:
|
finally:
|
||||||
await asyncio.sleep(86400+random.randint(1800,3600))
|
await asyncio.sleep(86400+random.randint(1800,3600))
|
||||||
|
|
||||||
@ -396,6 +395,10 @@ class clone():
|
|||||||
pass
|
pass
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
error('Unexpected error occured on \'{0}\' server.'.format(self.server['server']), ex)
|
error('Unexpected error occured on \'{0}\' server.'.format(self.server['server']), ex)
|
||||||
|
try:
|
||||||
|
self.loop.cancel()
|
||||||
|
except:
|
||||||
|
pass
|
||||||
break
|
break
|
||||||
|
|
||||||
async def mode(self, target, mode):
|
async def mode(self, target, mode):
|
||||||
|
Loading…
Reference in New Issue
Block a user