Skip to content

Commit

Permalink
rust/ja4: Add capture files and expected output
Browse files Browse the repository at this point in the history
  • Loading branch information
vvv committed Oct 8, 2023
1 parent 72ce15b commit 3605371
Show file tree
Hide file tree
Showing 40 changed files with 2,937 additions and 30 deletions.
45 changes: 43 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,15 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install tshark
# See https://launchpad.net/~wireshark-dev/+archive/ubuntu/stable
run: |
sudo apt update
sudo apt -y install software-properties-common # provides `add-apt-repository`
sudo add-apt-repository --yes ppa:wireshark-dev/stable
sudo apt update
sudo apt -y install tshark
tshark --version
- name: Install ${{ matrix.toolchain }}
uses: dtolnay/rust-toolchain@master
with:
Expand All @@ -50,6 +59,15 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install tshark
# See https://launchpad.net/~wireshark-dev/+archive/ubuntu/stable
run: |
sudo apt update
sudo apt -y install software-properties-common # provides `add-apt-repository`
sudo add-apt-repository --yes ppa:wireshark-dev/stable
sudo apt update
sudo apt -y install tshark
tshark --version
- name: Install stable
uses: dtolnay/rust-toolchain@stable
- name: Install nightly for -Zminimal-versions
Expand All @@ -70,16 +88,39 @@ jobs:
# NOTE: Don't use GitHub-hosted macOS runners in a non-public repository --
# they consume CI/CD minutes like crazy; see
# https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#minute-multipliers
- windows-latest
#- macos-latest
- windows-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install wireshark
if: runner.os == 'Windows'
shell: powershell
run: |
Invoke-WebRequest -Uri "https://www.wireshark.org/download/win64/Wireshark-win64-4.0.10.exe" -OutFile "WiresharkInstaller.exe"
Start-Process -Wait -FilePath ".\WiresharkInstaller.exe" -ArgumentList "/S"
# Add tshark's location to the system PATH
$env:Path += ";$env:ProgramFiles\Wireshark"
[Environment]::SetEnvironmentVariable("Path", $env:Path, [System.EnvironmentVariableTarget]::Machine)
tshark --version
- name: Install stable
uses: dtolnay/rust-toolchain@stable
- run: cargo generate-lockfile
if: hashFiles('rust/Cargo.lock') == ''
- name: cargo test
- name: non-windows / cargo test
if: runner.os != 'Windows'
run: cargo test --locked --all-features --all-targets --workspace
working-directory: rust/
- name: windows / cargo test
if: runner.os == 'Windows'
shell: powershell
run: |
# Add tshark's location to the system PATH
$env:Path += ";$env:ProgramFiles\Wireshark"
[Environment]::SetEnvironmentVariable("Path", $env:Path, [System.EnvironmentVariableTarget]::Machine)
cargo test --locked --all-features --all-targets --workspace
working-directory: rust/
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/target
rust/target
.DS_Store
.vscode/
Binary file added pcap/browsers-x509.pcapng
Binary file not shown.
Binary file added pcap/chrome-cloudflare-quic-with-secrets.pcapng
Binary file not shown.
Binary file added pcap/http1-with-cookies.pcapng
Binary file not shown.
Binary file added pcap/http1.pcapng
Binary file not shown.
Binary file added pcap/http2-with-cookies.pcapng
Binary file not shown.
Binary file added pcap/ipv6.pcapng
Binary file not shown.
Binary file added pcap/latest.pcapng
Binary file not shown.
Binary file added pcap/quic-tls-handshake.pcapng
Binary file not shown.
Binary file added pcap/quic-with-several-tls-frames.pcapng
Binary file not shown.
Binary file added pcap/ssh-scp-1050.pcap
Binary file not shown.
Binary file added pcap/ssh.pcapng
Binary file not shown.
Binary file added pcap/ssh2.pcapng
Binary file not shown.
Binary file added pcap/tls-handshake.pcapng
Binary file not shown.
Binary file added pcap/tls-sni.pcapng
Binary file not shown.
Binary file added pcap/tls3.pcapng
Binary file not shown.
9 changes: 8 additions & 1 deletion rust/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.15.0] - 2023-10-08

### Added

- Add capture files and expected output.

## [0.14.0] - 2023-10-04

### Added

- Add Rust sources of `ja4` and `ja4x` CLI tools.

[unreleased]: https://github.com/FoxIO-LLC/ja4/compare/v0.14.0...HEAD
[unreleased]: https://github.com/FoxIO-LLC/ja4/compare/v0.15.0...HEAD
[0.15.0]: https://github.com/FoxIO-LLC/ja4/compare/v0.14.0...v0.15.0
[0.14.0]: https://github.com/FoxIO-LLC/ja4/releases/tag/v0.14.0
Loading

0 comments on commit 3605371

Please sign in to comment.