Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm making an intentionally vulnerable Ubuntu server for an information security class. I'm trying to create a bash shell that is accessible without authentication, a user should just be able to connect with netcat and get a full shell. This is done in the metasploitable2 vm on port 1524.

Does anyone know the best way to set this up?

I know that metasploitable is using the xinetd service, but I can't find the necessary configuration in the xinetd.conf or the xinetd.d/ directory.

I'm running Ubuntu 10.04.

share|improve this question

The ingreslock port (tcp/1524 is being controlled by an entry in /etc/inetd.conf).

Essentially an interactive bash shell is being provided to the listening port; the seventh field of the inetd.conf entry shows this.

You can achieve similar results by creating a similar entry in inetd.conf or by creating your own service for xinetd to listen for.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.