Target
/usr/bin/target
#!/bin/bash
while getopts s:t:h flag
do
case "${flag}" in
s) target_ip=${OPTARG};;
t) target_ip=${OPTARG};;
h) target_ip=${OPTARG};;
esac
done
if [ "$target_ip" != "" ]; then
echo $target_ip > "/tmp/target_ip"
fi
cat "/tmp/target_ip"