Jeffrey Martin
f779f0f482
consolidate the config directory lookups
...
The user configuration directory can be overridden via environment
variables or configuration files.
In the current implementation `Msf::Config.config_directory` should be
utilized for consistent location reporting. `Msf::Config.get_config_root`
is reserved to generation of a default location and should be considered
`private` as it ignores some injected configuration options. Currently
autoloading does not allow application of the `private` keyword to this method,
requiring guidance during development that module writers should access the
full configured `user` value of `Msf::Config.config_directory`.
2022-07-25 15:27:21 -05:00
dwelch-r7
1f4ee19c05
Expose options for logging to a file in mettle
2022-05-06 14:36:55 +01: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
bbd881f999
Fix crashes on timeouts
2022-05-04 09:43:00 +01:00
dwelch-r7
2e44a91b39
Refactor debugging config options to a common location
2022-04-29 15:04:12 +01:00
dwelch-r7
aca1b8df9b
Use debug versions of extensions if MeterpreterDebugBuild is enabled
2022-04-13 14:10:57 +01:00
sjanusz
fc73498919
Add debug option to Python Meterpreter
2022-04-12 10:54:26 +01:00
dwelch-r7
a82c936613
Land #16373 , Add initial ruby 3.1 support
2022-04-07 16:44:02 +01:00
dwelch-r7
647463b5ad
Use updated payloads gem and refactor debug option
2022-04-01 11:20:22 +01:00
adfoster-r7
76ede9ef8f
Add ruby 3.1 support
2022-03-24 21:59:02 +00:00
sjanusz
d99d14eaa8
Defer TLV logging until session is bootstrapped
2022-03-07 15:47:49 +00:00
sjanusz
a2fadf0606
Init logging on meterpreter's init, add option to change log file
2022-03-04 14:21:00 +00:00
sjanusz
2b281dce5c
Add support for Java Meterpreter's native_arch
2022-02-11 11:43:35 +00:00
Grant Willcox
397e3aa1c6
Land #16090 - Add in user_data_directory function
2022-01-26 09:31:52 -06:00
Spencer McIntyre
12431d8479
Add a client reader for SSH server channels
2022-01-24 14:41:59 -05:00
audibleblink
e445a39719
adds user_data_directory
2022-01-23 10:29:01 -05:00
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
adfoster-r7
3e1ba060a7
Land #15908 , add reload functionality to the save command
2021-12-08 04:27:04 +00:00
sjanusz
2b0cd6f169
Correct exception & save arg, inline deleting module config
2021-12-07 12:39:03 +00:00
sjanusz
eadf965e83
Add QoL features for loading, reloading and deleting saved options
2021-12-06 10:26:57 +00:00
Tim W
6a57ef4c65
run rubocop on changed files
2021-11-30 06:30:58 +00:00
Tim W
65e3e38721
fix powershell session info
2021-11-30 06:30:58 +00: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
5fdcdcaaa5
Delay rstream creation until the platform is known
2021-11-12 16:03:29 -05:00
Spencer McIntyre
726c5f26e3
SSH session consistency with auto-platform IDing
2021-11-12 16:03:27 -05:00
Spencer McIntyre
f1103baf1d
Support SSL TCP server channels in SSH
2021-11-12 09:05:17 -05:00
Ashley Donaldson
71d7e80529
Extend StreamServer to provide callbacks required by some modules
2021-10-25 12:38:45 +11:00
Ashley Donaldson
b9e3f1951d
Return immediately once the reverse listener is established
2021-10-25 12:38:45 +11:00
Ashley Donaldson
e9386add64
Handle race condition whereby a port forward succeeds after we've exceeded our timeout.
...
Neatly cleans up the port.
2021-10-25 12:38:45 +11:00
Ashley Donaldson
68a074231e
Use logging rather than printing
2021-10-25 12:38:44 +11:00
Ashley Donaldson
dba6ce56bc
Timeout is cursed - let's remove it
2021-10-25 12:38:44 +11:00
Ashley Donaldson
5a332b511e
Fixed rubocop errors
2021-10-25 12:38:44 +11:00
Ashley Donaldson
10421dcc08
Report peer info of connections to SSH reverse port forwards
2021-10-25 12:38:43 +11:00
Ashley Donaldson
99309bab29
Fix reliability issue with SSH reverse listener
2021-10-25 12:38:43 +11:00
Ashley Donaldson
fdfecdc8ff
Initial work on reverse pivoting through SSH
2021-10-25 12:38:42 +11:00
adfoster-r7
2f86b332f5
Land #15733 , Add Module For Kubernetes Pod Authenticated Code Execution
2021-10-21 10:46:20 +01: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
Grant Willcox
8b9b1092f6
Land #15706 , Display TCP forwarding information for sessions and jobs for reverse shells
2021-10-07 13:23:06 -05:00
Ashley Donaldson
ef8628f1ad
Avoid modifying payload_uri, which may be used elsewhere
2021-10-02 14:57:26 +10:00
bwatters
9dbb89119a
Land #15726 , Add MeterpreterTryToFork to the mettle payloads
...
Merge branch 'land-15726' into upstream-master
2021-09-30 11:56:48 -05:00
Spencer McIntyre
c53e223852
Add MeterpreterTryToFork to the mettle payloads
2021-09-30 10:07:43 -04:00
Spencer McIntyre
d230090e0d
Add a WebSocket channel
2021-09-29 17:55:05 -04:00
Spencer McIntyre
0887188e12
Synchronize the initsock routine
...
This prevents the socket from being closed while negotiating SSL
2021-09-29 11:13:31 -04:00
Spencer McIntyre
a5a5bfcbad
Support pivoted SSL client channels
2021-09-29 11:13:31 -04: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
Spencer McIntyre
ca6f957de0
Land #15632 , Winrm improvements
2021-09-21 16:43:24 -04:00
Ashley Donaldson
9d8193150f
Allow running a shell command separately to the currently interactive shell
2021-09-21 19:12:49 +10:00