Just do 
```ruby
if res and res.code == 500
  print_status("Expected answer, but unknown exploiting status. Try to login with user admin and blank password")
else
  print_error("Unexpected answer")
end
```