Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
80bfa1094b
6
attach
6
attach
@ -34,11 +34,11 @@ echo Attaching to "$proc"
|
||||
|
||||
# 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 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
|
||||
|
||||
FILENAME="/tmp/.gl$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 6 | head -n 1)"
|
||||
FILENAME="/tmp/.gl$(head /dev/urandom | tr -dc 'a-zA-Z0-9' | head -c 6)"
|
||||
|
||||
cp "bin/libcathook.so" "$FILENAME"
|
||||
|
||||
|
14
attach-gdb
14
attach-gdb
@ -1,10 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
if [ $SUDO_USER ]; then
|
||||
sudo -u $SUDO_USER ./scripts/updater --autoupdater
|
||||
else
|
||||
./scripts/updater
|
||||
fi
|
||||
RUNUSER="sudo -u $(logname)"
|
||||
$RUNUSER bash ./scripts/updater --autoupdater
|
||||
|
||||
line=$(pgrep -u $SUDO_USER hl2_linux)
|
||||
arr=($line)
|
||||
inst=$1
|
||||
@ -36,11 +34,11 @@ echo Attaching to "$proc"
|
||||
|
||||
# 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 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
|
||||
|
||||
FILENAME="/tmp/.gl$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 6 | head -n 1)"
|
||||
FILENAME="/tmp/.gl$(head /dev/urandom | tr -dc 'a-zA-Z0-9' | head -c 6)"
|
||||
|
||||
cp "bin/libcathook.so" "$FILENAME"
|
||||
|
||||
|
@ -3,11 +3,9 @@
|
||||
# Thank you LWSS
|
||||
# https://github.com/LWSS/Fuzion/commit/a53b6c634cde0ed47b08dd587ba40a3806adf3fe
|
||||
|
||||
if [ $SUDO_USER ]; then
|
||||
sudo -u $SUDO_USER ./scripts/updater --autoupdater
|
||||
else
|
||||
./scripts/updater
|
||||
fi
|
||||
RUNUSER="sudo -u $(logname)"
|
||||
$RUNUSER bash ./scripts/updater --autoupdater
|
||||
|
||||
line=$(pgrep -u $SUDO_USER hl2_linux)
|
||||
arr=($line)
|
||||
inst=$1
|
||||
@ -32,8 +30,8 @@ echo Attaching to "$proc"
|
||||
|
||||
# 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 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
|
||||
|
||||
# Get a Random name from the build_names file.
|
||||
|
Reference in New Issue
Block a user