Skip to content

feat(contracts): add file output type - #322

Open
Seb-MIGUEL wants to merge 1 commit into
mainfrom
feat/file-output-type
Open

feat(contracts): add file output type#322
Seb-MIGUEL wants to merge 1 commit into
mainfrom
feat/file-output-type

Conversation

@Seb-MIGUEL

Copy link
Copy Markdown
Contributor

Adds the shared file contract output type to ContractOutputType.

Why

Injectors need a file output type to emit file findings (e.g. NetExec spider_plus enumerating files on SMB shares, or --ls on FTP/NFS). The type must exist in this shared package before any injector can declare it, and before the platform can deserialize the contract — otherwise the output is silently dropped at parse time.

This is step 2 of the end-to-end file finding work for the attack-path feature (OpenAEV #6647): platform enum → client-python → output processor / chaining → injector.

Change

  • ContractOutputType.File = "file" in pyoaev/contracts/contract_config.py.
  • Non-regression test asserting the wire label stays exactly "file" (public contract shared with the platform enum).

No behaviour change for existing types.

Declare the shared "file" contract output type so injectors can emit file
findings (e.g. NetExec spider_plus) and the platform can deserialize them.
Part of the attack-path file finding work (OpenAEV #6647).
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