> For the complete documentation index, see [llms.txt](https://davidtancredi.gitbook.io/pentesting-notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://davidtancredi.gitbook.io/pentesting-notes/r3dcl1ff/sysadmin/pimp-my-kali.md).

# Pimp my kali

**#Securing the system**

```
1)  passwd  (type twice)

2)  apt-get update |  apt-get upgrade | apt-get dist-upgrade | 

#Custom script

#!/bin/bash
set -e
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade


```

**#Reconfigure ssh**&#x20;

```
 cd /etc/ssh
 ls
 mkdir old_keys
 mv ssh_host_* /etc/ssh/old_keys
 ls old_keys
 dpkg-reconfigure openssh-server
 md5sum ssh_host_*
 md5sum /etc/ssh/old_keys/ssh_host_*
```

**#Adding a user**&#x20;

```
adduser
usermod -a -G sudo redcliff
adduser redcliff sudo   
```

**#Updating the essentials**

```
sudo apt install seclists curl enum4linux feroxbuster impacket-scripts nbtscan nikto nmap onesixtyone oscanner redis-tools smbclient smbmap snmp sslscan sipvicious tnscmd10g whatweb wkhtmltopdf
sudo apt-get upgrade metasploit-framework
searchsploit -u 
sudo apt install -y docker.io
sudo systemctl enable docker --now
sudo apt install golang
go install github.com/hakluke/hakrawler@latest

```

**#Resizing Screen on VMWare VM**

```
sudo apt update

sudo apt install fuse3

sudo apt -y --reinstall open-vm-tools-desktop fuse3
```

**#issues with Italian keyboard layout in VMWare pro + Kali**

```
sudo setxkbmap it
#not persistent across reboots

sudo yum install xorg-x11-xkb-utils 
#wazuh Centos specific

```
