Commit Graph

129 Commits

Author SHA1 Message Date
Russ Magee a990c5e1f3 Cleaned up flag strings
Signed-off-by: Russ Magee <rmagee@gmail.com>
2019-09-14 23:47:41 -07:00
Russ Magee c95794da1f Uncoupled kcp-go UDP support by moving into hkexnet/kcp.go
TODO: cmdline param to set KCP symmetric key & salt at launch (consider
also from a file to avoid putting inline in invocations, eg., init scripts)

Signed-off-by: Russ Magee <rmagee@gmail.com>
2019-08-16 23:16:40 -07:00
Russ Magee d7dbcd8fdf Added experimental support (-K) for kcp-go reliable-UDP instead of TCP
github.com/xtaci/kcp-go

** Note: hkexcp appears to hang (client-side) on completion w/complete file copy
   (Note server-side logs on final missed ctrlStatOp msg)

Signed-off-by: Russ Magee <rmagee@gmail.com>
2019-08-13 20:56:01 -07:00
Russ Magee 06854f7a03 Added make-controlled version, gitCommit (thanks to https://preslav.me/2019/07/09/adding-version-information-to-go-binaries/ 2019-07-11 10:12:38 -07:00
Russ Magee 2087aab2d5 Minor cleanup to keepalive timing jitter comments 2019-07-10 20:44:02 -07:00
Russ Magee f5480553df Random jitter to tun keepalive timing
Signed-off-by: Russ Magee <rmagee@gmail.com>
2019-07-10 01:11:23 -07:00
Russ Magee 825429003b Added enforcement of min/max vals for chaff freq, bytesize
Made HerraduraKEx 512 default KEx (was HerraduraKEx 256)

Signed-off-by: Russ Magee <rmagee@gmail.com>
2019-07-03 09:50:37 -07:00
Russ Magee 54396a4e4b BUILDOPTS passed to client/server makes 2019-06-20 22:44:19 -07:00
Russ Magee c24529a1d4 log of cipher/plaintext disabled (flags unexposed to re-enable); pprof tooling 2019-06-19 21:42:34 -07:00
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