Commit Graph

18 Commits

Author SHA1 Message Date
Augusto Dwenger J. b5c2560358 Replace deprecated ioutil.ReadFile with new func from os 2023-09-21 23:16:03 +02:00
Augusto Dwenger J. 61fc3ad141 Replace own ip extraction function with func from net package 2023-09-21 23:13:31 +02:00
Augusto Dwenger J. 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
Augusto Dwenger J. 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
Augusto Dwenger J. 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
Augusto Dwenger J. b4a50e382f Fix variable naming inside the getKey function
This should fix golint.
2022-03-16 11:46:26 +01:00
Augusto Dwenger J. a1a5164061 Unexport PrintData function
There is no need to export the function.
2022-03-16 11:46:26 +01:00
Augusto Dwenger J. 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
Augusto Dwenger J. a63e9965f2
Fix not loading key from path if given as param 2021-09-02 12:17:22 +02:00
Augusto Dwenger J. 4fea62262f
Fix IPv4 port to bind to 0.0.0.0 2021-06-20 16:25:57 +02:00
Augusto Dwenger J. 049e2d4714 Fix tool description 2021-06-16 23:10:05 +02:00
Augusto Dwenger J. 8ca9c879db Add flag for IPv4 only mode 2021-06-16 23:10:05 +02:00
Augusto Dwenger J. 36af54cd65 Add IPv6 support 2021-06-16 23:10:05 +02:00
Augusto Dwenger J. 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
Augusto Dwenger J. 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
Augusto Dwenger J. 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
Augusto Dwenger J. c74442fcc2 Add option to give custom key 2021-06-16 23:09:34 +02:00
Augusto Dwenger J. a94ccbf744 Init commit 2021-06-16 23:09:13 +02:00