Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Misc small updates #38

Closed
wants to merge 7 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# SPDX-FileCopyrightText: 2023 The WAG development team
#
# SPDX-License-Identifier: CC0-1.0


* text=auto eol=lf

*.yaml text eol=lf
*.md text eol=lf
*.rs text eol=lf
*.rc text eol=lf
*.license text eol=lf

*.png binary
*.jpg binary
*.ico binary
6 changes: 6 additions & 0 deletions .github/workflows/format.yaml
Original file line number Diff line number Diff line change
@@ -11,9 +11,12 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Hack setup-python cache
run: touch ./requirements.txt
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: pip
- name: Install yamlfix
run: pip install yamlfix
@@ -25,9 +28,12 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Hack setup-python cache
run: touch ./requirements.txt
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: pip
- name: Install Mdformat
run: pip install mdformat
9 changes: 7 additions & 2 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -13,9 +13,12 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Hack setup-python cache
run: touch ./requirements.txt
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: pip
- name: Install yamllint
run: pip install yamllint
@@ -28,15 +31,17 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4
- name: Lint licenses
uses: fsfe/reuse-action@v3
uses: fsfe/reuse-action@v4
markdownlint-cli2:
name: Lint with markdownlint-cli2
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Lint Markdown code
uses: DavidAnson/markdownlint-cli2-action@v16
uses: DavidAnson/markdownlint-cli2-action@v17
with:
globs: '**/*.md'
clippy:
name: Lint with Clippy
runs-on: windows-latest
9 changes: 0 additions & 9 deletions .markdownlint-cli2.yaml

This file was deleted.

11 changes: 11 additions & 0 deletions .markdownlint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
# SPDX-FileCopyrightText: 2023 The WAG development team
#
# SPDX-License-Identifier: CC0-1.0
# Ref:
# https://github.com/DavidAnson/markdownlint/blob/main/schema/.markdownlint.yaml
MD013:
line_length: 138
MD025: false
MD033: false
MD041: false
154 changes: 77 additions & 77 deletions Cargo.lock
15 changes: 8 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -3,12 +3,13 @@
# SPDX-License-Identifier: CC0-1.0

[package]
name = "windows-artifacts-generator"
name = "windows-traces-generator"
version = "1.0.0"
edition = "2021"
description = "Generate malware artifacts for detection tests"
documentation = "https://frack113.github.io/WAG/"
repository = "https://github.com/frack113/WAG/"
rust-version = "1.74.1"
description = "Generate malware traces for detection tests"
documentation = "https://frack113.github.io/MalwareTracesGenerator/"
repository = "https://github.com/frack113/MalwareTracesGenerator/"
license = "GPL-3.0-or-later"
keywords = [
"malware-detection",
@@ -18,10 +19,10 @@ keywords = [
"rust",
]
categories = ["command-line-utilities"]
rust-version = "1.80.1"


[[bin]]
name = "wag"
name = "mtg"
path = "./src/main.rs"

[dependencies]
@@ -44,7 +45,7 @@ rand = "0.8.5"
regex_generate = "0.2.3"

[build-dependencies]
embed-resource = "2.4.3"
embed-resource = "2.5"

[profile.release]
opt-level = 3
2 changes: 1 addition & 1 deletion build.rs
Original file line number Diff line number Diff line change
@@ -4,5 +4,5 @@

extern crate embed_resource;
fn main() {
embed_resource::compile("wag-manifest.rc", embed_resource::NONE);
embed_resource::compile("mtg-manifest.rc", embed_resource::NONE);
}
File renamed without changes.
File renamed without changes.
16 changes: 8 additions & 8 deletions wag-manifest.rc → mtg-manifest.rc
Original file line number Diff line number Diff line change
@@ -4,9 +4,9 @@

#pragma code_page(65001)
#define RT_MANIFEST 24
1 RT_MANIFEST "wag.exe.manifest"
1 RT_MANIFEST "mtg.exe.manifest"

IDI_ICON1 ICON "media/wag.ico"
IDI_ICON1 ICON "media/mtg.ico"

1 VERSIONINFO
FILEVERSION 1,0,0
@@ -21,12 +21,12 @@ BEGIN
BLOCK "040904B0" {
VALUE "FileVersion", "1.0.0"
VALUE "ProductVersion", "1.0.0"
VALUE "OriginalFilename", "wag.exe"
VALUE "InternalName", "wag"
VALUE "FileDescription", "Generate malware artifacts for detection tests"
VALUE "CompanyName", "Windows Artifacts Generator"
VALUE "LegalCopyright", "2023 The WAG development team"
VALUE "ProductName", "Windows Artifacts Generator"
VALUE "OriginalFilename", "MalwareTracesGenerator.exe"
VALUE "InternalName", "MalwareTracesGenerator"
VALUE "FileDescription", "Generate Malware Traces for detection tests"
VALUE "CompanyName", "Windows Traces Generator"
VALUE "LegalCopyright", "2024 The MTG development team"
VALUE "ProductName", "Windows Traces Generator"
}
}
BLOCK "VarFileInfo" {
File renamed without changes.
6 changes: 4 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -27,7 +27,9 @@ fn banner() {
fn main() -> Result<(), Box<dyn Error>> {
banner();

Ok(match Arguments::parse().command {
match Arguments::parse().command {
Commands::Actions(action) => action.run()?,
})
};

Ok(())
}