Commit Graph

120 Commits

Author SHA1 Message Date
Russ Magee 5511fc83cd Better error handling (no panic) for client connrefused
Server logs error w/o exiting if missing hkexsh.passwd file

Signed-off-by: Russ Magee <rmagee@gmail.com>
2019-05-19 22:30:32 -07:00
Russ Magee cbf3c77342 Cleaned up/added commenting (hkexsh/, hkexnet/)
Signed-off-by: Russ Magee <rmagee@gmail.com>
2019-05-09 22:46:08 -07:00
Russ Magee df84580e63 Merge branch 'master' of https://gogs.blitter.com/RLabs/hkexsh 2019-04-08 22:00:06 -07:00
Russ Magee f09d6bbfef Added NEWHOPE and NEWHOPE_SIMPLE KEM algs
Fixed some -h typos, missing H_SHA512 option
randReader seed time.Now().UnixNano()

Signed-off-by: Russ Magee <rmagee@gmail.com>
2019-04-08 21:58:33 -07:00
Russ Magee 9a72e02fc0 Comment and redundant file cleanup
Signed-off-by: Russ Magee <rmagee@gmail.com>
2019-04-06 23:14:28 -07:00
Russ Magee a53ec4ac2d termmode.go: Added nil check in term.Restore() for nonexistent cp filename
Signed-off-by: Russ Magee <rmagee@gmail.com>
2019-04-05 19:10:38 -07:00
Russ Magee 5663fd0c79 Added test files for hkexcp testing
Signed-off-by: Russ Magee <rmagee@gmail.com>
2019-03-22 22:40:41 -07:00
Russtopia 113721b808 Upload files to 'hkexsh' 2019-02-07 09:20:37 -08:00
Russtopia ec7d7ca7d1 Upload files to 'hkexsh' 2019-02-06 23:18:02 -08:00
Russtopia 300f3a0dde Upload files to 'hkexsh' 2019-02-06 23:15:16 -08:00
Russtopia 88e697fa1d Upload files to 'hkexsh' 2019-02-06 22:47:55 -08:00
Russtopia 8195c6b5a7 Upload files to 'hkexsh' 2019-02-06 22:26:01 -08:00
Russtopia ae403c4b54 Upload files to 'hkexsh' 2019-02-06 17:58:55 -08:00
Russ Magee 205e68dcf8 Changed vis diagrams to PNG
Signed-off-by: Russ Magee <rmagee@gmail.com>
2019-01-12 13:16:49 -08:00
Russ Magee d5f083c8fb Added vis diagrams
Signed-off-by: Russ Magee <rmagee@gmail.com>
2019-01-12 12:51:25 -08:00
Russ Magee e07c5ee996 Updated vis targets to match go-callvis updated cmdline options
Signed-off-by: Russ Magee <rmagee@gmail.com>
2019-01-09 23:35:34 -08:00
Russ Magee ea01123b87 GoReporter recommended cleanup 2018-12-12 00:34:23 -08:00
Russ Magee 3dab963bc9 Commented on client custom io.Copy and copyBuffer
Signed-off-by: Russ Magee <rmagee@gmail.com>
2018-12-08 21:53:35 -08:00
Russ Magee a0e90c14ba Praise Bob!
Signed-off-by: Russ Magee <rmagee@gmail.com>
2018-12-08 21:44:06 -08:00
Russ Magee 9641fd3fff Console esc seqs no longer affect in-band input
Signed-off-by: Russ Magee <rmagee@gmail.com>
2018-12-08 21:37:26 -08:00
Russ Magee 55fdffbd9e Moved herradurakex to its own package
Signed-off-by: Russ Magee <rmagee@gmail.com>
2018-12-06 17:20:43 -08:00
Russ Magee 20dcfd7bb2 Regen of graphviz diagrams
Signed-off-by: Russ Magee <rmagee@gmail.com>
2018-11-29 18:38:15 -08:00
Russ Magee 5ad08fd3b3 tty state restored prior to printing nonzero exit status for interactive shell sessions
Signed-off-by: Russ Magee <rmagee@gmail.com>
2018-11-29 18:28:30 -08:00
Russ Magee 291bacf2df Fix for issue #11 2018-11-29 18:06:03 -08:00
Russ Magee 103d76989e Fixed mis-named goroutine in doShellMode
Signed-off-by: Russ Magee <rmagee@gmail.com>
2018-11-25 21:08:37 -08:00
Russ Magee 85619f3cc9 Fixed graphviz tag for stdinToPtyWorker goroutine
Signed-off-by: Russ Magee <rmagee@gmail.com>
2018-11-25 18:55:07 -08:00
Russ Magee 556a9fcfd0 Merge branch 'metalint'
Signed-off-by: Russ Magee <rmagee@gmail.com>
2018-11-25 18:47:33 -08:00
Russ Magee fc05a9a4a3 Added fixup-gv.sh and Makefile rules to generate annotated goroutines in graphviz output.
Signed-off-by: Russ Magee <rmagee@gmail.com>
2018-11-25 18:43:53 -08:00
Russ Magee 6fbbcdadb6 Gometalinter cleanup/audit of hkexsh, hkexshd, hkexpasswd
Signed-off-by: Russ Magee <rmagee@gmail.com>
2018-11-25 10:24:10 -08:00
Russ Magee 2da0d8b198 Tweaks to sed expr in code comments 2018-11-24 19:40:45 -08:00
Russ Magee 5eb80f4226 Further graphviz work; named hkexsh goroutines 2018-11-22 23:43:03 -08:00
Russ Magee 738bcf3ba9 Begin experiments with graphviz 2018-11-22 23:09:22 -08:00
Russ Magee fa398159e3 Merge branch 'metalint' 2018-11-22 19:02:41 -08:00
Russ Magee 6c6d0cbbb6 Added PNG go-callvis diagrams
Signed-off-by: Russ Magee <rmagee@gmail.com>
2018-11-22 18:13:11 -08:00
Russ Magee 0b668630e7 hkexsh gometalinter cleanup 2018-11-22 16:49:09 -08:00
Russ Magee c6cbd8d681 Replaced go-code-visualizer with go-callvis
Signed-off-by: Russ Magee <rmagee@gmail.com>
2018-11-21 17:06:09 -08:00
Russ Magee 5fb227b9f8 -Removed WriteDeadline in hkexnet.Close()
-hkexsh: fixed (non-)error handling for file copies

