Commit Graph

5658 Commits

Author SHA1 Message Date
Christophe De La Fuente 07c9350733 Land #15430, Support for SSH pivoting 2021-08-09 18:34:08 +02:00
Spencer McIntyre c43d55068c Add the SSLVersion datastore option for handlers
Requires rapid7/rex-socket#37 for the option to be honored.
2021-08-06 14:44:48 -05:00
test 97bef87197 Updated Output for clarity 2021-08-03 20:43:06 -04:00
test 0a749df4fe Made console messages clearer 2021-08-03 20:40:01 -04:00
test e926886e88 Updated search functionality. 2021-07-28 17:20:10 -04:00
Spencer McIntyre a13acf9647 Fix rubocop issues in channel files 2021-07-23 11:09:09 -04:00
cgranleese-r7 2844792484 Adds requires to support meterpreter_commands_dependencies.rb rubocop rule 2021-07-23 14:58:26 +01:00
test 6f43a06209 Add New TLV Structures 2021-07-17 09:28:22 -04:00
test a5b1b02197 Initial Ruby code support search_by_date 2021-07-17 09:14:05 -04:00
Grant Willcox b27676ca0a Land #15409, Improved PrintNightmare Check and DCERPC Library Bug Fixes 2021-07-16 08:54:42 -05:00
Spencer McIntyre 15268366e1 Fix a bug in how sockets are closed 2021-07-13 17:10:54 -04:00
Spencer McIntyre a3dd916949 Restore the original stub data for FAULT 2021-07-12 11:27:26 -04:00
Tim W 39455827aa Land #15254, use obfuscated powershell protection bypasses 2021-07-12 12:20:17 +01:00
Spencer McIntyre 8e98abe867 Fix DCERPC's read method for fragments
The DCERPC's read method would only read one fragment of data which
caused the response to be corrupted when the data wouldn't fit into
a single fragment.
2021-07-09 13:48:35 -04:00
Christophe De La Fuente 5a71e7b0ee Merge remote-tracking branch 'upstream/pr/15154' into HEAD 2021-07-09 15:32:04 +02:00
Gaurav Purswani 25d4a71ef8 Add rescue for load error in case pry gem is not present
Co-authored-by: Jeffrey Martin <jeffrey_martin@rapid7.com>
2021-07-02 08:11:27 +05:30
Gaurav Purswani ff7625ed7d Update lib/rex/ui/text/shell.rb
Co-authored-by: Jeffrey Martin <jeffrey_martin@rapid7.com>
2021-07-02 08:10:55 +05:30
Jeffrey Martin 9e447d33a5 ensure final history write 2021-07-01 09:19:45 -05:00
Jeffrey Martin 35189dbc9a reverse commands when pulled from queue 2021-07-01 08:17:42 -05:00
Gaurav Purswani 5115651f11 Update history_manager.rb 2021-07-01 16:58:00 +05:30
Spencer McIntyre 46a877678d Refactor some channel related Meterpreter code
This makes some of the channel related Meterpreter code accessible to
other locations in the framework which enables other sessions to also
support pivoting capabilities.
2021-06-30 09:25:25 -04:00
Spencer McIntyre 7bddaeb74f Add documentation for the new session 2021-06-30 09:00:13 -04:00
Jeffrey Martin e85a31c36a write new instead of append
Co-authored-by: Gaurav Purswani <43883877+pingport80@users.noreply.github.com>
2021-06-29 08:17:47 -05:00
Jeffrey Martin 8e716b56a9 adjust history context to thread file write
By moving writes to a thread and allowing short circuit when
a context is reloaded quickly this code can shorten the conditions
that would cause slow context transitions.  This also restricts
history length to a defined constant applied to each context.
2021-06-28 15:01:10 -05:00
Gaurav Purswani c7749fa2c3 Update lib/rex/ui/text/shell.rb
Co-authored-by: Spencer McIntyre <58950994+smcintyre-r7@users.noreply.github.com>
2021-06-28 19:35:19 +05:30
pingport80 b404c90830 disable pry history by default when used as break points 2021-06-25 20:35:52 +05:30
pingport80 1215ea2946 add rescue for interrupt 2021-06-25 16:21:22 +05:30
pingport80 1b816596bf update size to 2000 2021-06-23 23:49:13 +05:30
pingport80 8187a58549 add limit to size of history_files 2021-06-23 23:04:49 +05:30
Spencer McIntyre 626bbebde2 Remove the remaining mimikatz extension code 2021-06-16 09:10:34 -04:00
Spencer McIntyre 7f4ca31021 Fix a typo and add missing build tuples 2021-06-16 09:04:11 -04:00
Spencer McIntyre 582d64abe8 Add some documentation for the new code 2021-06-16 09:04:11 -04:00
Spencer McIntyre 2e07dc7686 Search extensions for missing Meterpreter commands 2021-06-16 09:04:11 -04:00
Spencer McIntyre 8f8337552a Suggest a Meterpreter payload for an extension 2021-06-16 09:04:11 -04:00
adfoster-r7 11fb9e8e87 Land #15194, Fix RPORT tab completion crash when connected to remote dataservice 2021-06-01 13:47:08 +01:00
A Galway 134e820322 removes obsolete has_host? usage 2021-06-01 12:02:58 +01:00
Spencer McIntyre 882c2722af Land #15251, Add file_stat to linux shell sessions 2021-05-28 14:54:57 -04:00
pingport80 d9989903f7 add stat for linux shell sessions
update file.rb and file_stat.rb

update file_stat.rb

fix Zeitwerk:NameError

upadte `setuid?` to use stat

Update lib/msf/core/post/file_stat.rb

Co-authored-by: Spencer McIntyre <58950994+smcintyre-r7@users.noreply.github.com>

add inheritance and change time conversions to integers

Update lib/msf/core/post/file.rb

Co-authored-by: Spencer McIntyre <58950994+smcintyre-r7@users.noreply.github.com>

add some checks

fix one error in `Rex::Post::FileStat`

add NotImplemented raise
2021-05-28 14:24:36 -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 675fbf8ab6 Use a #switch_context method in the HistoryManager 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
Spencer McIntyre ff1334ed14 Consolidate history management for sessions 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
pingport80 8eef55d5ce add separate history and history handler for meterpreter 2021-05-27 20:02:19 +05:30
Spencer McIntyre eddb6af650 Add block level randomization for the PSH bypass 2021-05-25 14:38:52 -04:00
Spencer McIntyre 38b45380f4 Fix and process block edges within the GraphML 2021-05-25 14:38:50 -04:00
Spencer McIntyre 4ab980b316 Update Shuffle to protect more of its API 2021-05-25 14:36:13 -04:00