Remove precompiled partybypass
1.8 mb of wasted space
This commit is contained in:
parent
be2004fab6
commit
968d635bd8
1
attach
1
attach
@ -1,7 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
sudo ./scripts/auto-updater
|
||||
sudo ./scripts/attach-partybypass $1
|
||||
line=$(pidof hl2_linux)
|
||||
arr=($line)
|
||||
inst=$1
|
||||
|
@ -1,7 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
sudo ./scripts/auto-updater
|
||||
sudo ./scripts/attach-partybypass $1
|
||||
line=$(pidof hl2_linux)
|
||||
arr=($line)
|
||||
inst=$1
|
||||
|
@ -4,7 +4,6 @@
|
||||
# https://github.com/LWSS/Fuzion/commit/a53b6c634cde0ed47b08dd587ba40a3806adf3fe
|
||||
|
||||
sudo ./scripts/auto-updater
|
||||
sudo ./scripts/attach-partybypass $1
|
||||
line=$(pidof hl2_linux)
|
||||
arr=($line)
|
||||
inst=$1
|
||||
|
Binary file not shown.
@ -1,52 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
if [ ! -f ./scripts/partybypass-preferences ]; then
|
||||
while true; do
|
||||
echo 'https://github.com/nullworks/cathook/wiki/What-is-Partybypass-and-how-do-I-use-it%3F'
|
||||
read -p "Do you want to enable the precompiled partybypass library? y/n " yn
|
||||
case $yn in
|
||||
[Yy]* ) echo true > ./scripts/partybypass-preferences; break;;
|
||||
[Nn]* ) echo false > ./scripts/partybypass-preferences; exit;;
|
||||
* ) echo "Please answer y or n.";;
|
||||
esac
|
||||
done
|
||||
fi
|
||||
if [ `cat ./scripts/partybypass-preferences` == "true" ]; then
|
||||
line=$(pidof hl2_linux)
|
||||
arr=($line)
|
||||
inst=$1
|
||||
if [ $# == 0 ]; then
|
||||
inst=0
|
||||
fi
|
||||
|
||||
if [ ${#arr[@]} == 0 ]; then
|
||||
echo TF2 isn\'t running!
|
||||
exit
|
||||
fi
|
||||
|
||||
if [ $inst -gt ${#arr[@]} ] || [ $inst == ${#arr[@]} ]; then
|
||||
echo wrong index!
|
||||
exit
|
||||
fi
|
||||
|
||||
proc=${arr[$inst]}
|
||||
|
||||
# pBypass for crash dumps being sent
|
||||
# You may also want to consider using -nobreakpad in your launch options.
|
||||
sudo rm -rf /tmp/dumps # Remove if it exists
|
||||
sudo mkdir /tmp/dumps # Make it as root
|
||||
sudo chmod 000 /tmp/dumps # No permissions
|
||||
|
||||
FILENAME="/tmp/.gl$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 6 | head -n 1)"
|
||||
|
||||
cp "./lib/libpartybypass-linux.so" "$FILENAME"
|
||||
|
||||
gdb -n -q -batch \
|
||||
-ex "attach $proc" \
|
||||
-ex "set \$dlopen = (void*(*)(char*, int)) dlopen" \
|
||||
-ex "call \$dlopen(\"$FILENAME\", 1)" \
|
||||
-ex "detach" \
|
||||
-ex "quit" > /dev/null 2>&1
|
||||
|
||||
rm $FILENAME
|
||||
echo -e "\n\033[1;34mPartybypass injected.\033[0m" && exit 0
|
||||
fi
|
@ -38,5 +38,3 @@ settings::Bool clean_screenshots{ "visual.clean-screenshots", "false" };
|
||||
settings::Bool nolerp{ "misc.no-lerp", "false" };
|
||||
settings::Bool no_zoom{ "remove.scope", "false" };
|
||||
settings::Bool disable_visuals{ "visual.disable", "false" };
|
||||
|
||||
static CatCommand identify("print_steamid", "Prints your SteamID", []() { g_ICvar->ConsolePrintf("%u\n", g_ISteamUser->GetSteamID().GetAccountID()); });
|
||||
|
@ -16,6 +16,7 @@ static settings::Bool autojoin_team{ "autojoin.team", "false" };
|
||||
static settings::Int autojoin_class{ "autojoin.class", "0" };
|
||||
static settings::Bool auto_queue{ "autojoin.auto-queue", "false" };
|
||||
static settings::Bool auto_requeue{ "autojoin.auto-requeue", "false" };
|
||||
static settings::Bool partybypass{ "hack.party-bypass", "true" };
|
||||
|
||||
namespace hacks::shared::autojoin
|
||||
{
|
||||
@ -130,5 +131,18 @@ void onShutdown()
|
||||
tfmm::startQueue();
|
||||
}
|
||||
|
||||
static InitRoutine init([]() { EC::Register(EC::CreateMove, update, "cm_autojoin", EC::average); });
|
||||
static CatCommand get_steamid("print_steamid", "Prints your SteamID", []() { g_ICvar->ConsolePrintf("%u\n", g_ISteamUser->GetSteamID().GetAccountID()); });
|
||||
|
||||
static InitRoutine init([]() {
|
||||
EC::Register(EC::CreateMove, update, "cm_autojoin", EC::average);
|
||||
static BytePatch p = { gSignatures.GetClientSignature, "55 89 E5 53 83 EC 14 8B 45 08 8B 40 30", 0x00, { 0x31, 0xC0, 0x40, 0xC3 } };
|
||||
if (*partybypass)
|
||||
p.Patch();
|
||||
partybypass.installChangeCallback([](settings::VariableBase<bool> &, bool new_val) {
|
||||
if (new_val)
|
||||
p.Patch();
|
||||
else
|
||||
p.Shutdown();
|
||||
});
|
||||
});
|
||||
} // namespace hacks::shared::autojoin
|
||||
|
Reference in New Issue
Block a user