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