akkoma/diagnostic-tools/binary-leak-checker.sh

11 lines
214 B
Bash
Raw Permalink Normal View History

2024-06-10 08:10:47 -06:00
if [ "$#" -ne 2 ]; then
echo "Usage: binary-leak-checker.sh <nodename> <erlang cookie>"
exit 1
fi
echo "The command you want to run is:
:recon.bin_leak(10)
"
iex --sname debug --remsh $1 --erl "-setcookie $2"