00 - Kali Linux Preparation

This is the guide to setup your Kali Linux for helping pen-test process

Docker

Install docker

sudo apt update
sudo apt install docker.io

Install docker-compose

sudo curl -SL https://github.com/docker/compose/releases/download/v2.29.6/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose

# check with
sudo docker-compose

Compiler & Interpreter

GCC

# gcc linux


# gcc windows for kali linux
sudo apt install gcc-mingw-w64

# if your kali machine 64-bit 
sudo apt install gcc-multilib g++-multilib
sudo apt-get install libc6-dev:i386 gcc:i386

sudo apt-get install g++-multilib libc6-dev-i386

Python2 & Python3

Pip2 & Pip3

If your Kali Linux have not pip2 just install with this documentation:

https://pip.pypa.io/en/latest/installation/

Important Program

Wine

tmux

https://tmuxcheatsheet.com/

PEASS (LinPEAS & WinPEAS)

Resource to Upload

Linux

LinEnum.sh

Windows

Persistence bat

save to hacker.bat

Web Preparation

Wordlist

SecList Wordlist (1.51 GB)

Script

Tmux Preparation

save this file to ~/.tmux.conf to help while copy paste in the tmux pane.

run this command:

note for tmux copy and paste:

ctrl + [ -> enter vi mode / copy mode

space -> enter the copy block mode

enter -> copy the selection

ctrl + ] -> paste

Active Directory Preparation

Windows PowerShell

Setup SMB in Kali Linux

install samba

backup the configuration

create this configuration to this file /etc/samba/smb.conf

Set SMB password for kali:

start services

add permission for the path:

Windows Computer/Server to mount the kali linux smb shares:

Last updated