Athena OS RDP Image
Athena OS container brings you to live a funny hacking experience in a containerized environment:
- Select your favourite InfoSec role between Bug Bounty Hunter, Red Teamer, OSINT Specialist and much more
- Play Hack The Box machines for improving your skills
- Explore more than 2800+ hacking tools retrievable by Arch Linux and BlackArch repositories
- Make your Capture The Flag or ethical hacking activity efficient
Click Docker icon above to explore Athena OS Docker containers!
Usage
Athena OS container has been developed in order to be run also by podman. The choice to use podman comes from its advantages over docker, one of most important: security.
According to your preference, install docker
and docker-compose
packages or podman
package for your Linux environment.
In case you are using podman, edit /etc/containers/registries.conf
and add:
in order to allow podman to search for images in Docker Hub.
Hack The Box API Token
Athena OS container allows you to learn and play on Hack The Box platform. It is possible to access to Hack The Box by using your App Token. Retrieve your App Token from the Hack The Box website in your Profile Settings.
Docker
You can run the container by docker-compose
(recommended) or docker run
.
docker-compose
The docker-compose.yml
file should have the following content:
Run the container by:
docker run
or
In case you exit the container and need to re-enter, run:
In case the container is not running, run:
For stopping the container, run:
For deleting the container, run:
Podman (Untested)
You can run the container by podman run
.
podman run
or
Podman will automatically replicate /etc/hosts
and /etc/hostname
files of your host. For preventing this, add --no-hosts
argument to the podman run
command above.
In case you exit the container and need to re-enter, run:
In case the container is not running, run:
For stopping the container, run:
For deleting the container, run:
Default Credentials
Setting HTB API Token
Once you retrieved your HTB API Token from your Hack The Box website profile settings, you can set the HTB API Token in two ways:
- By connecting by RDP to the GUI as explained in the next section, open terminal and run
htb-update
(or clicking HTB Update button in Athena Welcome) - If you don’t want to connect to the GUI environment, run the following commands:
Connect to the desktop by RDP
You should now be able to access your full-featured GNOME desktop using
the RDP client of your choice. For example, using Remmina along with the install of freerdp
package:
Remmina features
When you run Remmina, expand its window and on the left side press the Toggle dynamic resolution update
icon button for automatically resizing the display.
For making the keyboard shortcut effective on the connected environment, on the left side press the Grab all keyboard events
icon.
For copy and paste text from the host to the environment, copy a string, then, on the left side, click on Tools
icon button and select Keystrokes
and Send clipboard content as keystrokes
.
Customizing and building the image
Clone this repository, edit Dockerfile
and then run docker build
as usual:
Invalidating cache
Use --no-cache
option:
Deployment on Apple M1/M2
Download Docker Desktop, open it and go to Settings, then enable it (use Rosetta for x86/amd64 emulation on Apple Silicon):
In General, enable VirtueFS, then apply and restart:
Open Terminal and pull Athena OS container by using docker pull --platform linux/amd64 athenaos/rdp:latest
for Athena OS RDP container.
Once pulled, run:
Login by using athena:athena credential.
To connect by RDP session, use Microsoft Remote Desktop Service, type 127.0.0.1:23389:
Save and connect to it.