Commit graph

40 commits

Author SHA1 Message Date
21ff3f7493 Update project golang version to 1.22 2024-09-29 17:09:40 +02:00
5afdb339a2 Update golang.org/x/crypto to v0.27.0 2024-09-29 17:08:51 +02:00
b5c2560358 Replace deprecated ioutil.ReadFile with new func from os 2023-09-21 23:16:03 +02:00
61fc3ad141 Replace own ip extraction function with func from net package 2023-09-21 23:13:31 +02:00
fd3e5530f9 Update crypto lib 2023-09-14 19:09:32 +02:00
c12c77fb1d Update crypto lib 2022-09-24 17:05:36 +02:00
fc116692a0 Increase project golang version to 1.19
Keep it up to date.
2022-08-11 18:16:32 +02:00
39a4ad47e1 Update crypto lib 2022-08-11 18:06:22 +02:00
7f421ecadb
Add a license section to the README 2022-05-21 16:15:44 +02:00
ee5fd989b6
Update copyright holder information 2022-05-21 16:13:08 +02:00
1dc9ba16b5
Fix WaitGroup count on IPv4 only mode
It doesn't really matters, because we never mark them as done, but this
would make it easier if waiting for it would be required in the future.
2022-05-21 16:08:52 +02:00
8ebf7531e9
Move the ssh.ServerConfig creation to the main func
There is no need to create a config per request.
2022-05-21 16:08:32 +02:00
f5a9473a9a
Extract previously inline PasswordCallback function into own function
I decided instead of defining the func inline in to a top level function
to reduce the nesting
2022-05-21 15:53:39 +02:00
52d38f1d36
Update go version in Dockerfile to 1.18 2022-05-21 15:51:57 +02:00
1a1119b9af
Increase project golang version 1.18
Keep it up to date.
2022-05-21 13:46:57 +02:00
9678d7ada2
Update crypto lib 2022-05-21 13:45:08 +02:00
e11b8d9646 Update crypto lib 2022-03-16 11:47:28 +01:00
b4a50e382f Fix variable naming inside the getKey function
This should fix golint.
2022-03-16 11:46:26 +01:00
a1a5164061 Unexport PrintData function
There is no need to export the function.
2022-03-16 11:46:26 +01:00
d20988a778 Update the crypto dependency 2022-01-17 19:46:54 +01:00
fc61e9f469
Adjust README section titel heights 2021-09-02 12:58:57 +02:00
26baa83da8
Add JSON logging option
The connection information can now be displayed in JSON format. To
activate it use the '--json' flag. It will only format the connection
information in JSON everything else will be still in plain text.
2021-09-02 12:54:21 +02:00
a63e9965f2
Fix not loading key from path if given as param 2021-09-02 12:17:22 +02:00
a3eddde736
Update crypto dependency to newest version 2021-09-02 12:11:59 +02:00
74b456241a Add Docker setup 2021-09-01 23:02:37 +02:00
b345d17602 Merge branch 'systemd'
Adds a systemd service setup for sshlog.

* systemd:
  Add information about util directory
  Add a README inside utils with systemd instructions
  Add sshlog.service configuration
2021-07-28 19:57:41 +02:00
abdaa65cfa
Add information about util directory 2021-06-25 20:52:23 +02:00
4fea62262f
Fix IPv4 port to bind to 0.0.0.0 2021-06-20 16:25:57 +02:00
c4f38cd7e1 Add a README inside utils with systemd instructions
This README should hold all infromation for all utilities that should
appeare around sshlog, like the systemd service configuration.
2021-06-18 21:26:20 +02:00
279b3fa159 Add sshlog.service configuration
I am not an expert in systemd service creation/configuration. I just
took an example file from the internet and modified it slightly to match
my setup.
This configuration gets using the `systemd-analyze` a mixed result while
scanning it with the focus on security. I am sure it can be optimize to
have a lot less capabilities but for the time I don't know how.

Refs:
 - https://medium.com/@benmorel/creating-a-linux-service-with-systemd-611b5c8b91d6
 - https://www.redhat.com/sysadmin/systemd-secure-services
2021-06-18 21:24:26 +02:00
19bdd78a75 Update repository location
I moved this project to sourcehut[1] and had to update all references to
the old location. I desided to move to sourcehut to try it out, but the
project will be still accessible through git.hhhammer.de[2] (mirror).

[1] https://sr.ht
[2] https://git.hhhammer.de
2021-06-17 00:11:03 +02:00
049e2d4714 Fix tool description 2021-06-16 23:10:05 +02:00
8ca9c879db Add flag for IPv4 only mode 2021-06-16 23:10:05 +02:00
4261462c0f Update README
- Update example output
- Add some small info and motivation text
2021-06-16 23:10:05 +02:00
36af54cd65 Add IPv6 support 2021-06-16 23:10:05 +02:00
f4f522441f Move key parsing to top level function
With this the key gets only parsed once and not on every connection.
2021-06-16 23:10:05 +02:00
3b5b61b42a Add ip to username and password log with new format
The format is inspired by the one ufw uses.
The output looks now like:
2021/06/02 22:58:01 SRC=127.0.0.1 USERNAME=test PASSWORD=foo
2021-06-16 23:10:05 +02:00
77cd0f8574 Make all output calls use log package
Except the output with the credentials. This output should be reworked
in a different commit!
2021-06-16 23:10:05 +02:00
c74442fcc2 Add option to give custom key 2021-06-16 23:09:34 +02:00
a94ccbf744 Init commit 2021-06-16 23:09:13 +02:00