Signed-off-by: Russ Magee <rmagee@gmail.com>
2018-11-20 18:50:09 -08:00
Russ Magee d28a4af924 Added example openrc init script
Signed-off-by: Russ Magee <rmagee@gmail.com>
2018-11-13 23:59:34 -08:00
Russ Magee 2cb254ef69 Basic -T tun opt parsing
Signed-off-by: Russ Magee <rmagee@gmail.com>
2018-11-12 00:44:16 -08:00
Russ Magee a9ebb102bd Stubbed tun option parsing
Signed-off-by: Russ Magee <rmagee@gmail.com>
2018-11-11 23:26:22 -08:00
Russ Magee b0f614f82e Tunnel keepalives from client implemented. If client dies/exits unexpectedly the server
tunnel will disconnect from rport in a timely manner.

Signed-off-by: Russ Magee <rmagee@gmail.com>
2018-11-11 22:46:39 -08:00
Russ Magee 0943797300 Minor cleanup prior to tackling os.Exit() in doShellMode() and server-side tun hangs 2018-11-11 21:05:25 -08:00
Russ Magee 6f1fcbbf7a Corrected tun chan Ctl cmd comments 2018-11-11 20:25:34 -08:00
Russ Magee 2a9e6af2ae Tunnels w/reconnect refinements:
-200ms deadlink timeouts
-Fixed TunConnRefused client hangup handling

Signed-off-by: Russ Magee <rmagee@gmail.com>
2018-11-11 20:12:29 -08:00
Russ Magee ba3cda95e8 Tunnels with reconnect working.
TODO: interactive client exit must collapse all open tunnels prior to exit.

Signed-off-by: Russ Magee <rmagee@gmail.com>
2018-11-11 18:56:08 -08:00
Russ Magee 3b35751e2e WIP tunnel states, re-dial when not required needs debugging. 2018-11-07 19:35:32 -08:00
Russ Magee 492c7290b0 Much improved tunnel state management: server-side mostly working, client-side re-Accept() -> svr re-Dial() still required 2018-11-01 22:14:44 -07:00
Russ Magee a425afe9b6 Tunnels working again to basic level w/o re-connect or re-dial 2018-11-01 18:52:01 -07:00
Russ Magee 081d88b9ad tunnel setup stubs moved into Conn Read()/Write() handling 2018-10-31 20:11:00 -07:00
Russ Magee fcbdb77c79 Cleaned up error handling in hkexnet.Conn.Read() a bit 2018-10-30 21:07:42 -07:00