adfoster-r7
c436f42c8c
Land #16994 , Fix Multiple Registry Related Issues
2022-09-27 11:43:02 +01:00
Spencer McIntyre
d82774be59
Test and handle REG_QWORD
2022-09-20 16:31:54 -04:00
Spencer McIntyre
2654752585
Fix REG_EXPAND_SZ correctly
2022-09-20 16:31:47 -04:00
Grant Willcox
98aea3f2ae
Land #17002 , Msf::Post::Windows: Replace load_extapi with ExtAPI capability check
2022-09-20 13:29:45 -05:00
Grant Willcox
38ab0c6ddd
Redo guard clauses to be more appropriate
2022-09-20 12:23:25 -05:00
Grant Willcox
f19cc376d7
Add additional guard checks to libraries to handle edge cases introduced when using shell sessions or other sessions that don't support RailGun. Also import the command definitions so that non-Meterpreter sessions can actually check the command ID's.
2022-09-20 11:45:31 -05:00
bwatters
88f14950a0
Land #16688 , Add Mimipenguin
...
Merge branch 'land-16688' into upstream-master
2022-09-19 12:43:16 -05:00
cgranleese-r7
55119aaac7
Land #16940 , Rewrite datastore, and add support for option fallback lookups
2022-09-16 14:19:19 +01:00
adfoster-r7
3a281234df
Add feature flagged datastore rewrite, with support for option fallback lookups
2022-09-16 12:59:02 +01:00
bcoles
d476a64262
Msf::Post::Windows: Replace load_extapi with ExtAPI capability check
2022-09-16 00:10:00 +10:00
bcoles
12e68a05c5
Post::Windows::LDAP: Replace load_extapi with ExtAPI capability check
2022-09-11 22:11:30 +10:00
Grant Willcox
3e8fbb665f
Move meterpreter_service_list to be a private method to align with expectations of when function will be used and to prevent need for adding additional validation code
2022-09-09 12:25:21 -05:00
Grant Willcox
e4c7cadc86
Add RuboCop documentation for meterpreter_service_list
2022-09-09 12:25:08 -05:00
Grant Willcox
51b6d0b596
Tidy up code and fix up some edge cases on data validation.
2022-09-08 16:01:04 -05:00
bcoles
fa087768ef
Msf::Post::Windows::Service: Multiple bug and consistency fixes
...
* Define service types as constants.
* Ensure service startup type is always returned as Integer.
* Check for supported stdapi commands, rather than attempt to load ExtAPI if it is not already loaded.
* Fix a threading issue for Meterpreter sessions when ExtAPI was not loaded, causing inconsistent results with some services missing sometimes.
* Include interactive services (0x110 and 0x120) in service listing.
* Support service listing and service information retrieval for non-Meterpreter sessions.
2022-09-08 16:01:03 -05:00
bwatters
9b76ecf6c7
Land #16952 , Add methods to retrieve domain / domain controller
...
Merge branch 'land-16952' into upstream-master
2022-09-08 08:27:55 -05:00
Spencer McIntyre
e75429a434
Handle nil from shell_registry_getvalinfo
2022-09-07 11:19:56 -04:00
Spencer McIntyre
f37fdb994c
Fix handling non-existant keys for Powershell
...
Powershell returns an empty string instead of `Error:` so when the
response doesn't match the expected pattern, treat it as not existing
and return nil. This is probably for the best since the string `Error:`
may be different on systems with a none English based locale.
2022-09-07 09:48:01 -04:00
Spencer McIntyre
fb23d492a9
Fix shell registry commands
...
This fixues up the commands to pass the unit tests and addresses a few
inconsistencies.
2022-09-06 16:53:36 -04:00
Grant Willcox
ee664c42ac
Fix logic error in mssql.rb
2022-09-06 13:07:39 -05:00
Grant Willcox
c28d172134
Fix review comments
2022-09-02 21:01:05 -05:00
Grant Willcox
f99b3bedf0
Convert optional arguments into keyword arguments to allow positioning to be changed without affecting code
2022-09-02 21:01:02 -05:00
Grant Willcox
096cae81d5
Make initial changes to mssql.rb to support username, password and database specifications
2022-09-02 21:01:02 -05:00
space-r7
89a6b9e5dd
Land #16869 , cleanup file_remote_digest* methods
...
also add util option for remote file hashing
2022-08-29 13:41:23 -05:00
Spencer McIntyre
d5926df2c1
Land #16900 , Add kill_process(pid) method
2022-08-29 14:34:16 -04:00
bcoles
15558fe27a
Post::Windows::Accounts: Add get_domain_name method
2022-08-28 23:13:18 +10:00
bcoles
6471ffb225
Post::Windows::Accounts: Add get_primary_domain_controller method
2022-08-28 23:12:15 +10:00
bcoles
d457ac768d
Post::Windows::Accounts: Fix domain_controller? for low priv sessions
2022-08-28 23:10:41 +10:00
bcoles
5407a63c1e
Msf::Post::Process: Add kill_process(pid) method
2022-08-26 15:01:12 +10:00
Christophe De La Fuente
158da155d3
Land #16898 , Msf::Post::Windows::Accounts: Add domain_controller? method
2022-08-23 20:16:29 +02:00
bcoles
7e055a2512
Msf::Post::Windows::Accounts: Add domain_controller? method
2022-08-20 12:16:26 +10:00
bcoles
b49e480c53
Msf::Post::File.file_remote_digest[md5|sha1]: Print session.fs.file errors
2022-08-13 15:06:57 +10:00
bcoles
e99783f329
Post::Windows::Registry.normalize_key: Return hive without trailing slash
2022-08-07 21:50:58 +10:00
bcoles
44ef271623
Post::Windows::Registry.shell_registry_getvalinfo: Fix reg value parsing
2022-08-07 15:31:54 +10:00
bcoles
bb22c81c8b
Post::Windows::Registry.normalize_key: Remove $blab global variable
2022-08-07 14:40:55 +10:00
bcoles
703cc872d4
Msf::Post::File.file_remote_digest[md5|sha1]: Add :util to set hash utility
2022-08-06 19:15:30 +10:00
bcoles
50a2127f3c
Msf::Post::File.file_remote_digest[md5|sha1]: Remote hashing for PS sessions
2022-08-06 18:56:39 +10:00
bcoles
7d71bf6875
Msf::Post::File.file_remote_digest[md5|sha1]: Use Meterpreter hash methods
2022-08-06 17:42:11 +10:00
bwatters
163d4d5b11
Land #16854 , Add CVE-2022-31660 VMware Workspace ONE Access LPE
...
Merge branch 'land-16854' into upstream-master
2022-08-03 16:50:12 -05:00
Jack Heysel
2433cccde5
Land #16840 , updates read_profile_list
...
This removes some Meterpreter-only method calls, which
allows non-Meterpreter sessions to use read_profile_list
and load_missing_hives. This also changes read_profile_list
to be able to read profile information for all accounts.
2022-08-03 11:46:44 -04:00
bcoles
e2973b0c2e
Post::Windows::UserProfiles: read_profile_list: Add :user_accounts_only option
2022-07-31 21:04:05 +10:00
bcoles
a4a2b6e6db
Post::Windows::UserProfiles: Use Msf::Post::File mixin
2022-07-31 20:11:25 +10:00
bcoles
98449b6ce6
Post::Windows::Registry: Fix shell_registry_[enumvals|getvaldata] error check
2022-07-31 18:14:33 +10:00
bcoles
8a22ec8da8
Msf::Post::Windows::Priv: Fix is_admin? / is_system? for shell sessions
2022-07-28 02:55:01 +10:00
space-r7
065fe425d3
pass in read permissions to process_open()
2022-07-01 13:05:38 -05:00
space-r7
8094c67465
switch to hash, reorder args
2022-07-01 13:05:38 -05:00
Shelby Pace
722241ed3e
Update lib/msf/core/post/linux/process.rb
...
Co-authored-by: Spencer McIntyre <58950994+smcintyre-r7@users.noreply.github.com >
2022-07-01 12:56:44 -05:00
Shelby Pace
6ffd9a8cfa
Update lib/msf/core/post/linux/process.rb
...
Co-authored-by: Spencer McIntyre <58950994+smcintyre-r7@users.noreply.github.com >
2022-07-01 12:56:44 -05:00
space-r7
69342f5431
add docs and mixin
2022-07-01 12:56:43 -05:00
Christophe De La Fuente
0e3fdd0799
Fix from code review
2022-06-29 19:18:47 +02:00