Convert line breaks from DOS to Linux

dos2unix

root@Host-001:/usr/share/exploitdb/exploits/php/webapps# ./47691.sh http://10.10.10.171/ona/

./47691.sh: line 8: $'\r': command not found

./47691.sh: line 16: $'\r': command not found

./47691.sh: line 18: $'\r': command not found

./47691.sh: line 23: syntax error near unexpected token `done'

./47691.sh: line 23: `done'

root@Host-001:/usr/share/exploitdb/exploits/php/webapps# dos2unix 47691.sh 

root@Host-001:/usr/share/exploitdb/exploits/php/webapps# ./47691.sh 10.10.10.171/ona/
$ whoami
www-data

unix2dos

Last updated