Skip to content

Commit 7934e30

Browse files
Merge branch 'hotfix/hostnameregex' into develop
2 parents 69ca4d9 + f06bd97 commit 7934e30

File tree

6 files changed

+12
-7
lines changed

6 files changed

+12
-7
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 0.6.2
2+
current_version = 0.6.3
33

44
[bumpversion:file:snapcraft.yaml]
55

AppImageBuilder.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ AppDir:
1717
id: at.ssh-mitm.server
1818
name: ssh-mitm
1919
icon: ssh-mitm
20-
version: 0.6.2
20+
version: 0.6.3
2121
# Set the python executable as entry point
2222
exec: usr/bin/python3
2323
# Set the application main script path as argument. Use '$@' to forward CLI parameters

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [0.6.3] - 2021-11-04
11+
12+
- fixed hostname regex (error in regex)
13+
1014
## [0.6.2] - 2021-11-04
1115

1216
### Fixed
@@ -216,7 +220,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
216220

217221
- fixed pseudo terminal on exec command
218222

219-
[Unreleased]: https://github.com/ssh-mitm/ssh-mitm/compare/0.6.2...develop
223+
[Unreleased]: https://github.com/ssh-mitm/ssh-mitm/compare/0.6.3...develop
224+
[0.6.3]: https://github.com/ssh-mitm/ssh-mitm/compare/0.6.2...0.6.3
220225
[0.6.2]: https://github.com/ssh-mitm/ssh-mitm/compare/0.6.1...0.6.2
221226
[0.6.1]: https://github.com/ssh-mitm/ssh-mitm/compare/0.6.0...0.6.1
222227
[0.6.0]: https://github.com/ssh-mitm/ssh-mitm/compare/0.5.13...0.6.0

snapcraft.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: ssh-mitm # you probably want to 'snapcraft register <name>'
22
base: core18 # the base snap is the execution environment for this snap
3-
version: '0.6.2' # just for humans, typically '1.2+git' or '1.3.2'
3+
version: '0.6.3' # just for humans, typically '1.2+git' or '1.3.2'
44
summary: ssh mitm server for security audits # 79 char long summary
55
description: |
66
ssh mitm server for security audits supporting

ssh_proxy_server/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version: str = '0.6.2'
1+
version: str = '0.6.3'

ssh_proxy_server/authentication.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,13 @@ def parse_service_accept(self, m):
6969

7070

7171
def validate_remote_host(remote_host):
72-
if re.match(r"^[^\:]+(:[0-9]{5})?$", remote_host):
72+
if re.match(r"[^\:]+(:[0-9]{5})?", remote_host):
7373
return remote_host
7474
raise argparse.ArgumentTypeError('remot host must be in format hostname:port')
7575

7676

7777
def validate_honeypot(remote_host):
78-
if re.match(r"^[^\:]+:[^@]+@[^\:]+:([0-9]{5})?$", remote_host):
78+
if re.match(r"[^\:]+:[^@]+@[^\:]+(:[0-9]{5})?", remote_host):
7979
return remote_host
8080
raise argparse.ArgumentTypeError('honeypot address must be in format username:password@hostname:port')
8181

0 commit comments

Comments
 (0)