Commit Graph

140 Commits

Author SHA1 Message Date
space-r7 184795513f Land #15831, add more ssh session support 2021-12-16 15:39:55 -06:00
Grant Willcox 5c2afd6750 Land #15882, Prevent payloads being used if can't clean up files 2021-12-16 15:05:27 -06:00
Tim W 80e2559f0f Fix #15912, handle unmatched double quote on command shell sessions 2021-11-28 11:51:18 +00:00
Ashley Donaldson f54f03fc92 Prevent payloads being used if can't clean up files 2021-11-17 15:40:16 +11:00
Spencer McIntyre 726c5f26e3 SSH session consistency with auto-platform IDing 2021-11-12 16:03:27 -05:00
William Vu 3e168149ca Increase AutoVerifySession timeout for PSH shells
The sweet spot is five seconds, which is also the default.
2021-10-14 16:58:04 -05:00
Christophe De La Fuente d3eff6fc14 Land #15600, Fixes issues with encrypted payloads by moving session bootstrap logic 2021-09-23 16:14:10 +02:00
A Galway cae29ccc2e PR Cleanup 2021-09-23 11:56:34 +01:00
A Galway 81a86379d7 handles unverified shells & warns db/mingw not installed 2021-09-10 17:56:08 +01:00
Ashley Donaldson 16af8ad028 Honour the timeout parameter for reading from the shell 2021-09-10 22:39:27 +10:00
Ashley Donaldson 12546865de Support Ctrl+C now we're using Command Shell rather than Powershell 2021-09-10 18:15:43 +10:00
A Galway 4a3fb6920e adds cmd_shell initial output reading to bootstrap 2021-09-09 16:34:21 +01:00
Spencer McIntyre b85031ff6a Fallback to Python3 in sshexec when it's available 2021-06-18 13:35:23 -04:00
Gaurav Purswani 379b0825b3 Merge branch 'master' into separate_session_history 2021-05-27 20:20:01 +05:30
Spencer McIntyre 0ea33ffee0 Consolidate session and shell context changes 2021-05-27 20:08:14 +05:30
Spencer McIntyre f2b69a559b Add and use a #with_context method 2021-05-27 20:08:09 +05:30
pingport80 eed82f5d17 add 'name' key to history contexts 2021-05-27 20:02:48 +05:30
pingport80 26f4d66897 add history_manager support for meterpreter 2021-05-27 20:02:38 +05:30
pingport80 ae74c44436 add history manager and fix pry history issue using that 2021-05-27 20:02:28 +05:30
dwelch-r7 a3a6c1b903 Land #15000, remove which command in binary_exists? method
remove `which` command in binary_exists? method
2021-04-30 11:24:11 +01:00
pingport80 cdcff2f0b2 fix msftidy err 2021-04-23 15:53:51 +05:30
pingport80 c2f145af89 add locale independent check 2021-04-23 14:32:10 +05:30
Gaurav Purswani b1a73c888e Update lib/msf/base/sessions/command_shell.rb
Co-authored-by: acammack-r7 <adam_cammack@rapid7.com>
2021-04-22 19:10:56 +05:30
Spencer McIntyre 69c525c2f7 Update the minimum WfsDelay setting
Now there's a minimum WfsDelay of 3 seconds with the user-configurable
value being added to it.
2021-04-20 13:05:37 -04:00
Spencer McIntyre c886af2e6d Allow disabling shell session verification 2021-04-15 10:33:42 -04:00
Spencer McIntyre 99308d896b Refactor calling process_autoruns into the handler to be consistent 2021-04-15 09:07:12 -04:00
Spencer McIntyre ae7a5c7116 Automatically validate shell sessions too 2021-04-15 08:54:50 -04:00
pingport80 f9c27a5808 added which in case command fails 2021-04-08 23:16:19 +05:30
Gaurav Purswani da6c575966 Update command_shell.rb 2021-04-06 08:34:56 +05:30
Gaurav Purswani aa12afaf0a Update command_shell.rb 2021-04-06 08:27:56 +05:30
Gaurav Purswani de34d91144 Update lib/msf/base/sessions/command_shell.rb
Co-authored-by: bcoles <bcoles@gmail.com>
2021-04-06 08:15:13 +05:30
pingport80 cd796816b5 removed false as an indicator 2021-04-05 11:06:39 +05:30
pingport80 d8b884044e fix indentation 2021-04-04 15:39:25 +05:30
pingport80 a94cca8e5c changed comment and added single quote 2021-04-04 15:31:02 +05:30
pingport80 c24b6f1ee7 removed to which in binary_exists 2021-04-04 13:35:11 +05:30
dwelch-r7 b95be3ed10 Zeitwerk rex folder 2021-02-08 12:24:12 +00:00
dwelch-r7 d437a32374 remove msf/util requires 2021-01-18 14:21:54 +00:00
dwelch-r7 c0912b358c Fix tests 2021-01-05 16:20:42 +00:00
dwelch-r7 bad5ccbc49 Remove msf/base requires 2021-01-05 14:59:46 +00:00
dwelch-r7 0a87386c49 Add base folder to autoloader 2021-01-05 13:07:53 +00:00
CSharperMantle d99c2ac783 linguistic fixes of 'does not exists' 2020-12-23 11:36:38 +08:00
dwelch-r7 3a94d4f7ee Add a require for command shell options to fix randomly failing tests
Temporary until we zeitwerk more things
2020-12-10 10:56:54 +00:00
Reelix f5a85890fd Update command_shell.rb
- Implement changes suggested by @smcintyre-r7
2020-08-31 21:16:33 +02:00
Reelix b9db589105 Update command_shell.rb
- Converted a missed tab to spaces
2020-08-30 09:48:19 +02:00
Reelix b61a5e5f75 Update command_shell.rb
- Fixed spacing (Tabs VS Spaces)
2020-08-30 09:45:38 +02:00
Reelix e2a008eade Update command_shell.rb
- Improved path detection
- Check for bash with python / python3 and use it if it exists
- Minor grammatical improvements
2020-08-30 09:22:25 +02:00
Brendan Coles 032a99d84a to_s - Fix #12345 2019-10-05 10:11:31 +00:00
Brendan Coles c3b7d0155a Cast to_s - Fix #11725 2019-07-26 23:48:37 +00:00
William Vu 7a1b11b1b8 Support command-specific help command 2019-03-12 19:08:32 -05:00
William Vu e46893bfbd Split command using Shellwords.shellwords 2019-03-12 13:34:51 -05:00