readme update - 32bit compile add
This commit is contained in:
@@ -37,6 +37,7 @@ Hayabusaは、日本の[Yamato Security](https://yamatosecurity.connpass.com/)
|
||||
- [予定されている機能](#予定されている機能)
|
||||
- [ダウンロード](#ダウンロード)
|
||||
- [ソースコードからのコンパイル(任意)](#ソースコードからのコンパイル任意)
|
||||
- [32ビットWindowsバイナリのクロスコンパイル](#32ビットwindowsバイナリのクロスコンパイル)
|
||||
- [macOSでのコンパイルの注意点](#macosでのコンパイルの注意点)
|
||||
- [アドバンス: Rustパッケージの更新](#アドバンス-rustパッケージの更新)
|
||||
- [サンプルevtxファイルでHayabusaをテストする](#サンプルevtxファイルでhayabusaをテストする)
|
||||
@@ -152,13 +153,29 @@ rulesフォルダ配下でファイルを削除や更新をしていた場合は
|
||||
|
||||
# ソースコードからのコンパイル(任意)
|
||||
|
||||
rustがインストールされている場合、以下のコマンドでソースコードからコンパイルすることができます:
|
||||
Rustがインストールされている場合、以下のコマンドでソースコードからコンパイルすることができます:
|
||||
|
||||
```bash
|
||||
cargo clean
|
||||
cargo build --release
|
||||
```
|
||||
|
||||
以下のコマンドで定期的にRustをアップデートしてください:
|
||||
```bash
|
||||
rustup update
|
||||
```
|
||||
|
||||
コンパイルされたバイナリは`target/release`フォルダ配下で作成されます。
|
||||
|
||||
## 32ビットWindowsバイナリのクロスコンパイル
|
||||
|
||||
以下のコマンドで64ビットのWindows端末で32ビットのバイナリをクロスコンパイルできます:
|
||||
```bash
|
||||
rustup install stable-i686-pc-windows-msvc
|
||||
rustup target add i686-pc-windows-msvc
|
||||
rustup run stable-i686-pc-windows-msvc cargo build --release
|
||||
```
|
||||
|
||||
## macOSでのコンパイルの注意点
|
||||
|
||||
opensslについてのコンパイルエラーが表示される場合は、[Homebrew](https://brew.sh/)をインストールしてから、以下のパッケージをインストールする必要があります:
|
||||
|
||||
22
README.md
22
README.md
@@ -37,6 +37,7 @@ Hayabusa is a **Windows event log fast forensics timeline generator** and **thre
|
||||
- [Planned Features](#planned-features)
|
||||
- [Downloads](#downloads)
|
||||
- [Compiling from source (Optional)](#compiling-from-source-optional)
|
||||
- [Cross-compiling 32-bit Windows binaries](#cross-compiling-32-bit-windows-binaries)
|
||||
- [Notes on compiling on macOS](#notes-on-compiling-on-macos)
|
||||
- [Advanced: Updating Rust packages](#advanced-updating-rust-packages)
|
||||
- [Testing hayabusa out on sample evtx files](#testing-hayabusa-out-on-sample-evtx-files)
|
||||
@@ -152,13 +153,30 @@ In this case, you can get latest Hayabusa if you renamed rules folder and execut
|
||||
|
||||
# Compiling from source (Optional)
|
||||
|
||||
If you have rust installed, you can compile from source with the following command:
|
||||
If you have Rust installed, you can compile from source with the following command:
|
||||
|
||||
```bash
|
||||
cargo clean
|
||||
cargo build --release
|
||||
```
|
||||
|
||||
Be sure to periodically update Rust with:
|
||||
|
||||
```bash
|
||||
rustup update
|
||||
```
|
||||
|
||||
The compiled binary will be outputted in the `target/release` folder.
|
||||
|
||||
## Cross-compiling 32-bit Windows binaries
|
||||
|
||||
You can create 32-bit binaries on 64-bit Windows systems with the following:
|
||||
```bash
|
||||
rustup install stable-i686-pc-windows-msvc
|
||||
rustup target add i686-pc-windows-msvc
|
||||
rustup run stable-i686-pc-windows-msvc cargo build --release
|
||||
```
|
||||
|
||||
## Notes on compiling on macOS
|
||||
|
||||
If you receive compile errors about openssl, you will need to install [Homebrew](https://brew.sh/) and then install the following packages:
|
||||
@@ -169,7 +187,7 @@ brew install openssl
|
||||
|
||||
## Advanced: Updating Rust packages
|
||||
|
||||
You can update to the latest rust crates before compiling to get the latest libraries:
|
||||
You can update to the latest Rust crates before compiling to get the latest libraries:
|
||||
|
||||
```bash
|
||||
cargo update
|
||||
|
||||
Reference in New Issue
Block a user