2603.3 - Slowing down connections
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
"""portspoof_py — asyncio Python rewrite of the portspoof TCP honeypot."""
|
||||
__version__ = '2603.2'
|
||||
__version__ = '2603.3'
|
||||
|
||||
@@ -59,10 +59,10 @@ async def _handle(
|
||||
)
|
||||
|
||||
try:
|
||||
await asyncio.sleep(random.uniform(_DELAY_MIN, _DELAY_MAX))
|
||||
if banner:
|
||||
writer.write(banner)
|
||||
await writer.drain()
|
||||
await asyncio.sleep(random.uniform(_DELAY_MIN, _DELAY_MAX))
|
||||
except (ConnectionResetError, BrokenPipeError):
|
||||
pass
|
||||
finally:
|
||||
|
||||
@@ -4,7 +4,7 @@ build-backend = "flit_core.buildapi"
|
||||
|
||||
[project]
|
||||
name = "portspoof-py"
|
||||
version = "2603.2"
|
||||
version = "2603.3"
|
||||
description = "Python asyncio rewrite of the portspoof TCP honeypot"
|
||||
readme = "README.md"
|
||||
requires-python = ">=3.11"
|
||||
|
||||
Reference in New Issue
Block a user