diff --git a/attach b/attach index 7ca2d89b..7b67da70 100755 --- a/attach +++ b/attach @@ -30,9 +30,9 @@ echo Attaching to "$proc" # pBypass for crash dumps being sent # You may also want to consider using -nobreakpad in your launch options. -sudo mkdir -p /tmp/dumps # Make it as root if it doesnt exist -sudo chown root:root /tmp/dumps # Claim it as root -sudo chmod 000 /tmp/dumps # No permissions +mkdir -p /tmp/dumps # Make it as root if it doesnt exist +chown root:root /tmp/dumps # Claim it as root +chmod 000 /tmp/dumps # No permissions FILENAME="/tmp/.gl$(head /dev/urandom | tr -dc 'a-zA-Z0-9' | head -c 6)" diff --git a/attach-gdb b/attach-gdb index 4fae491c..26cb05af 100755 --- a/attach-gdb +++ b/attach-gdb @@ -30,9 +30,9 @@ echo Attaching to "$proc" # pBypass for crash dumps being sent # You may also want to consider using -nobreakpad in your launch options. -sudo mkdir -p /tmp/dumps # Make it as root if it doesnt exist -sudo chown root:root /tmp/dumps # Claim it as root -sudo chmod 000 /tmp/dumps # No permissions +mkdir -p /tmp/dumps # Make it as root if it doesnt exist +chown root:root /tmp/dumps # Claim it as root +chmod 000 /tmp/dumps # No permissions FILENAME="/tmp/.gl$(head /dev/urandom | tr -dc 'a-zA-Z0-9' | head -c 6)" diff --git a/attach-libnamed.sh b/attach-libnamed.sh index 6e5c2dbb..069e298c 100755 --- a/attach-libnamed.sh +++ b/attach-libnamed.sh @@ -26,16 +26,16 @@ echo Attaching to "$proc" # pBypass for crash dumps being sent # You may also want to consider using -nobreakpad in your launch options. -sudo mkdir -p /tmp/dumps # Make it as root if it doesnt exist -sudo chown root:root /tmp/dumps # Claim it as root -sudo chmod 000 /tmp/dumps # No permissions +mkdir -p /tmp/dumps # Make it as root if it doesnt exist +chown root:root /tmp/dumps # Claim it as root +chmod 000 /tmp/dumps # No permissions # Get a Random name from the build_names file. FILENAME=$(shuf -n 1 build_names) # Create directory if it doesn't exist if [ ! -d "/lib/i386-linux-gnu/" ]; then - sudo mkdir /lib/i386-linux-gnu/ + mkdir /lib/i386-linux-gnu/ fi # In case this file exists, get another one. ( checked it works ) diff --git a/src/hacks/Misc.cpp b/src/hacks/Misc.cpp index 268ee662..836a1633 100644 --- a/src/hacks/Misc.cpp +++ b/src/hacks/Misc.cpp @@ -562,11 +562,11 @@ static CatCommand dump_vars_by_name("debug_dump_netvars_name", "Dump netvars of } }); #if ENABLE_VISUALS && !ENFORCE_STREAM_SAFETY -// This makes us able to see enemy class and status in scoreboard and player panel +/*// This makes us able to see enemy class and status in scoreboard and player panel static std::unique_ptr patch_playerpanel; static std::unique_ptr patch_scoreboard1; static std::unique_ptr patch_scoreboard2; -static std::unique_ptr patch_scoreboard3; +static std::unique_ptr patch_scoreboard3;*/ // Credits to UNKN0WN namespace ScoreboardColoring @@ -719,10 +719,10 @@ void Shutdown() // unpatching local player render_zoomed = false; #if ENABLE_VISUALS && !ENFORCE_STREAM_SAFETY - patch_playerpanel->Shutdown(); + /*patch_playerpanel->Shutdown(); patch_scoreboard1->Shutdown(); patch_scoreboard2->Shutdown(); - patch_scoreboard3->Shutdown(); + patch_scoreboard3->Shutdown();*/ if (ScoreboardColoring::addr1 == 3 || ScoreboardColoring::addr2 == 2) return; @@ -739,7 +739,7 @@ static InitRoutine init([]() { render_zoomed.installChangeCallback(tryPatchLocalPlayerShouldDraw); EC::Register(EC::Draw, DrawText, "draw_misc_hacks", EC::average); #if !ENFORCE_STREAM_SAFETY - patch_playerpanel = std::make_unique(gSignatures.GetClientSignature, "0F 94 45 DF", 0x0, std::vector{ 0xC6, 0x45, 0xDF, 0x01 }); + /*patch_playerpanel = std::make_unique(gSignatures.GetClientSignature, "0F 94 45 DF", 0x0, std::vector{ 0xC6, 0x45, 0xDF, 0x01 }); uintptr_t addr_scrbrd = gSignatures.GetClientSignature("8B 10 89 74 24 04 89 04 24 FF 92 ? ? ? ? 83 F8 02 75 09"); patch_scoreboard1 = std::make_unique(addr_scrbrd, std::vector{ 0xEB, 0x31, 0xE8, 0x08, 0x46, 0x10, 0x00, 0xE9, 0xC9, 0x06, 0x00, 0x00 }); patch_scoreboard2 = std::make_unique(addr_scrbrd + 0xA0, std::vector{ 0xE9, 0x5D, 0xFF, 0xFF, 0xFF }); @@ -747,7 +747,7 @@ static InitRoutine init([]() { patch_playerpanel->Patch(); patch_scoreboard1->Patch(); patch_scoreboard2->Patch(); - patch_scoreboard3->Patch(); + patch_scoreboard3->Patch();*/ static BytePatch stealth_kill{ gSignatures.GetClientSignature, "84 C0 75 28 A1", 2, { 0x90, 0x90 } }; // stealth kill patch stealth_kill.Patch();