os:kali:css-arm
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| os:kali:css-arm [2024/11/15 05:40] – [Volatility 2 & python2] warnaud | os:kali:css-arm [2024/11/16 15:16] (current) – [Yara] warnaud | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Kali Linux for CSP/CSS ====== | ||
| + | Kali Linux install for Virtualbox on **__Apple Silicon__** M1/ | ||
| + | For x86_64 -> [[os: | ||
| + | :!: :!: NOT FOR PRODUCTION :!: :!: | ||
| + | |||
| + | ===== Prerequisite ===== | ||
| + | * Apple Silicon MX CPU | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * Kali ARM iso install [[https:// | ||
| + | |||
| + | ===== Install ===== | ||
| + | Create a VM using the iso as bootable CD | ||
| + | {{ : | ||
| + | ==== Launch the machine ==== | ||
| + | |||
| + | {{ : | ||
| + | ==== select language ==== | ||
| + | |||
| + | {{ : | ||
| + | ==== select country ==== | ||
| + | |||
| + | {{ : | ||
| + | {{ : | ||
| + | {{ : | ||
| + | ==== locales ==== | ||
| + | |||
| + | {{ : | ||
| + | ==== Keyboard mapping ==== | ||
| + | |||
| + | {{ : | ||
| + | or | ||
| + | {{ : | ||
| + | ==== machine name ==== | ||
| + | |||
| + | {{ : | ||
| + | ==== user (sudoer) + password ==== | ||
| + | |||
| + | {{ : | ||
| + | {{ : | ||
| + | ==== Partitioning ==== | ||
| + | |||
| + | {{ : | ||
| + | {{ : | ||
| + | {{ : | ||
| + | {{ : | ||
| + | {{ : | ||
| + | ==== Default packages ==== | ||
| + | |||
| + | {{ : | ||
| + | {{ : | ||
| + | ==== First reboot ==== | ||
| + | check your login/pass then shutdown the VM | ||
| + | {{ : | ||
| + | {{ : | ||
| + | ==== Snapshot ==== | ||
| + | {{ : | ||
| + | ==== First full upgrade ==== | ||
| + | <code bash> | ||
| + | sudo su | ||
| + | </ | ||
| + | <code bash>apt update | ||
| + | apt dist-upgrade -y && reboot</ | ||
| + | {{ : | ||
| + | we can safely apply any update/ | ||
| + | {{ : | ||
| + | ... | ||
| + | {{ : | ||
| + | Takes a while but should finish then immediately reboot. If it doesn' | ||
| + | ==== snapshot II ==== | ||
| + | shutdown the machine and make a new snapshot | ||
| + | {{ : | ||
| + | ==== Guest Tools installation ==== | ||
| + | boot the VM, log in your session\\ | ||
| + | click on the menu Devices> Insert Guest Addition CD\\ | ||
| + | Right-click on the CD on the Desktop and choose "Mount Volume" | ||
| + | {{ : | ||
| + | Launch a terminal | ||
| + | <code bash> sudo su</ | ||
| + | <code bash> cd / | ||
| + | {{ : | ||
| + | <code bash> apt install -y dkms linux-headers-`uname -r` build-essential | ||
| + | sh ./ | ||
| + | usermod -sG vboxsf warnaud | ||
| + | </ | ||
| + | :!: chane **warnaud** by the name of your user | ||
| + | {{ : | ||
| + | ==== Fine tuning ==== | ||
| + | stop the machine and click on the settings button to fine tune it: | ||
| + | * add more RAM and CPU if possible (runs fine with defaults) | ||
| + | * add clipboard | ||
| + | * 3D acceleration | ||
| + | * disable audio | ||
| + | * share folder | ||
| + | |||
| + | {{ : | ||
| + | {{ : | ||
| + | {{ : | ||
| + | {{ : | ||
| + | {{ : | ||
| + | {{ : | ||
| + | ==== Extra packages ==== | ||
| + | Start the machine, now you " | ||
| + | <code bash> apt update && apt install -y htop ccze dfc iftop libreoffice libreoffice-l10n-de libreoffice-l10n-fr clipit zaproxy</ | ||
| + | |||
| + | ===== Hacks ===== | ||
| + | ==== sudoers ==== | ||
| + | <code bash> | ||
| + | <code bash> | ||
| + | ==== Autologin ==== | ||
| + | <code bash> | ||
| + | === Manual === | ||
| + | |||
| + | <code bash> vi / | ||
| + | <code perl> | ||
| + | ... | ||
| + | [Seat:*] | ||
| + | ... | ||
| + | autologin-user=kali | ||
| + | autologin-user-timeout=0 | ||
| + | ... | ||
| + | </ | ||
| + | === One-liner === | ||
| + | 8-) | ||
| + | <code bash> sudo sed -i ' | ||
| + | ===== Extra packages ===== | ||
| + | ==== Docker ==== | ||
| + | <code bash> | ||
| + | <code bash> | ||
| + | apt update | ||
| + | apt install -y apt-transport-https ca-certificates curl gnupg lsb-release | ||
| + | # Add Docker' | ||
| + | curl -fsSL https:// | ||
| + | # Add Docker repository (using Debian as base since Kali is Debian-based) | ||
| + | echo "deb [arch=arm64 signed-by=/ | ||
| + | |||
| + | # Update package list again | ||
| + | apt update | ||
| + | apt install -y docker-ce docker-ce-cli containerd.io | ||
| + | systemctl enable docker --now | ||
| + | usermod -aG docker kali | ||
| + | </ | ||
| + | |||
| + | ==== Docker-compose ==== | ||
| + | check: https:// | ||
| + | <code bash> | ||
| + | <code bash> | ||
| + | sudo wget https:// | ||
| + | chmod +x / | ||
| + | </ | ||
| + | |||
| + | ==== Test ==== | ||
| + | Does it work?\\ | ||
| + | :!: log out or reboot so the user kali is part of the docker group :!: | ||
| + | <code bash> | ||
| + | docker-compose info</ | ||
| + | ==== Volatility 2 & python2 ==== | ||
| + | <code bash> | ||
| + | <code bash> | ||
| + | # Install dependencies | ||
| + | apt install -y python2 python2-dev build-essential git libdistorm3-dev yara libraw1394-11 libcapstone-dev capstone-tool tzdata libpython2-dev libjpeg-dev zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev python2.7-tk | ||
| + | #Install pip | ||
| + | cd | ||
| + | curl https:// | ||
| + | python2 get-pip.py | ||
| + | # Install Python deps with python2 pip | ||
| + | python2 -m pip install -U setuptools wheel | ||
| + | python2 -m pip install importlib | ||
| + | python2 -m pip install distorm3 | ||
| + | python2 -m pip install pycrypto | ||
| + | python2 -m pip install yara-python==3.11.0 | ||
| + | python2 -m pip install pillow | ||
| + | python2 -m pip install openpyxl | ||
| + | python2 -m pip install pytz | ||
| + | python2 -m pip install ipython | ||
| + | python2 -m pip install capstone | ||
| + | # link yara | ||
| + | ln -s / | ||
| + | # Check python & yara are working | ||
| + | python2 -c " | ||
| + | yara --version | ||
| + | |||
| + | # Clone Volatility 2 | ||
| + | cd /opt | ||
| + | git clone https:// | ||
| + | echo "#! / | ||
| + | / | ||
| + | chmod +x / | ||
| + | </ | ||
| + | ==== Volatility 3 ==== | ||
| + | <code bash> sudo su</ | ||
| + | <code bash> | ||
| + | cd /opt | ||
| + | git clone https:// | ||
| + | ln -s / | ||
| + | |||
| + | ==== Yara ==== | ||
| + | <code bash> | ||
| + | <code bash> | ||
| + | mkdir /opt/yara | ||
| + | cd /opt/yara | ||
| + | git clone https:// | ||
