Update avoid.sh

Fix bug in local network interface detection

Make payload more easily configurable