To secure an internship aboard, it is usually necessary to find a company that sets-up the internship. Internships are commonly set-up through a university for its students. Some agencies require a fee to secure a placement.
If you know anyone in Morocco - get in touch! It's not necessarily what you know, but who you know. Friends and family, or any contact you have in your desired business may know of a position. There are also professional social networks which allow for people to make business contacts. You may also use EasyExpat's forums or networks to meet other people living and working in Morocco and make business contacts.
If hired through an agency, the agency usually guides the intern through the process. Most interns receive a Student Visa. Morocco does not require visas for citizens of many nations for up to 90 days. For more information on visa, consult the section on "Passport and Visas".