sjanusz-r7
3c8f43e23e
Align SQL sessions peerhost and peerport
2024-03-04 13:11:32 +00:00
adfoster-r7
5fa1ce8ed2
Add support for newer sqlcmd versions
2024-02-12 11:51:02 +00:00
cgranleese-r7
0e9cad6d45
Adds MySQL session type
2024-02-02 14:39:37 +00:00
adfoster-r7
4d0ba2fa1d
Land #18742 , Memory search module improvements
2024-01-30 17:39:12 +00:00
sjanusz-r7
aac74778b9
Move memory search method to Meterpreter stdapi
2024-01-24 19:53:30 +00:00
sjanusz-r7
23a9938283
Add PostgreSQL session type
2024-01-19 10:29:37 +00:00
h00die
6a851855a8
spelling fixes for lib folder
2024-01-06 15:54:49 -05:00
Jack Heysel
3bad98afc6
Land #18488 , add kerberos_tickets post module
...
Adds a module to manage kerberos tickets from a compromised
host. This PR also includes rail gun enhancements.
2023-12-07 19:12:48 -05:00
Spencer McIntyre
7b76cc01f9
Add x86 support to windows/manage/kerberos_tickets
2023-10-27 12:47:19 -04:00
Spencer McIntyre
7e4e6edc2f
Fix a typo in the constant name
2023-10-27 12:47:19 -04:00
Spencer McIntyre
79a3e756b3
Add the ENUM_LUIDS action
2023-10-27 12:47:19 -04:00
Spencer McIntyre
7b4caf79f8
Move the code into libraries for reuse
2023-10-27 12:47:19 -04:00
Spencer McIntyre
5b5d5ade40
Free data using the new util API
2023-10-27 12:47:19 -04:00
sjanusz-r7
daa8b8ae99
Use Metasploit-Payloads Crypto to decrypt payloads
2023-10-13 14:42:10 +01:00
sjanusz-r7
b428736e03
Add support for injection of encrypted dll payloads
2023-10-13 14:42:10 +01:00
bwatters
a16379b2a7
Land #17919 , Post::Windows::Service: Support start/stop service on shell sessions
...
Merge branch 'land-17919' into upstream-master
2023-10-04 13:51:25 -05:00
h00die
d64ed33cdf
code spell for a bunch of modules
2023-09-24 17:42:00 -04:00
adfoster-r7
68ce65c6c9
Revert "Revert "Add Meterpreter sanity tests to CI""
2023-08-15 13:24:59 +01:00
adfoster-r7
cdbd591f07
Revert "Add Meterpreter sanity tests to CI"
2023-08-10 19:08:09 +01:00
adfoster-r7
d8dc189168
Add Meterpreter sanity tests to CI
2023-08-03 17:11:44 +01:00
Spencer McIntyre
396029a58e
Fix connectivity issues
...
The connection needs to slowly send data to the remote end for
stability. Additionally, the `exit` command should be issued when
closing the connction so it is reset back to the logon prompt.
2023-08-01 15:04:32 -04:00
Jack Heysel
4c73067dfe
Land #18104 , fix falsely caused empty file reads
...
This issue was happening frequently with the java metepreter.
The issue has been fixed and tested with test/file post module.
2023-06-22 13:07:19 -04:00
Ashley Donaldson
2a3cac051f
Suggestion from code review
2023-06-19 07:53:46 +10:00
Ashley Donaldson
381d291da9
Use revision in MSF modules
2023-06-16 10:07:35 +10:00
Ashley Donaldson
ddbd24554d
Take into account Windows 10 revision number
2023-06-16 06:50:39 +10:00
adfoster-r7
552b76aa8f
Initialize to an empty string
2023-06-15 01:44:42 +01:00
adfoster-r7
bec47e8b59
Fix unitialized constant error when meterpreter registry key reads timeout
2023-06-14 19:50:28 +01:00
adfoster-r7
fb6bb4031c
Fix issue that falsely caused empty file reads on meterpreter
2023-06-14 17:50:54 +01:00
bwatters
38f542174d
Land #17336 , A more robust implementation for Windows version comparisons
...
Merge branch 'land-17336' into upstream-master
2023-06-13 15:38:56 -05:00
Ashley Donaldson
8d1e7a386c
Rubocop and code review suggestions
2023-06-13 15:58:30 +10:00
Grant Willcox
94ef437f9f
Add in YARD documentation
2023-06-05 12:10:10 -05:00
Grant Willcox
9574c79d36
Remove extra code
2023-06-05 12:07:27 -05:00
Ashley Donaldson
795980260b
Created mixin to retrieve the architecture of the current shell.
...
Currently only supports Windows, but does work on Win2000 upwards.
2023-06-05 11:10:53 +10:00
Grant Willcox
7728e1e2fb
Add in new library function for escaping PowerShell literals
2023-06-02 10:22:56 -05:00
Ashley Donaldson
7f4bda193d
Support retrieving Service Pack version on older OSes
2023-06-01 10:48:17 +10:00
Ashley Donaldson
4b1158d5f1
Use existing shell registry logic
2023-05-31 11:24:33 +10:00
Ashley Donaldson
778a2c47b7
Updated unit tests to use registry
2023-05-31 08:09:54 +10:00
Ashley Donaldson
568e346d11
Support Windows 2000 by using ver command
2023-05-30 13:23:44 +10:00
Ashley Donaldson
a94f78ec03
Use direct registry lookups to get version data, to cater for different language packs.
2023-05-30 12:21:12 +10:00
Ashley Donaldson
75ba9110e2
Added module for Windows version comparisons
...
Utilised it in various existing modules - this should fix some subtle bugs in specific modules' version detection.
2023-05-25 14:36:46 +10:00
Spencer McIntyre
ed5d516c21
Sync the .NET working path for Powershell sessions
...
See: https://github.com/PowerShell/PowerShell/issues/10278
2023-05-23 15:21:52 -04:00
Spencer McIntyre
afb31b0f21
Add a function to escaple cmd.exe string literals
2023-05-23 15:17:39 -04:00
RageLtMan
62e59e6250
Replace [System.IO.File]::Exists with Test-Path
...
The exists? method in post/file has a different implementation for
PSH sessions than other shells which are testing for the existence
of a path, not the presence of a file.
Fix this by replacing [System.IO.File]::Exists with Test-Path.
Testing:
```
PS C:\Windows\system32> [System.IO.File]::Exists("C:\")
False
PS C:\Windows\system32>test-path C:\
PS C:\Windows\system32> test-path C:\
True
```
2023-05-10 11:10:08 -04:00
bcoles
71f938682c
Post::Windows::Service: Support start/stop service on shell sessions
2023-04-28 18:44:11 +10:00
Spencer McIntyre
8c15c31b56
Fix paths for directory checks
...
The path C:\ ends with a trailing backslash which will cause bash to
wait for another line if input. This places the shell in an undesirable
state.
2023-04-21 14:39:00 -04:00
Grant Willcox
08f07eccb6
Fix initial incorrect parameters in YARD documentation
2023-03-05 20:15:14 -06:00
Spencer McIntyre
fc8f94fff4
Fix #query_ldap to use the API
...
Fix #query_ldap to use the API provided by Windows instead of dealing
with the opaque BER data structures. This means that querying is now
reliant on documented APIs and will function on both 32-bit and 64-bit
Meterpreters.
2023-02-24 13:46:11 -05:00
Grant Willcox
ae461c2395
Add in ULONG alias to DWORD and update definitions to fix some mistakes
2023-02-23 08:40:28 -06:00
bwatters
470972b91d
Land #17385 , Return success code for writing and appending file in command shells
2023-01-17 16:37:06 -06:00
h00die
90a12cf3b0
unquoted service path tweaks
2023-01-13 17:06:42 -05:00