1
0
mirror of https://github.com/calebstewart/pwncat.git synced 2024-11-24 01:25:37 +01:00

Correct password processing in connection string

This commit is contained in:
Caleb Stewart 2021-07-20 16:30:00 -04:00
parent 4205177806
commit eac56c853d
3 changed files with 7 additions and 0 deletions

View File

@ -25,6 +25,7 @@ improved stability with better exception handling.
- Pinned container base image to alpine 3.13.5 and installed to virtualenv ([#134](https://github.com/calebstewart/pwncat/issues/134))
- Fixed syntax for f-strings in escalation command
- Re-added `readline` import for windows platform after being accidentally removed
- Corrected processing of password in connection string
### Changed
- Changed session tracking so session IDs aren't reused
- Changed zsh prompt to match CWD of other shell prompts

View File

@ -163,6 +163,9 @@ def main():
host = m.group("host")
port = m.group("port")
if password is not None:
password = password.removeprefix(":")
if protocol is not None:
protocol = protocol.removesuffix("://")

View File

@ -137,6 +137,9 @@ class Command(CommandDefinition):
host = m.group("host")
port = m.group("port")
if password is not None:
password = password.removeprefix(":")
if protocol is not None:
protocol = protocol.removesuffix("://")