Commit graph

83 commits

Author SHA1 Message Date
Russ Magee
c3572d7c0c Fixed abs/relative path for client dest copies 2018-08-30 20:16:55 -07:00
Russ Magee
143990da34 Scatter/gather for client->server copy now functional 2018-08-30 20:06:42 -07:00
Russ Magee
1986ec6f0c Removed :port: from 'fancy' arg syntax; more improvements to src/dest file spec logic (esp. fixing bug in multiple src file/dir args to remote dest) 2018-08-25 23:38:58 -07:00
Russ Magee
ca2b6efd9b client->server and server->client file/dir copies minimally working 2018-08-24 23:22:07 -07:00
Russ Magee
7867f84b87 WIP: server->client copy primitively functional; TODO client->server copy 2018-08-24 18:50:45 -07:00
Russ Magee
0b9b8b8320 WIP tarpipe construction: server-side, TODOL client-side, -r behaviour 2018-08-23 11:03:19 -07:00
Russ Magee
5859131678 Continuing groundwork for cp mode - refactor main client code into shell/copy subroutines; -r option 2018-08-06 22:29:51 -07:00
Russ Magee
00e03c1d54 Misc. fixes to end-of-session conn handling. Outstanding bug w/client chaff enabled & truncated client data 2018-08-05 21:43:21 -07:00
Russ Magee
f48b0c17ed Prep for hkexsh alternate op mode via symlink/exe name: hkexcp - a secure remote file copier 2018-07-18 22:32:49 -07:00
Russ Magee
0d404470c1 Make hkexshd log IP not hostname to wtmp/lastlog 2018-07-14 13:15:58 -07:00
Russ Magee
f079b5b43d Fixed server root warning to output without -d flag to stdout 2018-07-13 20:26:48 -07:00
Russ Magee
9edcc5110c Fixed syntax errors from re-org 2018-07-04 22:06:07 -07:00
Russ Magee
216bfa3326 Exit status of remote commands now reflect in client exit 2018-06-29 19:23:11 -07:00
Russ Magee
c64797f2d9 Basic server-side recording of exitStatus of pty(cmd).
TODO: sending of exitStatus to client and client handling of said packet via
  a WritePacket() with unique existStatus op.
2018-06-29 16:54:20 -07:00
Russ Magee
011f6d161b #3: hkexshd: server should output error on startup if not run w/sufficient privileges
Signed-off-by: Russ Magee <rmagee@gmail.com>
2018-06-27 19:28:03 -07:00
Russ Magee
dac467c1e6 Corrected Println -> Printf logs for login/cmd tracking 2018-06-27 19:13:14 -07:00
Russ Magee
889203c9de host lookup for goutmp (wtmp) tracking 2018-06-27 19:09:35 -07:00
Russ Magee
11fad87345 Pass remote host lookup to goutmp 2018-06-27 17:32:26 -07:00
Russ Magee
f5a146255f Renamed go_login pkg to goutmp 2018-06-27 14:58:57 -07:00
Russ Magee
22da88af7d Attempts to handle disconnects better.. TODO: torture tests and implement exit status for -x commands 2018-06-26 20:14:43 -07:00
Russ Magee
ac28e5ef7a Proto login accounting via utmp(x) and lastlog 2018-06-01 20:34:49 -07:00
Russ Magee
0ba85e2ee8 Grr, added new Makefiles
Signed-off-by: Russ Magee <rmagee@gmail.com>
2018-05-26 23:46:55 -07:00
Russ Magee
f92085bb86 Further work on term resizing platform support for Linux and Windows/mintty 2018-05-26 13:43:09 -07:00
Russ Magee
8f087e9ca1 Added -v option (version) 2018-05-12 18:41:39 -07:00
Russ Magee
a1f4e0342a Added chaff cmdline options to client & server 2018-05-06 17:41:09 -07:00
Russ Magee
70448dda08 No need for custom hkexsh.Copy() 2018-05-04 23:31:06 -07:00
Russ Magee
c5498642fc Got client hangup working again. Security scrub auth vars. 2018-05-04 23:25:26 -07:00
Russ Magee
a49a5d4cc2 Locking in WritePacket() apparently working, client and server-side chaffing functional 2018-05-03 23:53:47 -07:00
Russ Magee
b8a07e9648 Chaff packets w/sync.Mutex to allow chaff & main goroutine to both input to server.
TODO: smart chaff, mutating or mimicking recent input.
2018-05-01 02:39:45 -07:00
Russ Magee
8162707ffa - got term resizing working (client SIGWINCH signals -> server_pty(rows,cols) 2018-04-28 19:28:37 -07:00
Russ Magee
50f0433579 -Added error checking for all stages of hkex.Conn.Accept() and GetStream()
-Server will log such errors without panic/exit
-Const added but not yet used for 'chaff' packets
2018-04-28 16:05:33 -07:00
Russ Magee
351f58b6c5 misc. cleanup, LICENSE.{gpl,mit} updates 2018-04-07 13:04:10 -07:00
Russ Magee
5da70447b0 MSYS+mintty support; pkg renaming to hkexsh 2018-04-04 15:43:27 -07:00