OpenAdmin Exploit Not Executing

Hi all, newbie here.
I’m trying to run the OpenAdmin 18.1.1. RCE Exploit as shown in the writeup I’m following, but I’m getting errors like “\r is not a command” when that doesn’t even show up in the code. I’m a little stumped. Any suggestions?

This was asked & answered a few times in the original thread for OpenAdmin ( and its better to ask questions in the thread for the box as you are much more likely to get answers.

However in this instance you might want to run dos2unix on the script to see if it removes any excess carriage returns and line breaks.