root@rhel:~# uname -a Linux rhel 5.14.0-427.18.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Mon May 13 10:47:09 EDT 2024 x86_64 x86_64 x86_64 GNU/Linux root@rhel:~# toolbox enter bash: toolbox: command not found root@rhel:~# sudo yum install toolbox Updating Subscription Management repositories. Last metadata expiration check: 0:06:52 ago on Mon 08 Jul 2024 02:50:14 PM UTC. Dependencies resolved. =================================================================================================================================================================================================================== Package Architecture Version Repository Size =================================================================================================================================================================================================================== Installing: toolbox x86_64 0.0.99.5-2.el9 rhel-9-for-x86_64-appstream-rpms 2.5 M Installing weak dependencies: skopeo x86_64 2:1.14.3-2.el9_4 rhel-9-for-x86_64-appstream-rpms 8.6 M Transaction Summary =================================================================================================================================================================================================================== Install 2 Packages Total download size: 11 M Installed size: 35 M Is this ok [y/N]: y Downloading Packages: (1/2): toolbox-0.0.99.5-2.el9.x86_64.rpm 5.8 MB/s | 2.5 MB 00:00 (2/2): skopeo-1.14.3-2.el9_4.x86_64.rpm 14 MB/s | 8.6 MB 00:00 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Total 18 MB/s | 11 MB 00:00 Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Installing : skopeo-2:1.14.3-2.el9_4.x86_64 1/2 Installing : toolbox-0.0.99.5-2.el9.x86_64 2/2 Running scriptlet: toolbox-0.0.99.5-2.el9.x86_64 2/2 Verifying : toolbox-0.0.99.5-2.el9.x86_64 1/2 Verifying : skopeo-2:1.14.3-2.el9_4.x86_64 2/2 Installed products updated. Installed: skopeo-2:1.14.3-2.el9_4.x86_64 toolbox-0.0.99.5-2.el9.x86_64 Complete! root@rhel:~# toolbox No toolbox containers found. Create now? [y/N] y Image required to create toolbox container. Download registry.access.redhat.com/ubi9/toolbox:latest (288.8MB)? [y/N]: y Welcome to the Toolbox; a container where you can install and run all your tools. - To create a new tools container, run 'toolbox create'. root@toolbox:~# toolbox create root@toolbox:~# toolbox enter root@toolbox:~# uname -a Linux toolbox 5.14.0-427.18.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Mon May 13 10:47:09 EDT 2024 x86_64 x86_64 x86_64 GNU/Linux root@rhel:~# toolbox create --distro fedora --release 40 Image required to create toolbox container. Download registry.fedoraproject.org/fedora-toolbox:40 (375.6MB)? [y/N]: y Pulling registry.fedoraproject.org/fedora-toolbox:40: \ root@rhel:~# sudo toolbox enter root@toolbox:~# uname -a Linux toolbox 5.14.0-427.18.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Mon May 13 10:47:09 EDT 2024 x86_64 x86_64 x86_64 GNU/Linux root@toolbox:~# nmap -sS scanme.nmap.org bash: nmap: command not found root@toolbox:~# sudo dnf install nmap Updating Subscription Management repositories. Unable to read consumer identity subscription-manager is operating in container mode. This system is not registered with an entitlement server. You can use subscription-manager to register. Red Hat Enterprise Linux 9 for x86_64 - AppStream (RPMs) 30 MB/s | 37 MB 00:01 Red Hat Enterprise Linux 9 for x86_64 - BaseOS (RPMs) 30 MB/s | 26 MB 00:00 Red Hat Universal Base Image 9 (RPMs) - BaseOS 1.5 MB/s | 516 kB 00:00 Red Hat Universal Base Image 9 (RPMs) - AppStream 6.0 MB/s | 2.1 MB 00:00 Red Hat Universal Base Image 9 (RPMs) - CodeReady Builder 959 kB/s | 274 kB 00:00 Dependencies resolved. =================================================================================================================================================================================================================== Package Architecture Version Repository Size =================================================================================================================================================================================================================== Installing: nmap x86_64 3:7.92-1.el9 rhel-9-for-x86_64-appstream-rpms 5.6 M Installing dependencies: libibverbs x86_64 48.0-1.el9 rhel-9-for-x86_64-baseos-rpms 405 k libnl3 x86_64 3.9.0-1.el9 rhel-9-for-x86_64-baseos-rpms 359 k libpcap x86_64 14:1.10.0-4.el9 rhel-9-for-x86_64-baseos-rpms 177 k nmap-ncat x86_64 3:7.92-1.el9 rhel-9-for-x86_64-appstream-rpms 229 k Transaction Summary =================================================================================================================================================================================================================== Install 5 Packages Total download size: 6.8 M Installed size: 27 M Is this ok [y/N]: y Downloading Packages: (1/5): nmap-ncat-7.92-1.el9.x86_64.rpm 996 kB/s | 229 kB 00:00 (2/5): nmap-7.92-1.el9.x86_64.rpm 14 MB/s | 5.6 MB 00:00 (3/5): libibverbs-48.0-1.el9.x86_64.rpm 2.0 MB/s | 405 kB 00:00 (4/5): libpcap-1.10.0-4.el9.x86_64.rpm 388 kB/s | 177 kB 00:00 (5/5): libnl3-3.9.0-1.el9.x86_64.rpm 2.1 MB/s | 359 kB 00:00 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Total 11 MB/s | 6.8 MB 00:00 Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Installing : libnl3-3.9.0-1.el9.x86_64 1/5 Installing : libibverbs-48.0-1.el9.x86_64 2/5 Installing : libpcap-14:1.10.0-4.el9.x86_64 3/5 Installing : nmap-ncat-3:7.92-1.el9.x86_64 4/5 Running scriptlet: nmap-ncat-3:7.92-1.el9.x86_64 4/5 Installing : nmap-3:7.92-1.el9.x86_64 5/5 Running scriptlet: nmap-3:7.92-1.el9.x86_64 5/5 Verifying : nmap-3:7.92-1.el9.x86_64 1/5 Verifying : nmap-ncat-3:7.92-1.el9.x86_64 2/5 Verifying : libpcap-14:1.10.0-4.el9.x86_64 3/5 Verifying : libibverbs-48.0-1.el9.x86_64 4/5 Verifying : libnl3-3.9.0-1.el9.x86_64 5/5 Installed products updated. root@toolbox:~# ^C root@toolbox:~# nmap -sS scanme.nmap.org Starting Nmap 7.92 ( https://nmap.org ) at 2024-07-08 15:15 UTC Nmap scan report for scanme.nmap.org (45.33.32.156) Host is up (0.14s latency). Other addresses for scanme.nmap.org (not scanned): 2600:3c01::f03c:91ff:fe18:bb2f Not shown: 996 closed tcp ports (reset) PORT STATE SERVICE 22/tcp open ssh 80/tcp open http 9929/tcp open nping-echo 31337/tcp open Elite Nmap done: 1 IP address (1 host up) scanned in 2.59 seconds