Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

Latest commit

 

History

History
112 lines (72 loc) · 2.83 KB

ArchLinux.md

File metadata and controls

112 lines (72 loc) · 2.83 KB

Arch Linux based Virtual Machine with Black Arch repositories

This Linux distribution might have different package manager than many have used to, but it has one of the greatest wikis for possible problem situations. See Arch Linux Wiki.

This virtual machine has only those tools included that are needed to do the most of the exercises in the course, in case you don't have enough space on hard drive. Package ecosystem is also much better than in Kali Linux, if you are willing to install more by yourself.

Image Info

Image is distributed in OVA format and uses Gnome Desktop Environment as default.

VirtualBox 6.1 guest additions included. Use same version for the best experience.

For VMware, open-vm-tools are included.

  • Username: arch
  • Password: arch

Black Arch repository

You can directly install Black Arch tools if you need some special ones. Only few which are mandatory, are preinstalled to save the space.

See their tools section for available tools.

Installing packages

Update package index

sudo pacman -Sy

Install package (You can look from here https://archlinux.org/packages/ for official packages and https://blackarch.org/tools.html for pentesting tools.)

sudo pacman -S <package-name>

Remove package

sudo pacman -R <package-name>

Upgrade all packages

sudo pacman -Syu

Clean package cache:

sudo pacman -Sc

Installing AUR packages (from https://aur.archlinux.org/packages/)

Arch Linux has huge user supplied package ecosystem, which is located in the different repository. See https://aur.archlinux.org/packages/. Usually you need some kind of helper for installing these packages.

yay helper has been pre-installed for installing AUR packages.

Install AUR package (Note, that sudo not included)

yay -S <aur-package-name>

Remove AUR package

yay -R <aur-package-name>

Upgrade all packages

yay

Special cases on labs

Lab 1

Afl test cases are in different location /usr/share/afl/testcases/

Lab 2

Restart apache with

sudo systemctl restart httpd.service

Lab 4

For compiling 32-bit versions of the binaries, 32-bit support must be enabled. This is not implemented in the provided VM version by default.

Edit file /etc/pacman.conf

Uncomment the following lines:

[multilib]
Include = /etc/pacman.d/mirrorlist

Then install 32-bit development packages:

sudo pacman -Sy && sudo pacman -S multilib-devel

Task 3A might not be possible to do directly on Arch Linux (protected). It is possible to implement this in Kali based Docker image for example.

Lab 6

Some tools are missing, but this is intentional.