Commit Graph

5658 Commits

Author SHA1 Message Date
Spencer McIntyre 556703b181 Pass opts forward through the ws functions 2021-09-30 16:06:49 -04:00
Spencer McIntyre 55edd86810 Synchronize access when reading WebSocket frames 2021-09-29 17:55:05 -04:00
Spencer McIntyre 1aa4bc4f66 Raise exceptions WebSocket connection failure 2021-09-29 17:55:05 -04:00
Spencer McIntyre 2db5764700 Add WebSocket frame and opcode specs, fix bugs 2021-09-29 17:55:05 -04:00
Spencer McIntyre ac319e730b Document the new WebSocket functionality 2021-09-29 17:55:05 -04:00
Spencer McIntyre d230090e0d Add a WebSocket channel 2021-09-29 17:55:05 -04:00
Spencer McIntyre c0635a0532 Add a wsloop that handles frags, pings and closes 2021-09-29 17:55:05 -04:00
Spencer McIntyre 7e8afcdaf6 Add a WebSocket implementation for Rex 2021-09-29 17:55:05 -04:00
Spencer McIntyre 0887188e12 Synchronize the initsock routine
This prevents the socket from being closed while negotiating SSL
2021-09-29 11:13:31 -04:00
Spencer McIntyre a5a5bfcbad Support pivoted SSL client channels 2021-09-29 11:13:31 -04:00
Tim W 4289c8b3ea Land #15441, add date filtering to stdapi_fs_search 2021-09-28 15:55:43 +01:00
adfoster-r7 06762d0934 Update references to railgun to be consistent 2021-09-27 12:37:14 +01:00
Spencer McIntyre ca6f957de0 Land #15632, Winrm improvements 2021-09-21 16:43:24 -04:00
dwelch-r7 7856a88790 Land #15684, Improve interactive shell performance for pasted user input 2021-09-21 11:43:24 +01:00
adfoster-r7 9574100760 Improve interactive shell performance 2021-09-17 11:43:28 +01:00
Ashley Donaldson 91d0a6cc55 Re-auth after the session times out
This seems to happen after 8 hours. WinRM doesn't like having bodies
in the authentication requests, so we force the HTTP client to send
an empty one first
2021-09-17 07:32:18 +10:00
Tim W 27e09e0898 fix #15662, fix meterpreter download of utf8 filenames 2021-09-14 14:30:10 +01:00
Ashley Donaldson cf09d56be0 Support re-authentication during the shell
After 8 hours, the server requests re-authentication, so need to support that.
2021-09-10 07:41:31 +10:00
Tim W 9d2065fee5 cleanup 2021-09-09 10:02:22 +01:00
Ashley Donaldson 2f0509f2b5 Modified shell to a PowerShell shell
This also resolves a bug with the session not upgrading to meterpreter
2021-09-08 08:19:43 +10:00
Ashley Donaldson e6dba1a84a Ignore channel binding on HTTP 2021-09-07 10:58:18 +10:00
Ashley Donaldson ea0925f877 Support Extended Protection for Authentication 2021-09-07 10:31:01 +10:00
test 044a9d3ad2 Clarified variable names 2021-09-06 15:46:05 -04:00
Ashley Donaldson 0e103e8550 Enabled encryption for WinRM when using Negotiate auth 2021-09-06 22:25:34 +10:00
adfoster-r7 50330c1559 Land #15522, Add feature flagged support for fully interactive Meterpreter shells 2021-09-03 14:24:41 +01:00
dwelch-r7 310f2fb86f Add warning for trying to use fully interactive shells without a pty 2021-09-02 15:22:35 +01:00
dwelch-r7 ef0d68cb8e Land #15572, Correctly handle quoted console options and whitespace 2021-09-02 12:55:39 +01:00
Spencer McIntyre 10cabf336e Land #15628, Refresh session info
Fixes #15615
2021-09-01 10:01:15 -04:00
dwelch-r7 84003678af Adhere to SYS_PROCESS naming convention 2021-09-01 13:00:39 +01:00
dwelch-r7 a4d7035214 Adhere to SYS_PROCESS naming convention 2021-09-01 12:58:45 +01:00
adfoster-r7 ded8200396 Land #15537, Add support for ruby 3 2021-09-01 10:30:54 +01:00
dwelch-r7 3c5501ea14 Add TLVs for terminal rows/columns 2021-08-31 18:53:16 +01:00
Tim W a537791585 Fix #15615, refresh session info on manual load of stdapi 2021-08-31 15:46:30 +01:00
Tim W 68194cb8af Fix #15615, refresh session info after running meterpreter > sysinfo 2021-08-31 15:16:17 +01:00
space-r7 8b8d138812 Land #15496, specify SSLVersion for servers 2021-08-26 10:57:11 -05:00
adfoster-r7 89ab189a87 Add quick fix for alias tab completion; Aliases most likely needs to be implemented differently 2021-08-25 19:58:54 +01:00
dwelch-r7 1d26885b34 Fix typo 2021-08-24 11:46:31 +01:00
dwelch-r7 d3c14d3cd6 Address review comments 2021-08-23 16:25:59 +01:00
adfoster-r7 5837ceb03d Escape paths and perform consistent autocompletion of quoted strings 2021-08-23 12:07:45 +01:00
adfoster-r7 ef6c743452 Correctly handle quoted console options and whitespace 2021-08-23 12:07:40 +01:00
dwelch-r7 d98896564d limit raw mode to pty shells only 2021-08-18 15:08:00 +01:00
dwelch-r7 dd43265776 Change set_term_size to be a stdapi command 2021-08-18 15:08:00 +01:00
dwelch-r7 669caaf7a6 Rework interactive meterpreter shells feature flag 2021-08-18 15:07:59 +01:00
dwelch-r7 62d6fd7745 lock fully interactive shell behind feature flag 2021-08-18 15:07:59 +01:00
dwelch-r7 ae90c86333 Meterpreter interactive shell 2021-08-18 15:07:59 +01:00
Tim W f33bd8bb83 Land #15540, fix linux/macos meterpreter shell -t subshell command 2021-08-16 14:08:06 +01:00
adfoster-r7 e41406d478 Patch meterpreter scripts to work again 2021-08-11 15:42:27 +01:00
dwelch-r7 3b77f4a748 Add option for running cmd_execute in a subshell 2021-08-11 12:05:22 +01:00
Alan Foster 03400991af Update uses of open ssl 2021-08-10 15:40:23 +01:00
Jeffrey Martin 8d66913c00 guard hrr_rb_ssh from zeitwerk eager loading
if/when eager loading is enabled any class or top level require
will be exercised during the process.  Since the ruby builtin PTY
does not function in Windows, defer requires that inveract with symbols
in the `hrr_rb_ssh` gem to ensure they load only during runtime.
2021-08-09 12:22:13 -05:00