Skip to content

Python Meterpreter tests fail on python 3.12/3.13 #751

@adfoster-r7

Description

@adfoster-r7

The test suite fails on Python 3.12/3.13 on Windows:

======================================================================
ERROR: test_stdapi_fs_stat (test_ext_server_stdapi.ExtServerStdApiFileSystemTest.test_stdapi_fs_stat)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "D:\a\metasploit-payloads\metasploit-payloads\python\meterpreter\tests\test_ext_server_stdapi.py", line 2[24](https://github.com/rapid7/metasploit-payloads/actions/runs/15041570260/job/42274310138?pr=750#step:5:25), in test_stdapi_fs_stat
    self.assertMethodErrorSuccess("stdapi_fs_stat", request, response)
  File "D:\a\metasploit-payloads\metasploit-payloads\python\meterpreter\tests\test_ext_server_stdapi.py", line 66, in assertMethodErrorSuccess
    result = self.ext_server_stdapi[method_name](request, response)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<string>", line 2116, in stdapi_fs_stat
  File "<string>", line 900, in get_stat_buffer
struct.error: 'I' format requires 0 <= number <= 4[29](https://github.com/rapid7/metasploit-payloads/actions/runs/15041570260/job/42274310138?pr=750#step:5:30)4967295

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions