Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Server 2025 to Windows version constants #19746

Merged
merged 1 commit into from
Dec 19, 2024

Conversation

smashery
Copy link
Contributor

@smashery smashery commented Dec 18, 2024

This adds the version constants for Windows Server 2025.

Verification

  • Spin up a Server 2025 instance (I tested on AWS)
  • Start msfconsole
  • Obtain a meterpreter session on it
  • Use a module with the WindowsVersion mixin; e.g.:
  • use windows/local/cve_2020_0787_bits_arbitrary_file_move
  • set session 1
  • irb
  • version = get_version_info_impl
  • version.product_name
  • Verify that it says Windows Server 2025

@bwatters-r7 bwatters-r7 self-assigned this Dec 18, 2024
@bwatters-r7
Copy link
Contributor

msf6 payload(cmd/windows/http/x64/meterpreter_reverse_tcp) > sessions -i -1
[*] Starting interaction with 1...

meterpreter > sysinfo
Computer        : WIN2025__B7EC
OS              : Windows Server 2022 (10.0 Build 26100).
Architecture    : x64
System Language : en_US
Domain          : WORKGROUP
Logged On Users : 2
Meterpreter     : x64/windows
meterpreter > background
[*] Backgrounding session 1...
msf6 payload(cmd/windows/http/x64/meterpreter_reverse_tcp) > use windows/local/cve_2020_0787_bits_arbitrary_file_move
[*] Using configured payload windows/x64/meterpreter/reverse_tcp
msf6 exploit(windows/local/cve_2020_0787_bits_arbitrary_file_move) > set session 1
session => 1
msf6 exploit(windows/local/cve_2020_0787_bits_arbitrary_file_move) > irb
[*] Starting IRB shell...
[*] You are in exploit/windows/local/cve_2020_0787_bits_arbitrary_file_move

irb: warn: can't alias ls from irb_ls.
>> version = get_version_info_impl
=> #<Msf::WindowsVersion:0x00007047f5dfb878 @_build=26100, @_major=10, @_minor=0, @_revision=1742, @_service_pack=0, @product_ty...
>> version.product_name
=> "Windows Server 2025"
>> 

@bwatters-r7 bwatters-r7 merged commit 227143e into rapid7:master Dec 19, 2024
69 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants