From 3f3fed6859d0be13d738432ff09aa8a45a82e98c Mon Sep 17 00:00:00 2001 From: AntwortEinesLebens Date: Sun, 3 Nov 2024 14:39:25 +0100 Subject: [PATCH 01/13] =?UTF-8?q?chore:=20=F0=9F=A7=B9=20Update=20links=20?= =?UTF-8?q?and=20some=20texts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index bfe0706..ed70f11 100644 --- a/README.md +++ b/README.md @@ -5,20 +5,20 @@ SPDX-License-Identifier: GPL-3.0-or-later -->
- - Logo + + Logo -

Windows Artifacts Generator

+

Malware Traces Generator

- Generate malware artifacts for detection tests + Generate malware traces for detection tests
- + Report Bug ยท - + Request Feature
@@ -57,13 +57,13 @@ SPDX-License-Identifier: GPL-3.0-or-later ## ๐Ÿ‘€ About the project -[Windows Artifacts Generator][wag] is a tool for creating malware artifacts for detection tests. +[Malware Traces Generator][mtg] is a tool for creating malware traces for detection tests. ### โ“ Why It's useful for testing configurations, rules, or your Endpoint Detection and Response. \ -It's not intended to fully simulate the behavior of malware but to reproduce the steps that led to artifact creation. \ -By avoiding full and complex simulations, [Windows Artifacts Generator][wag] seeks to be simple but nonetheless powerful. +It's not intended to fully simulate the behavior of malware but to reproduce the steps that led to traces creation. \ +By avoiding full and complex simulations, [Malware Traces Generator][mtg] seeks to be simple but nonetheless powerful. ## ๐Ÿš€ Getting started @@ -80,7 +80,7 @@ Currently, this project is only available on [crates.io]. \ In order to install it, just enter this command in your favorite terminal: ```sh -cargo install windows-artifacts-generator +cargo install malware-traces-generator ``` @@ -89,7 +89,7 @@ cargo install windows-artifacts-generator 1. Clone the repository ```sh - git clone https://github.com/frack113/WAG/ + git clone https://github.com/frack113/MalwareTracesGenerator/ ``` 1. Build and run the project! @@ -102,17 +102,17 @@ After these steps, the application will be in the target directory. ### ๐Ÿฅท Quick examples -Now that [WAG] is installed, you can start generating some artifacts! \ +Now that [Malware Traces Generator][mtg] is installed, you can start generating some traces! \ For example, you can create a file like this: ```sh -wag actions files create --name "example.txt" +mtg actions files create --name "example.txt" ``` -Or you can generate artifacts from a configuration file: +Or you can generate traces from a configuration file: ```sh -wag generate --file "$YOUR_CONFIGURATIONS_FILE_PATH" +mtg generate --file "$YOUR_CONFIGURATIONS_FILE_PATH" ``` To see more information about what you can do, see the [documentation]. @@ -148,5 +148,5 @@ Distributed under the [GPL 3.0 or later] license. [gpl 3.0 or later]: ./LICENSES/GPL-3.0-or-later.txt [heroicons]: https://heroicons.com/ [mit]: ./LICENSES/MIT.txt +[mtg]: https://github.com/frack113/MalwareTracesGenerator/ [sil ofl]: ./LICENSES/OFL-1.1.txt -[wag]: https://github.com/frack113/WAG/ From dbfdea639213320c432e6c4bd74a650a4366d9fb Mon Sep 17 00:00:00 2001 From: AntwortEinesLebens Date: Sun, 3 Nov 2024 14:46:39 +0100 Subject: [PATCH 02/13] =?UTF-8?q?build:=20=F0=9F=93=A6=20Update=20identity?= =?UTF-8?q?=20in=20the=20build=20system?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Cargo.lock | 44 ++++++++++++++-------------- Cargo.toml | 10 +++---- wag-manifest.rc => mtg-manifest.rc | 14 ++++----- wag.exe.manifest => mtg.exe.manifest | 0 4 files changed, 34 insertions(+), 34 deletions(-) rename wag-manifest.rc => mtg-manifest.rc (56%) rename wag.exe.manifest => mtg.exe.manifest (100%) diff --git a/Cargo.lock b/Cargo.lock index 82cbe8d..8927443 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -34,9 +34,9 @@ dependencies = [ [[package]] name = "anstyle" -version = "1.0.9" +version = "1.0.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8365de52b16c035ff4fcafe0092ba9390540e3e352870ac09933bebcaa2c8c56" +checksum = "55cc3b69f167a1ef2e161439aa98aed94e6028e5f9a59be9a6ffb47aef1651f9" [[package]] name = "anstyle-parse" @@ -95,9 +95,9 @@ checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" [[package]] name = "cc" -version = "1.1.31" +version = "1.1.34" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c2e7962b54006dcfcc61cb72735f4d89bb97061dd6a7ed882ec6b8ee53714c6f" +checksum = "67b9470d453346108f93a59222a9a1a5724db32d0a4727b7ab7ace4b4d822dc9" dependencies = [ "shlex", ] @@ -235,6 +235,18 @@ version = "0.2.161" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8e9489c2807c139ffd9c1794f4af0ebe86a828db53ecdc7fea2111d0fed085d1" +[[package]] +name = "malware-traces-generator" +version = "1.0.0" +dependencies = [ + "base64", + "clap", + "embed-resource", + "rand", + "regex_generate", + "windows", +] + [[package]] name = "memchr" version = "2.7.4" @@ -356,18 +368,18 @@ checksum = "61697e0a1c7e512e84a621326239844a24d8207b4669b41bc18b32ea5cbf988b" [[package]] name = "serde" -version = "1.0.213" +version = "1.0.214" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3ea7893ff5e2466df8d720bb615088341b295f849602c6956047f8f80f0e9bc1" +checksum = "f55c3193aca71c12ad7890f1785d2b73e1b9f63a0bbc353c08ef26fe03fc56b5" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.213" +version = "1.0.214" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7e85ad2009c50b58e87caa8cd6dac16bdf511bbfb7af6c33df902396aa480fa5" +checksum = "de523f781f095e28fa605cdce0f8307e451cc0fd14e2eb4cd2e98a355b147766" dependencies = [ "proc-macro2", "quote", @@ -397,9 +409,9 @@ checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" [[package]] name = "syn" -version = "2.0.85" +version = "2.0.87" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5023162dfcd14ef8f32034d8bcd4cc5ddc61ef7a247c024a33e24e1f24d21b56" +checksum = "25aa4ce346d03a6dcd68dd8b4010bcb74e54e62c90c573f394c46eae99aba32d" dependencies = [ "proc-macro2", "quote", @@ -494,18 +506,6 @@ dependencies = [ "windows-targets 0.52.6", ] -[[package]] -name = "windows-artifacts-generator" -version = "1.0.0" -dependencies = [ - "base64", - "clap", - "embed-resource", - "rand", - "regex_generate", - "windows", -] - [[package]] name = "windows-core" version = "0.58.0" diff --git a/Cargo.toml b/Cargo.toml index 23ba53b..1b16195 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,13 +3,13 @@ # SPDX-License-Identifier: CC0-1.0 [package] -name = "windows-artifacts-generator" +name = "malware-traces-generator" version = "1.0.0" edition = "2021" rust-version = "1.74.1" -description = "Generate malware artifacts for detection tests" -documentation = "https://frack113.github.io/WAG/" -repository = "https://github.com/frack113/WAG/" +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", @@ -21,7 +21,7 @@ keywords = [ categories = ["command-line-utilities"] [[bin]] -name = "wag" +name = "mtg" path = "./src/main.rs" [dependencies] diff --git a/wag-manifest.rc b/mtg-manifest.rc similarity index 56% rename from wag-manifest.rc rename to mtg-manifest.rc index 0d8a20b..c1a3cdf 100644 --- a/wag-manifest.rc +++ b/mtg-manifest.rc @@ -4,7 +4,7 @@ #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" @@ -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", "mtg.exe" + VALUE "InternalName", "MalwareTracesGenerator" + VALUE "FileDescription", "Generate malware traces for detection tests" + VALUE "CompanyName", "Malware Traces Generator" + VALUE "LegalCopyright", "2023 The MalwareTracesGenerator development team" + VALUE "ProductName", "Malware Traces Generator" } } BLOCK "VarFileInfo" { diff --git a/wag.exe.manifest b/mtg.exe.manifest similarity index 100% rename from wag.exe.manifest rename to mtg.exe.manifest From 3f410d5d2a01bf0a8514825a61e0e8e245d870a4 Mon Sep 17 00:00:00 2001 From: AntwortEinesLebens Date: Sun, 3 Nov 2024 14:49:07 +0100 Subject: [PATCH 03/13] =?UTF-8?q?chore:=20=F0=9F=A7=B9=20Update=20links?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cliff.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cliff.toml b/cliff.toml index 5278ba6..c838250 100644 --- a/cliff.toml +++ b/cliff.toml @@ -5,7 +5,7 @@ [changelog] header = """ -[![logo](https://raw.githubusercontent.com/frack113/WAG/media/logo.svg)](https://github.com/frack113/WAG/)\n +[![logo](https://raw.githubusercontent.com/frack113/MalwareTracesGenerator/media/logo.svg)](https://github.com/frack113/MalwareTracesGenerator/)\n """ body = """ {%- macro remote_url() -%} @@ -50,7 +50,7 @@ footer = """ """ trim = true postprocessors = [ - { pattern = '', replace = "https://github.com/frack113/WAG/" }, + { pattern = '', replace = "https://github.com/frack113/MalwareTracesGenerator/" }, ] [git] From 151414c9a68c4de0c226d2b455c85db7cd5aa9e0 Mon Sep 17 00:00:00 2001 From: AntwortEinesLebens Date: Sun, 3 Nov 2024 14:50:55 +0100 Subject: [PATCH 04/13] =?UTF-8?q?style:=20=F0=9F=92=84=20Format=20cliff.to?= =?UTF-8?q?ml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cliff.toml | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/cliff.toml b/cliff.toml index c838250..0e5772b 100644 --- a/cliff.toml +++ b/cliff.toml @@ -58,21 +58,21 @@ conventional_commits = true filter_unconventional = true split_commits = false commit_preprocessors = [ - { pattern = '\((\w+\s)?#([0-9]+)\)', replace = "([#${2}](/issues/${2}))" }, - { pattern = '.*', replace_command = 'typos --write-changes -' }, + { pattern = '\((\w+\s)?#([0-9]+)\)', replace = "([#${2}](/issues/${2}))" }, + { pattern = '.*', replace_command = 'typos --write-changes -' }, ] commit_parsers = [ - { message = "^feat", group = "โœจ Features" }, - { message = "^fix", group = "๐Ÿ› Bug Fixes" }, - { message = "^doc", group = "๐Ÿ“š Documentation" }, - { message = "^style", group = "๐Ÿ’„ Styling" }, - { message = "^refactor", group = "๐Ÿ”จ Refactor" }, - { message = "^perf", group = "โšก Performance" }, - { message = "^test", group = "๐Ÿšจ Testing" }, - { message = "^build", group = "๐Ÿ“ฆ Build" }, - { message = "^ci", group = "๐Ÿค– CI" }, - { message = "^chore", group = "๐Ÿงน Miscellaneous" }, - { message = "^revert", group = "โช Revert" }, + { message = "^feat", group = "โœจ Features" }, + { message = "^fix", group = "๐Ÿ› Bug Fixes" }, + { message = "^doc", group = "๐Ÿ“š Documentation" }, + { message = "^style", group = "๐Ÿ’„ Styling" }, + { message = "^refactor", group = "๐Ÿ”จ Refactor" }, + { message = "^perf", group = "โšก Performance" }, + { message = "^test", group = "๐Ÿšจ Testing" }, + { message = "^build", group = "๐Ÿ“ฆ Build" }, + { message = "^ci", group = "๐Ÿค– CI" }, + { message = "^chore", group = "๐Ÿงน Miscellaneous" }, + { message = "^revert", group = "โช Revert" }, ] protect_breaking_commits = false filter_commits = false From cab6a2f10437b9a8235d266c7425ecc90c0ef0c0 Mon Sep 17 00:00:00 2001 From: AntwortEinesLebens Date: Sun, 3 Nov 2024 14:52:17 +0100 Subject: [PATCH 05/13] =?UTF-8?q?style:=20=F0=9F=92=84=20Format?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cliff.toml | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/cliff.toml b/cliff.toml index 0e5772b..c351cc1 100644 --- a/cliff.toml +++ b/cliff.toml @@ -50,7 +50,7 @@ footer = """ """ trim = true postprocessors = [ - { pattern = '', replace = "https://github.com/frack113/MalwareTracesGenerator/" }, + { pattern = '', replace = "https://github.com/frack113/MalwareTracesGenerator/" }, ] [git] @@ -58,21 +58,21 @@ conventional_commits = true filter_unconventional = true split_commits = false commit_preprocessors = [ - { pattern = '\((\w+\s)?#([0-9]+)\)', replace = "([#${2}](/issues/${2}))" }, - { pattern = '.*', replace_command = 'typos --write-changes -' }, + { pattern = '\((\w+\s)?#([0-9]+)\)', replace = "([#${2}](/issues/${2}))" }, + { pattern = '.*', replace_command = 'typos --write-changes -' }, ] commit_parsers = [ - { message = "^feat", group = "โœจ Features" }, - { message = "^fix", group = "๐Ÿ› Bug Fixes" }, - { message = "^doc", group = "๐Ÿ“š Documentation" }, - { message = "^style", group = "๐Ÿ’„ Styling" }, - { message = "^refactor", group = "๐Ÿ”จ Refactor" }, - { message = "^perf", group = "โšก Performance" }, - { message = "^test", group = "๐Ÿšจ Testing" }, - { message = "^build", group = "๐Ÿ“ฆ Build" }, - { message = "^ci", group = "๐Ÿค– CI" }, - { message = "^chore", group = "๐Ÿงน Miscellaneous" }, - { message = "^revert", group = "โช Revert" }, + { message = "^feat", group = "โœจ Features" }, + { message = "^fix", group = "๐Ÿ› Bug Fixes" }, + { message = "^doc", group = "๐Ÿ“š Documentation" }, + { message = "^style", group = "๐Ÿ’„ Styling" }, + { message = "^refactor", group = "๐Ÿ”จ Refactor" }, + { message = "^perf", group = "โšก Performance" }, + { message = "^test", group = "๐Ÿšจ Testing" }, + { message = "^build", group = "๐Ÿ“ฆ Build" }, + { message = "^ci", group = "๐Ÿค– CI" }, + { message = "^chore", group = "๐Ÿงน Miscellaneous" }, + { message = "^revert", group = "โช Revert" }, ] protect_breaking_commits = false filter_commits = false From a1c5bb02db555bf455f026d2288e3f31b0e24a9f Mon Sep 17 00:00:00 2001 From: AntwortEinesLebens Date: Sun, 3 Nov 2024 14:52:43 +0100 Subject: [PATCH 06/13] =?UTF-8?q?build:=20=F0=9F=93=A6=20Update=20the=20na?= =?UTF-8?q?me=20of=20the=20file?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.rs b/build.rs index ce3d9b8..a08d100 100644 --- a/build.rs +++ b/build.rs @@ -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); } From c5696cf5b06ddd3ba19c736fcd54ad1a71c561a9 Mon Sep 17 00:00:00 2001 From: AntwortEinesLebens Date: Sun, 3 Nov 2024 14:53:06 +0100 Subject: [PATCH 07/13] =?UTF-8?q?style:=20=F0=9F=92=84=20Add=20one=20line?= =?UTF-8?q?=20to=20stay=20consistent?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/build.rs b/build.rs index a08d100..6700ad2 100644 --- a/build.rs +++ b/build.rs @@ -3,6 +3,7 @@ // SPDX-License-Identifier: GPL-3.0-or-later extern crate embed_resource; + fn main() { embed_resource::compile("mtg-manifest.rc", embed_resource::NONE); } From 0b9c8003cf80e84c5cc5f22c1ab65ac75e2cc207 Mon Sep 17 00:00:00 2001 From: AntwortEinesLebens Date: Sun, 3 Nov 2024 15:05:59 +0100 Subject: [PATCH 08/13] =?UTF-8?q?chore:=20=F0=9F=A7=B9=20Update=20copyrigh?= =?UTF-8?q?ts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/audit.yaml | 2 +- .github/workflows/build.yaml | 2 +- .github/workflows/format.yaml | 2 +- .github/workflows/lint.yaml | 2 +- .github/workflows/release.yaml | 2 +- .gitignore | 2 +- .markdownlint-cli2.yaml | 2 +- .yamllint.yaml | 2 +- AUTHORS.md | 2 +- Cargo.lock.license | 2 +- Cargo.toml | 2 +- README.md | 2 +- build.rs | 2 +- cliff.toml | 2 +- deny.toml | 2 +- media/logo.svg.license | 2 +- media/wag.ico.license | 2 +- mtg-manifest.rc | 2 +- mtg.exe.manifest | 2 +- rustfmt.toml | 2 +- src/actions.rs | 2 +- src/actions/drivers.rs | 2 +- src/actions/drivers/byovd.rs | 2 +- src/actions/processes.rs | 2 +- src/actions/processes/spoofing.rs | 2 +- src/cli.rs | 2 +- src/main.rs | 2 +- src/windows.rs | 2 +- src/windows/processes.rs | 2 +- src/windows/users.rs | 2 +- 30 files changed, 30 insertions(+), 30 deletions(-) diff --git a/.github/workflows/audit.yaml b/.github/workflows/audit.yaml index e219153..3d8d43f 100644 --- a/.github/workflows/audit.yaml +++ b/.github/workflows/audit.yaml @@ -1,5 +1,5 @@ --- -# SPDX-FileCopyrightText: 2023 The WAG development team +# SPDX-FileCopyrightText: 2023 The MalwareTracesGenerator development team # # SPDX-License-Identifier: CC0-1.0 name: Audit the project diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index e43ebaf..332d691 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -1,5 +1,5 @@ --- -# SPDX-FileCopyrightText: 2023 The WAG development team +# SPDX-FileCopyrightText: 2023 The MalwareTracesGenerator development team # # SPDX-License-Identifier: CC0-1.0 name: Build and test the project diff --git a/.github/workflows/format.yaml b/.github/workflows/format.yaml index 10864b8..8b0f37a 100644 --- a/.github/workflows/format.yaml +++ b/.github/workflows/format.yaml @@ -1,5 +1,5 @@ --- -# SPDX-FileCopyrightText: 2023 The WAG development team +# SPDX-FileCopyrightText: 2023 The MalwareTracesGenerator development team # # SPDX-License-Identifier: CC0-1.0 name: Check formatting of the project diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index f16a3f7..7c3fc8e 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -1,5 +1,5 @@ --- -# SPDX-FileCopyrightText: 2023 The WAG development team +# SPDX-FileCopyrightText: 2023 The MalwareTracesGenerator development team # # SPDX-License-Identifier: CC0-1.0 name: Lint the project diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 8e18019..c457533 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,5 +1,5 @@ --- -# SPDX-FileCopyrightText: 2023 The WAG development team +# SPDX-FileCopyrightText: 2023 The MalwareTracesGenerator development team # # SPDX-License-Identifier: CC0-1.0 name: Create new release diff --git a/.gitignore b/.gitignore index 31674ac..2b56f65 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -# SPDX-FileCopyrightText: 2023 The WAG development team +# SPDX-FileCopyrightText: 2023 The MalwareTracesGenerator development team # # SPDX-License-Identifier: CC0-1.0 diff --git a/.markdownlint-cli2.yaml b/.markdownlint-cli2.yaml index 43cb7e6..b43acb2 100644 --- a/.markdownlint-cli2.yaml +++ b/.markdownlint-cli2.yaml @@ -1,5 +1,5 @@ --- -# SPDX-FileCopyrightText: 2023 The WAG development team +# SPDX-FileCopyrightText: 2023 The MalwareTracesGenerator development team # # SPDX-License-Identifier: CC0-1.0 config: diff --git a/.yamllint.yaml b/.yamllint.yaml index 1719a12..c7d09d8 100644 --- a/.yamllint.yaml +++ b/.yamllint.yaml @@ -1,5 +1,5 @@ --- -# SPDX-FileCopyrightText: 2023 The WAG development team +# SPDX-FileCopyrightText: 2023 The MalwareTracesGenerator development team # # SPDX-License-Identifier: CC0-1.0 extends: default diff --git a/AUTHORS.md b/AUTHORS.md index 419dbb2..1d600f9 100644 --- a/AUTHORS.md +++ b/AUTHORS.md @@ -1,5 +1,5 @@ diff --git a/Cargo.lock.license b/Cargo.lock.license index e30412b..357c02c 100644 --- a/Cargo.lock.license +++ b/Cargo.lock.license @@ -1,3 +1,3 @@ -SPDX-FileCopyrightText: 2023 The WAG development team +SPDX-FileCopyrightText: 2023 The MalwareTracesGenerator development team SPDX-License-Identifier: CC0-1.0 diff --git a/Cargo.toml b/Cargo.toml index 1b16195..9adc939 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,4 +1,4 @@ -# SPDX-FileCopyrightText: 2023 The WAG development team +# SPDX-FileCopyrightText: 2023 The MalwareTracesGenerator development team # # SPDX-License-Identifier: CC0-1.0 diff --git a/README.md b/README.md index ed70f11..0b11b86 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ diff --git a/build.rs b/build.rs index 6700ad2..5b11351 100644 --- a/build.rs +++ b/build.rs @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2023 The WAG development team +// SPDX-FileCopyrightText: 2023 The MalwareTracesGenerator development team // // SPDX-License-Identifier: GPL-3.0-or-later diff --git a/cliff.toml b/cliff.toml index c351cc1..4c5adec 100644 --- a/cliff.toml +++ b/cliff.toml @@ -1,4 +1,4 @@ -# SPDX-FileCopyrightText: 2023 The WAG development team +# SPDX-FileCopyrightText: 2023 The MalwareTracesGenerator development team # SPDX-FileCopyrightText: 2023 The git-cliff development team # # SPDX-License-Identifier: CC0-1.0 diff --git a/deny.toml b/deny.toml index d4f50ab..2fba265 100644 --- a/deny.toml +++ b/deny.toml @@ -1,4 +1,4 @@ -# SPDX-FileCopyrightText: 2023 The WAG development team +# SPDX-FileCopyrightText: 2023 The MalwareTracesGenerator development team # # SPDX-License-Identifier: CC0-1.0 diff --git a/media/logo.svg.license b/media/logo.svg.license index d631391..76e03c1 100644 --- a/media/logo.svg.license +++ b/media/logo.svg.license @@ -1,6 +1,6 @@ SPDX-FileCopyrightText: 2023 Agbama Ulimhuka SPDX-FileCopyrightText: 2023 Tailwind Labs, Inc -SPDX-FileCopyrightText: 2023 The WAG development team +SPDX-FileCopyrightText: 2023 The MalwareTracesGenerator development team SPDX-License-Identifier: GPL-3.0-or-later SPDX-License-Identifier: MIT diff --git a/media/wag.ico.license b/media/wag.ico.license index 0280446..7de8049 100644 --- a/media/wag.ico.license +++ b/media/wag.ico.license @@ -1,3 +1,3 @@ -SPDX-FileCopyrightText: 2023 The WAG development team +SPDX-FileCopyrightText: 2023 The MalwareTracesGenerator development team SPDX-License-Identifier: GPL-3.0-or-later diff --git a/mtg-manifest.rc b/mtg-manifest.rc index c1a3cdf..f7ee031 100644 --- a/mtg-manifest.rc +++ b/mtg-manifest.rc @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2023 The WAG development team +// SPDX-FileCopyrightText: 2023 The MalwareTracesGenerator development team // // SPDX-License-Identifier: CC0-1.0 diff --git a/mtg.exe.manifest b/mtg.exe.manifest index 26daf2c..176efe2 100644 --- a/mtg.exe.manifest +++ b/mtg.exe.manifest @@ -1,7 +1,7 @@ diff --git a/rustfmt.toml b/rustfmt.toml index ae47de8..921bdd8 100644 --- a/rustfmt.toml +++ b/rustfmt.toml @@ -1,4 +1,4 @@ -# SPDX-FileCopyrightText: 2023 The WAG development team +# SPDX-FileCopyrightText: 2023 The MalwareTracesGenerator development team # # SPDX-License-Identifier: CC0-1.0 diff --git a/src/actions.rs b/src/actions.rs index 0f613c2..35e8bca 100644 --- a/src/actions.rs +++ b/src/actions.rs @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2023 The WAG development team +// SPDX-FileCopyrightText: 2023 The MalwareTracesGenerator development team // // SPDX-License-Identifier: GPL-3.0-or-later diff --git a/src/actions/drivers.rs b/src/actions/drivers.rs index e168a21..c25312f 100644 --- a/src/actions/drivers.rs +++ b/src/actions/drivers.rs @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2023 The WAG development team +// SPDX-FileCopyrightText: 2023 The MalwareTracesGenerator development team // // SPDX-License-Identifier: GPL-3.0-or-later diff --git a/src/actions/drivers/byovd.rs b/src/actions/drivers/byovd.rs index 2895ad8..b5ce606 100644 --- a/src/actions/drivers/byovd.rs +++ b/src/actions/drivers/byovd.rs @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2023 The WAG development team +// SPDX-FileCopyrightText: 2023 The MalwareTracesGenerator development team // // SPDX-License-Identifier: GPL-3.0-or-later diff --git a/src/actions/processes.rs b/src/actions/processes.rs index 0cbdf3d..ac5b4a1 100644 --- a/src/actions/processes.rs +++ b/src/actions/processes.rs @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2023 The WAG development team +// SPDX-FileCopyrightText: 2023 The MalwareTracesGenerator development team // // SPDX-License-Identifier: GPL-3.0-or-later diff --git a/src/actions/processes/spoofing.rs b/src/actions/processes/spoofing.rs index 26b1ad8..5a87902 100644 --- a/src/actions/processes/spoofing.rs +++ b/src/actions/processes/spoofing.rs @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2023 The WAG development team +// SPDX-FileCopyrightText: 2023 The MalwareTracesGenerator development team // // SPDX-License-Identifier: GPL-3.0-or-later diff --git a/src/cli.rs b/src/cli.rs index e10dd76..2435314 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2023 The WAG development team +// SPDX-FileCopyrightText: 2023 The MalwareTracesGenerator development team // // SPDX-License-Identifier: GPL-3.0-or-later diff --git a/src/main.rs b/src/main.rs index 44b7aa0..1269fe8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2023 The WAG development team +// SPDX-FileCopyrightText: 2023 The MalwareTracesGenerator development team // // SPDX-License-Identifier: GPL-3.0-or-later diff --git a/src/windows.rs b/src/windows.rs index 3a99ec0..36568b5 100644 --- a/src/windows.rs +++ b/src/windows.rs @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2023 The WAG development team +// SPDX-FileCopyrightText: 2023 The MalwareTracesGenerator development team // // SPDX-License-Identifier: GPL-3.0-or-later diff --git a/src/windows/processes.rs b/src/windows/processes.rs index 2509a6f..8017dd9 100644 --- a/src/windows/processes.rs +++ b/src/windows/processes.rs @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2023 The WAG development team +// SPDX-FileCopyrightText: 2023 The MalwareTracesGenerator development team // // SPDX-License-Identifier: GPL-3.0-or-later diff --git a/src/windows/users.rs b/src/windows/users.rs index 0a008fb..36dd513 100644 --- a/src/windows/users.rs +++ b/src/windows/users.rs @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2023 The WAG development team +// SPDX-FileCopyrightText: 2023 The MalwareTracesGenerator development team // // SPDX-License-Identifier: GPL-3.0-or-later From da375d3914cabf289520319366039ff8ef07f04f Mon Sep 17 00:00:00 2001 From: AntwortEinesLebens Date: Sun, 3 Nov 2024 17:23:42 +0100 Subject: [PATCH 09/13] =?UTF-8?q?feat:=20=E2=9C=A8=20Rename=20actions=20to?= =?UTF-8?q?=20traces?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/cli.rs | 4 ++-- src/main.rs | 6 +++--- src/{actions.rs => traces.rs} | 6 +++--- src/{actions => traces}/drivers.rs | 2 +- src/{actions => traces}/drivers/byovd.rs | 2 +- src/{actions => traces}/processes.rs | 2 +- src/{actions => traces}/processes/spoofing.rs | 2 +- 7 files changed, 12 insertions(+), 12 deletions(-) rename src/{actions.rs => traces.rs} (86%) rename src/{actions => traces}/drivers.rs (91%) rename src/{actions => traces}/drivers/byovd.rs (97%) rename src/{actions => traces}/processes.rs (90%) rename src/{actions => traces}/processes/spoofing.rs (98%) diff --git a/src/cli.rs b/src/cli.rs index 2435314..809dd46 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -2,7 +2,7 @@ // // SPDX-License-Identifier: GPL-3.0-or-later -use crate::actions::Actions; +use crate::traces::Traces; use clap::{Parser, Subcommand}; #[derive(Debug, Parser)] @@ -15,5 +15,5 @@ pub struct Arguments { #[derive(Debug, Subcommand)] pub enum Commands { - Actions(Actions), + Traces(Traces), } diff --git a/src/main.rs b/src/main.rs index 1269fe8..0346365 100644 --- a/src/main.rs +++ b/src/main.rs @@ -2,14 +2,14 @@ // // SPDX-License-Identifier: GPL-3.0-or-later -mod actions; mod cli; +mod traces; mod windows; -use actions::Runnable; use clap::Parser; use cli::{Arguments, Commands}; use std::error::Error; +use traces::Runnable; fn banner() { let banner: &str = " @@ -28,7 +28,7 @@ fn main() -> Result<(), Box> { banner(); match Arguments::parse().command { - Commands::Actions(action) => action.run()?, + Commands::Traces(action) => action.run()?, }; Ok(()) diff --git a/src/actions.rs b/src/traces.rs similarity index 86% rename from src/actions.rs rename to src/traces.rs index 35e8bca..348620b 100644 --- a/src/actions.rs +++ b/src/traces.rs @@ -2,7 +2,7 @@ // // SPDX-License-Identifier: GPL-3.0-or-later -use crate::actions::{drivers::Drivers, processes::Processes}; +use crate::traces::{drivers::Drivers, processes::Processes}; use clap::{Args, Subcommand}; use std::error::Error; @@ -10,7 +10,7 @@ pub mod drivers; pub mod processes; #[derive(Debug, Args)] -pub struct Actions { +pub struct Traces { #[clap(subcommand)] pub command: Commands, } @@ -25,7 +25,7 @@ pub trait Runnable { fn run(&self) -> Result<(), Box>; } -impl Runnable for Actions { +impl Runnable for Traces { fn run(&self) -> Result<(), Box> { match &self.command { Commands::Drivers(drivers) => drivers as &dyn Runnable, diff --git a/src/actions/drivers.rs b/src/traces/drivers.rs similarity index 91% rename from src/actions/drivers.rs rename to src/traces/drivers.rs index c25312f..64f5827 100644 --- a/src/actions/drivers.rs +++ b/src/traces/drivers.rs @@ -2,7 +2,7 @@ // // SPDX-License-Identifier: GPL-3.0-or-later -use crate::actions::{drivers::byovd::Byovd, Runnable}; +use crate::traces::{drivers::byovd::Byovd, Runnable}; use clap::{Args, Subcommand}; use std::error::Error; diff --git a/src/actions/drivers/byovd.rs b/src/traces/drivers/byovd.rs similarity index 97% rename from src/actions/drivers/byovd.rs rename to src/traces/drivers/byovd.rs index b5ce606..b3ca762 100644 --- a/src/actions/drivers/byovd.rs +++ b/src/traces/drivers/byovd.rs @@ -2,7 +2,7 @@ // // SPDX-License-Identifier: GPL-3.0-or-later -use crate::{actions::Runnable, windows::users::is_administrator}; +use crate::{traces::Runnable, windows::users::is_administrator}; use clap::Parser; use std::{error::Error, path::PathBuf}; use windows::{ diff --git a/src/actions/processes.rs b/src/traces/processes.rs similarity index 90% rename from src/actions/processes.rs rename to src/traces/processes.rs index ac5b4a1..97e2f38 100644 --- a/src/actions/processes.rs +++ b/src/traces/processes.rs @@ -2,7 +2,7 @@ // // SPDX-License-Identifier: GPL-3.0-or-later -use crate::actions::{processes::spoofing::Spoofing, Runnable}; +use crate::traces::{processes::spoofing::Spoofing, Runnable}; use clap::{Args, Subcommand}; use std::error::Error; diff --git a/src/actions/processes/spoofing.rs b/src/traces/processes/spoofing.rs similarity index 98% rename from src/actions/processes/spoofing.rs rename to src/traces/processes/spoofing.rs index 5a87902..d0d622b 100644 --- a/src/actions/processes/spoofing.rs +++ b/src/traces/processes/spoofing.rs @@ -2,7 +2,7 @@ // // SPDX-License-Identifier: GPL-3.0-or-later -use crate::{actions::Runnable, windows::processes::get_pid}; +use crate::{traces::Runnable, windows::processes::get_pid}; use clap::Parser; use std::{ error::Error, ffi::OsString, iter::once, mem::size_of, os::windows::ffi::OsStrExt, From 1c5f69f7dbb6b3908f0a3c472bb7466326616197 Mon Sep 17 00:00:00 2001 From: AntwortEinesLebens Date: Sun, 3 Nov 2024 17:27:22 +0100 Subject: [PATCH 10/13] =?UTF-8?q?feat:=20=E2=9C=A8=20Remove=20the=20banner?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.rs | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/main.rs b/src/main.rs index 0346365..17a0eae 100644 --- a/src/main.rs +++ b/src/main.rs @@ -11,22 +11,7 @@ use cli::{Arguments, Commands}; use std::error::Error; use traces::Runnable; -fn banner() { - let banner: &str = " - - โ–ˆโ–ˆโ€ โ–ˆโ–ˆโ€ โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ€ โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ€ - โ–ˆโ–ˆโ€ โ–ˆโ–ˆโ€โ–ˆโ–ˆโ€โ€โ€โ–ˆโ–ˆโ€โ–ˆโ–ˆโ€โ€โ€โ€โ€โ€ - โ–ˆโ–ˆโ€ โ–ˆโ€ โ–ˆโ–ˆโ€โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ€โ–ˆโ–ˆโ€ โ–ˆโ–ˆโ–ˆโ€ - โ–ˆโ–ˆโ€โ–ˆโ–ˆโ–ˆโ€โ–ˆโ–ˆโ€โ–ˆโ–ˆโ€โ€โ€โ–ˆโ–ˆโ€โ–ˆโ–ˆโ€ โ–ˆโ–ˆโ€ - โ€โ–ˆโ–ˆโ–ˆโ€โ–ˆโ–ˆโ–ˆโ€โ€โ–ˆโ–ˆโ€ โ–ˆโ–ˆโ€โ€โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ€ - - "; - println!("{}", banner); -} - fn main() -> Result<(), Box> { - banner(); - match Arguments::parse().command { Commands::Traces(action) => action.run()?, }; From 624b51635637f5ad4394bfe4a34377a91a06b2c1 Mon Sep 17 00:00:00 2001 From: AntwortEinesLebens Date: Wed, 6 Nov 2024 19:02:05 +0100 Subject: [PATCH 11/13] =?UTF-8?q?chore:=20=F0=9F=A7=B9=20Update=20the=20lo?= =?UTF-8?q?go?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- media/logo.svg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/media/logo.svg b/media/logo.svg index c5136d6..66f6dc9 100644 --- a/media/logo.svg +++ b/media/logo.svg @@ -1 +1 @@ - + \ No newline at end of file From 94d86ad0aa60dfbf39bd12384803e6c04dc01887 Mon Sep 17 00:00:00 2001 From: AntwortEinesLebens Date: Wed, 6 Nov 2024 19:05:37 +0100 Subject: [PATCH 12/13] =?UTF-8?q?chore:=20=F0=9F=A7=B9=20Update=20document?= =?UTF-8?q?ation=20URL?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0b11b86..63edd0d 100644 --- a/README.md +++ b/README.md @@ -144,7 +144,7 @@ Distributed under the [GPL 3.0 or later] license. [agbama ulimhuka]: https://github.com/ulims/ [cargo]: https://doc.rust-lang.org/stable/cargo/ [crates.io]: https://crates.io/ -[documentation]: https://frack113.github.io/WAG/ +[documentation]: https://frack113.github.io/MalwareTracesGenerator/ [gpl 3.0 or later]: ./LICENSES/GPL-3.0-or-later.txt [heroicons]: https://heroicons.com/ [mit]: ./LICENSES/MIT.txt From 44e30f24ab87417095c930c91ac675c1fad61798 Mon Sep 17 00:00:00 2001 From: AntwortEinesLebens Date: Wed, 6 Nov 2024 19:22:21 +0100 Subject: [PATCH 13/13] =?UTF-8?q?chore:=20=F0=9F=A7=B9=20Rename=20ico=20fi?= =?UTF-8?q?le?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- media/{wag.ico => mtg.ico} | Bin media/{wag.ico.license => mtg.ico.license} | 0 mtg-manifest.rc | 2 +- 3 files changed, 1 insertion(+), 1 deletion(-) rename media/{wag.ico => mtg.ico} (100%) rename media/{wag.ico.license => mtg.ico.license} (100%) diff --git a/media/wag.ico b/media/mtg.ico similarity index 100% rename from media/wag.ico rename to media/mtg.ico diff --git a/media/wag.ico.license b/media/mtg.ico.license similarity index 100% rename from media/wag.ico.license rename to media/mtg.ico.license diff --git a/mtg-manifest.rc b/mtg-manifest.rc index f7ee031..119eb57 100644 --- a/mtg-manifest.rc +++ b/mtg-manifest.rc @@ -6,7 +6,7 @@ #define RT_MANIFEST 24 1 RT_MANIFEST "mtg.exe.manifest" -IDI_ICON1 ICON "media/wag.ico" +IDI_ICON1 ICON "media/mtg.ico" 1 VERSIONINFO FILEVERSION 1,0,0