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:
parent
4205177806
commit
eac56c853d
@ -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
|
||||
|
@ -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("://")
|
||||
|
||||
|
@ -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("://")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user