The sys admin's daily grind – Metasploitable
Gone to the Dogs
If you mess around with a pen-testing tool on your own network, you might survive the consequences, but chances are you'll take the prize for outstanding recklessness. Charly has some advice: Use Metasploitable, perhaps the most broken Linux ever.
You've probably heard of the Darwin Awards [1]. This hilarious prize goes to people who improve the quality of the human gene pool by removing their own genes in an outstandingly stupid way. Because of this, almost all Darwin Awards are awarded posthumously – the few exceptions are unappetizing and don't make good family reading material [2].
My favorite award went to two gentlemen who took their off-road vehicle onto a frozen lake to indulge in a spot of dynamite fishing. One of the men set fire to an explosive charge and threw it far away. The men were a bit shocked when their dog cleverly retrieved the dangerous stick.
Given this emergency, they pulled out guns to stop the dog, which promptly hid under the SUV for safety. Needless to say, the dynamite detonated, the car sank, and the blast blew away the clever owners. They lost consciousness and were later found frozen to death. Pity about the dog – respect for the forensic scientist who reconstructed the sequence.
Bad luck stories can also be found on the web. Every administrator can probably relate to a tale of pen-testing tools running amok and suddenly shooting down the main production – preferably instigated by a trainee who wanted to see exactly what this or that metasploit could do.
Attacking your own network is really not necessary because there is an adventure playground waiting out there for you to romp around in safely. It goes by the name Metasploitable, and I think the name says it all. The Linux image is available online [3] and can be started in VMware or VirtualBox. After doing this, you have a huge range of vulnerabilities to attack.
Vulnerabilities En Masse
Some vulnerabilities are only of archaeological interest, such as the broken R services rlogin
and rsh
, which older readers will remember. Younger readers may only be familiar with SSH and that, too, is a disaster on Metasploitable – not to mention the weak to non-existent default passwords of all kinds of services.
Another group of vulnerabilities involves trojaned services, of which Metasploitable offers a fair number. They arise when someone hacks the download repository of a popular program and replaces the software with malware or a backdoored version. If you install this version on the server, you can soon look forward to unexpected visitors.
An example is the popular FTP daemon, vsftpd
. It was once replaced with a version that opened a root shell on port 6200 if users logged on with a smiley after the username (Figure 1).
So, if your trainees want to play pen-tester, give them Metasploitable and disconnect them from the LAN switch. They will be so fascinated with the options that they will not have any time at all for dynamite fishing.
Infos
- Darwin Awards: http://darwinawards.com
- "The Thing Ring," a castration story: http://darwinawards.com/darwin/darwin2014-05.html
- Metasploitable: http://sourceforge.net/projects/metasploitable/
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
Rhino Linux Announces Latest "Quick Update"
If you prefer your Linux distribution to be of the rolling type, Rhino Linux delivers a beautiful and reliable experience.
-
Plasma Desktop Will Soon Ask for Donations
The next iteration of Plasma has reached the soft feature freeze for the 6.2 version and includes a feature that could be divisive.
-
Linux Market Share Hits New High
For the first time, the Linux market share has reached a new high for desktops, and the trend looks like it will continue.
-
LibreOffice 24.8 Delivers New Features
LibreOffice is often considered the de facto standard office suite for the Linux operating system.
-
Deepin 23 Offers Wayland Support and New AI Tool
Deepin has been considered one of the most beautiful desktop operating systems for a long time and the arrival of version 23 has bolstered that reputation.
-
CachyOS Adds Support for System76's COSMIC Desktop
The August 2024 release of CachyOS includes support for the COSMIC desktop as well as some important bits for video.
-
Linux Foundation Adopts OMI to Foster Ethical LLMs
The Open Model Initiative hopes to create community LLMs that rival proprietary models but avoid restrictive licensing that limits usage.
-
Ubuntu 24.10 to Include the Latest Linux Kernel
Ubuntu users have grown accustomed to their favorite distribution shipping with a kernel that's not quite as up-to-date as other distros but that changes with 24.10.
-
Plasma Desktop 6.1.4 Release Includes Improvements and Bug Fixes
The latest release from the KDE team improves the KWin window and composite managers and plenty of fixes.
-
Manjaro Team Tests Immutable Version of its Arch-Based Distribution
If you're a fan of immutable operating systems, you'll be thrilled to know that the Manjaro team is working on an immutable spin that is now available for testing.