Commit Graph

21 Commits

Author SHA1 Message Date
Isaiah Becker-Mayer 6aa3f3e63b feat(rdpdr): SetInformation* handling (#312)
- Extend ReadCursor with methods to read and try reading i64 values in both little and big endian formats.
- Update RdpdrPdu to handle ClientDriveSetInformationResponse, reflecting the addition of ServerDriveSetInformationRequest handling in the RDPDR (Remote Desktop Protocol: Device Redirection) protocol.
- Implement decoding and encoding of various FileInformationClass types such as FileEndOfFileInformation, FileDispositionInformation, FileRenameInformation, and FileAllocationInformation.
- Refactor the existing code to improve the handling of different FileInformationClassLevels and FileSystemInformationClassLevels.
- Add handling for ServerDriveNotifyChangeDirectoryRequest in ServerDriveIoRequest, supporting the specific case when MinorFunction is set to IRP_MN_NOTIFY_CHANGE_DIRECTORY.
2023-11-29 17:38:01 +00:00
Benoît Cortier e10bf4fc38 ci: check for dirty lock files (#277)
Note that we can’t really use the --locked option of cargo, because to
run xtask, we need to compile it using cargo, and thus the lock files
are already "refreshed" as far as cargo is concerned. Instead, this new
task will check for modifications to the lock files using git-status
porcelain. The side benefit is that we can check for npm lock files too.
2023-11-09 21:53:08 -05:00
Vladyslav Nikonov 2b501496d9 feat: clipboard support for web client (#259) 2023-11-08 13:57:21 +02:00
Benoît Cortier 8b359ff4a3 fix(pdu): bubble up X509 cert parsing error source (#236)
The source for the certificate parsing error was discarded. This
patch is modifying the ServerLicenseError::InvalidX509Certificate
variant so that it is properly bubbled up.

This will help us gather troubleshooting information from our
end users.
2023-10-30 16:46:07 +02:00
Benoît CORTIER c1802b625e test(graphics): save snapshots for RLE test
Instead of directly depending on the unmaintained rdp-rs to decompress
RLE tiles dynamically, a few snapshots are saved to test against.

The benefit is to remove a lot of outdated dependencies from our
(developement) dependency graph.
2023-10-05 10:58:16 -04:00
Benoît Cortier c670ab4331 feat(error): add Source trait (#202) 2023-10-03 23:39:55 +00:00
Benoît Cortier d466861a89 build(client): update softbuffer dependency (#187) 2023-08-29 15:28:36 +00:00
Benoît CORTIER 2938db416b feat: API for custom static virtual channels
Issue: ARC-147
Co-authored-by: Isaiah Becker-Mayer <isaiah@goteleport.com>
2023-08-26 04:37:13 -04:00
Mihnea Buzatu 74e95f692a feat: initial server support (#167) 2023-08-25 09:35:00 -04:00
Benoît Cortier 709f79558a build(fuzz): fix build (#163)
Breakage was caused by some bad interaction with a
transitive dependency (proc-macro2).

This is simply updating the Cargo.lock by running `cargo update`.
2023-07-12 15:16:44 +00:00
Benoît CORTIER 493e8f13a4 ci: add web client check job 2023-05-23 08:31:19 -04:00
Benoît Cortier 0b20b56068 fix(pdu): panic in mcs module found by fuzzing (#133) 2023-05-16 16:19:22 +00:00
Benoît CORTIER 04924757cb test: extract fuzzing oracles into another crate 2023-05-11 19:41:11 -04:00
Benoît Cortier 55d11a5000 refactor: clarify project architecture (#123)
> Make the root of the workspace a virtual manifest. It might
> be tempting to put the main crate into the root, but that
> pollutes the root with src/, requires passing --workspace to
> every Cargo command, and adds an exception to an otherwise
> consistent structure.

> Don’t succumb to the temptation to strip common prefix
> from folder names. If each crate is named exactly as the
> folder it lives in, navigation and renames become easier.
> Cargo.tomls of reverse dependencies mention both the folder
> and the crate name, it’s useful when they are exactly the
> same.

Source:
https://matklad.github.io/2021/08/22/large-rust-workspaces.html#Smaller-Tips
2023-05-09 21:00:07 +00:00
Vladyslav Nikonov 137556013f Add support for RDP6 32bpp bitmaps (#118)
This adds support for RDP6 32bpp bitmaps.

- RDP6 RLE implementation
- `RDP6_BITMAP_STREAM` pdu parsing
- New CLI arguments to select color depth and color reduction
- Unit tests and fuzzing for implemented functionality

Test bpp32 mode without lossy compression (RGB  colorspace)
```
cargo run -p ironrdp-client -- -u vmbox -p password --color-depth=32 <IP_ADDRESS>
```

Test bpp32 mode with lossy compression (YCoCg colorspace, subsampling, color loss)
```
cargo run -p ironrdp-client -- -u vmbox -p password --color-depth=32 --lossy-bitmap-compression <IP_ADDRESS>
```

Issue: ARC-149
2023-05-08 09:43:53 -04:00
Benoît CORTIER 95faf8bbc6 feat!: implement new traits on PreconnectionBlob 2023-05-04 21:27:44 -04:00
Benoît CORTIER ccdd3825b0 refactor: connection sequence as state machine
- Connection sequence is now implemented as an instrumentable state
  machine

- Improved errors

Issue: ARC-146
Issue: ARC-133
2023-04-28 18:00:10 -04:00
Benoît CORTIER 4516521412 chore: use cargo inheritance 2023-04-28 18:00:10 -04:00
Benoît Cortier 710a51f24a refactor: re-organize workspace (#101)
- Remove Tauri client.

  It was useful when initially prototyping the Web Component, but now
  it’s more of a maintenance burden. It’s notably not convenient to
  check in CI. Since we now have another native alternative that does
  not require any GPU (`ironrdp-client`), it’s probably a good time to
  part ways.

- Move wasm package into the workspace.

- Move Rust crates into a `crates` subfolder.

- Introduce `xtask` crate for free-form automation.
2023-03-29 19:09:15 -04:00
Benoît CORTIER 85b07450ae ci: use azure account storage to store fuzzing corpus 2023-03-10 14:20:30 -05:00
Benoît Cortier c949f5b46c fix(graphics): harden RLE implementation (#86)
Mostly added bound checks in case an invalid RLE-compressed bitmap is
received. Implementation have been fuzzed for a few hours in order to
find blind spots.
2023-03-07 07:01:22 -05:00