Christophe De La Fuente
dba4c25a18
Fix #check_compatibility
2022-05-17 17:04:47 +02:00
Christophe De La Fuente
fb85d060ec
Update TaskScheduler after first review
...
- Now, it exposes 4 methods to manage scheduled tasks: `#task_create`,
`#task_start`, `#task_delete` and `#task_query`
- Adds `#check_compatibility` to check the OS version and make sure
`schtasks.exe` and `reg.exe` options are compatible
- Adds `#log_and_print`to print log messages on the console (using
`vprint_*` methods) and in the MSF logs at the same time
- `#get_system_privs` now takes care of checking if the session is a
Meterpreter session and if it has loaded the appropriate extension
- Adds `#run_one_off_task` to run a command on a remote host by using
another scheduled task
- Adds `#add_reg_key_value` to restores the Security Descriptor registry
key value to unhide the task
2022-05-17 14:52:47 +02:00
Christophe De La Fuente
c37387de78
Add #cmd_exec_with_result in lib/msf/core/post/common.rb
2022-05-17 14:52:47 +02:00
Christophe De La Fuente
14cd7bc335
Add task scheduler mixin and update persistence_exe and vss_persistence modules
2022-05-17 14:52:47 +02:00
Spencer McIntyre
19a9ff1198
Update a couple of modules for the new SMB server
2022-05-16 14:39:45 -04:00
Spencer McIntyre
e0b9002238
Fix an SMB relay bug
2022-05-16 14:39:45 -04:00
Spencer McIntyre
f14f8da1df
Use the new thread_factory
2022-05-16 14:39:45 -04:00
Spencer McIntyre
b79b550d6c
Centralize the log adapter
...
This should eventually be updated to map the levels to the framework
logger and appropriate module-print_* function.
2022-05-16 14:39:45 -04:00
Spencer McIntyre
7c15b144c4
Update the SMB capture server
2022-05-16 14:39:44 -04:00
Spencer McIntyre
22993e910e
Move server code into the server mixin
2022-05-16 14:39:44 -04:00
Spencer McIntyre
c39fd87073
Finish removing unneeded server code
2022-05-16 14:39:44 -04:00
Spencer McIntyre
475f6eee8c
Capture hash when serving files over SMB
2022-05-16 14:39:44 -04:00
Spencer McIntyre
d740786211
Add the on_client_connect callback
...
Also update the group_policy_startup module.
2022-05-16 14:39:44 -04:00
Spencer McIntyre
317516d90f
Enable guest access
2022-05-16 14:39:44 -04:00
Spencer McIntyre
882bcf08f7
Fix bugs when stopping the service
2022-05-16 14:39:44 -04:00
Spencer McIntyre
09dc65eb6a
Remove the FILE_CONTENTS datastore option
...
None of the 14 modules use this option, they all deregister it.
2022-05-16 14:39:44 -04:00
Spencer McIntyre
63af7cdef7
Initial update to the RubySMB share server
2022-05-16 14:39:44 -04:00
Spencer McIntyre
013a819cff
Out with the old
2022-05-16 14:39:44 -04:00
Spencer McIntyre
879591f686
Land #16499 , Specify peer hostname for SNI
2022-05-16 14:21:57 -04:00
adfoster-r7
0196b6fa75
Land #16555 , move duplicated retry_until_truthy code into centralized location
2022-05-16 18:31:57 +01:00
adfoster-r7
db694efd36
Improve relative redirect handling
2022-05-16 12:03:24 +01:00
Grant Willcox
1959dac1df
Reformat comments a bit and fix a typo.
2022-05-13 19:14:00 -05:00
Spencer McIntyre
cb26d02518
Treat space = 0 as a special case
...
Space = 0 is a special case implying that the smallest payload possible
should be used. It's used by msfvenom when the --smallest flag is set.
It should not cause Metasploit to raise an exception.
Fixes #16471
2022-05-13 16:18:08 -04:00
Spencer McIntyre
1aceb71971
Rename the function to emphasize truthy
2022-05-13 09:16:01 -04:00
Spencer McIntyre
3d37f2f811
Change the timeout value to be nil
2022-05-13 09:14:23 -04:00
adfoster-r7
739c0fcad1
Specify peer hostname for ssl connections
2022-05-13 13:55:43 +01:00
dwelch-r7
c0c02e56ba
Land #16430 , Improve kerberos user enum module
2022-05-13 12:17:26 +01:00
adfoster-r7
6a1fe27406
Land #16442 , add vars_form_data to the HTTP client
2022-05-13 10:53:16 +01:00
h00die
d05e855fab
juniper lib updates
2022-05-12 15:16:07 -04:00
h00die
f87f2c0a20
formatting of juniper lib
2022-05-12 15:15:11 -04:00
Metasploit
93a7ae26a1
Bump version of framework to 6.1.43
2022-05-12 12:06:21 -05:00
Spencer McIntyre
05fcbd803e
Add a new Retry mixin
2022-05-11 15:41:37 -04:00
adfoster-r7
e4f42d7eaa
Update more modules to use the vars_form_data api
2022-05-11 18:18:21 +01:00
adfoster-r7
94e1ad3fe5
Update form data api defaults
2022-05-10 14:12:17 +01:00
Spencer McIntyre
eb03c9f131
Add the powershell adapters
2022-05-09 11:55:57 -04:00
Spencer McIntyre
ba9b330f79
Fix merging arrays for adapted payloads
2022-05-09 11:55:57 -04:00
Spencer McIntyre
8206c24f4c
Account for dynamic cached sizes in Windows payloads
2022-05-09 11:55:57 -04:00
adfoster-r7
0ce36f318e
Move logic into client_request for consistency
2022-05-09 16:51:15 +01:00
h00die
6f6e7718dd
nfs mount more intelligent
2022-05-08 11:35:59 -04:00
adfoster-r7
b4ca6870f1
Land #16542 , Fix nil channel id when trying to close channels
2022-05-06 19:03:15 +01:00
sjanusz
cef38fb714
Fix nil channel id when trying to close channels
2022-05-06 17:09:36 +01:00
sjanusz
2e59f17439
Rename files to form_data
2022-05-06 16:41:19 +01:00
adfoster-r7
3b1792f436
Land #16529 , Expose options for logging to a file in mettle
2022-05-06 15:29:00 +01:00
dwelch-r7
1f4ee19c05
Expose options for logging to a file in mettle
2022-05-06 14:36:55 +01:00
adfoster-r7
6b21c9995c
Update zeitwerk to ignore go pkg folder
2022-05-06 12:35:43 +01:00
adfoster-r7
94580793a3
Land #16533 , Fix -w option flag for meterpreter reg command
2022-05-06 10:49:46 +01:00
Redouane NIBOUCHA
90937e6daa
Address feedback from space-r7
2022-05-06 00:31:20 +02:00
Grant Willcox
3e5c8d6d4b
Land #16538 , Update meterpreter encryptor loader to support python 3.4
2022-05-05 14:09:10 -05:00
Grant Willcox
0a86d07014
Land #16491 , Fix crashes on timeouts for multiple modules and Meterpreter
2022-05-05 13:34:29 -05:00
adfoster-r7
e7db0aec99
Update meterpreter encryptor loader to support python 3.4
2022-05-05 19:18:20 +01:00