OpenAsar/PATCH.sh
2023-04-13 13:26:10 +00:00

11 lines
290 B
Bash
Executable file

#!/bin/sh
if [ ! "$1" ]; then
echo "Enter PATH to krisp's Node file."
exit 1
fi
NODE_PATH="$1"
PATCHED_NODE_PATH="$(echo $NODE_PATH | cut -d '.' -f 1)_patched.node"
xxd -p -c 0 "$NODE_PATH" | sed -E \'s/(4889dfe8........85c0)745c/\19090/' | xxd -p -r -c 0 > "$PATCHED_NODE_PATH"