I am not understanding why this code is not sending the correct information to netcat.
Not sure what to try
#!/bin/bash
for i in {0000..9999}
do
echo UoMYTrfrBFHyQXmg6gzctqAwOmw1IohZ $i | nc localhost 30002
done
Goal is to send a hashed password as well as a 4 digit pin over netcat to port 30002 on localhost. Netcat will return the goal password after receiving the correct password/pin combination.