Commit Graph

17890 Commits

Author SHA1 Message Date
agalway-r7 4bf4b5a2fc Land #15312, makes RHOST & RHOSTS interchangeable
Add rhost alias to rhosts option
2021-06-08 17:55:45 +01:00
Alan Foster 0b9691bd9d Add rhost alias to rhosts option 2021-06-08 15:01:09 +01:00
agalway-r7 66de4deabf Land #15264, JSON RPC's servlet helper returns hash with symbolized keys 2021-06-08 11:51:19 +01:00
Grant Willcox 06159ddfb9 Land #15296, Enhance command_exists? method so that it falls back on which in case the command command fails 2021-06-07 14:42:41 -05:00
Grant Willcox 772027464c Land #15257, Fix A Meterpreter Compatibility Error Message 2021-06-07 12:27:23 -05:00
Grant Willcox 51e06965d9 Fix minor errors with RuboCop that were undone during the last change 2021-06-07 12:26:40 -05:00
Spencer McIntyre 1d003e9dee Land #15293, Redis extractor improvements 2021-06-04 10:23:07 -04:00
Jeffrey Martin 3c80a014d9 Land #15290, Stop raising a RuntimeError 2021-06-04 08:14:15 -05:00
Metasploit e369216983 Bump version of framework to 6.0.48 2021-06-03 12:04:31 -05:00
pingport80 1d47d9e3a4 remove pid() method from post/linux/priv.rb 2021-06-03 21:29:56 +05:30
pingport80 42ce2ae48b enhance command_exists? method 2021-06-03 20:54:25 +05:30
agalway-r7 87d69c7553 Land #15263, adds payload flag to analyze 2021-06-03 16:03:46 +01:00
Ashley Donaldson 3920c0873c Fix bugs in redis_extractor module
- Long values were truncated because the network didn't pull enough data, so parsing failed
- Race condition if value was deleted between scan and retrieval of value
- Also support retrieving a subset of keys (e.g. it stores session IDs, there are thousands of them and we only need a few)
2021-06-03 11:54:02 +10:00
Spencer McIntyre 741570ed6b Stop raising a RuntimeError for invalid commands 2021-06-02 17:06:34 -04:00
Jeffrey Martin 57621d7f5f Land #15289, Fix a typo in a Meterpreter command requirement 2021-06-02 15:22:36 -05:00
Spencer McIntyre e5755076ca Fix a typo in a Meterpreter command requirement 2021-06-02 13:55:50 -04:00
Spencer McIntyre 74e324e8c1 Land #15260, Add #pidof to Msf::Post::Process
Add the #pidof method to Msf::Post::Process and update #get_processes to
fallback to the shell version if it fails for some reason.
2021-06-01 09:53:08 -04:00
pingport80 fe8e586b22 fall to shell when meterpreter fails get_processes
shift `pidof` to `Msf::Post::Process`
2021-06-01 18:51:39 +05:30
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
adfoster-r7 73b269cf7e Land #15225, cookie jar cleanup 2021-06-01 10:49:56 +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
Metasploit 27a6810d35 Bump version of framework to 6.0.47 2021-05-27 15:14:16 -05:00
Spencer McIntyre c6a499ef9a Add more detail to missing feature error messages 2021-05-27 11:41:12 -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
Alan Foster cfc7db8501 Update JSON RPC servlet helper to symbolize params object 2021-05-26 17:31:16 +01:00
Alan Foster 814e510e17 Fix unit tests 2021-05-26 15:30:23 +01:00
Spencer McIntyre 3ff2d5a307 Check if a missing command is a core command 2021-05-25 17:34:13 -04:00
Spencer McIntyre 64eeedf218 Land #15246, Refactor as Msf::Post::Process 2021-05-25 13:07:21 -04:00
cgranleese-r7 942b2fc074 Land #15241, Remove initial rhost http url implementation 2021-05-25 11:59:11 +01:00
Jeffrey Martin f7963106b6 refactor Msf::Post::Process 2021-05-24 18:43:02 -05:00
Jeffrey Martin 0cefd8eaa6 refactor post API for process lists 2021-05-24 18:39:16 -05:00
Jeffrey Martin a93813476c Land #15199, into refactor of Msf::Post:Process 2021-05-24 18:36:55 -05:00
Spencer McIntyre 97ca76038a Revert "Land #15199, Improve the get_processes API"
This reverts commit 0203989821, reversing
changes made to 0ca3dbc831.
2021-05-24 18:21:12 -04:00
Spencer McIntyre 0203989821 Land #15199, Improve the get_processes API 2021-05-24 17:17:16 -04:00
Shelby Pace 9f2dae38c8 Land #15079, add meterpreter compat requirements 2021-05-24 16:00:08 -05:00
Spencer McIntyre 525bdb409b Address some style things in #get_processes 2021-05-24 13:43:55 -04:00
Alan Foster d12a82eb7d Disable wrapped table support for the loot command 2021-05-24 00:37:41 +01:00
Alan Foster c84b651ca6 Remoce initial rhost http url attempt 2021-05-24 00:31:09 +01:00
Gaurav Purswani 5eeb04b627 Update common.rb 2021-05-23 19:21:00 +05:30
pingport80 57275ee54c guards against nil at various places 2021-05-23 18:47:22 +05:30