For the complete documentation index, see llms.txt. This page is also available as Markdown.

Usefull command's

  1. Give more space to the VM from your hypervisor

  2. Resizing the disk of a VM

sudo apt clean
##Verify disk space of /var
df -h /var
##Resize the disk
lsblk
##Verify Disk space
df -h /
sudo parted /dev/sda
##Inside Parted
resizepart 1 100%
yes
quit
##Verify disk expansion
lsblk
##Resize partition with the expansion
sudo resize2fs /dev/sda1
##Verify
df -h /

Install a new tool in Linux

Tmux - split windows in Kali

Userfull commands

  • Tilde on a Belgian keyboard (~)

  • ZIP

  • Copy content of a file

  • Python virtual environment

  • Start a tool from everywhere

  • To enable SSH on your Linux box, you can use the following command:

  • Output transformation with cut

  • Retrieve open ports with netstat on a local machine

FTP

connect to an FTP box

DNS issues

Change Java version

Other useful Bash commands

Search Specific Keyword

  • Search a specific keyword within files:

Start HTTP Server

  • Start a simple HTTP server on a specified port (example: port 4444):

Change Keyboard Language

  • Change keyboard language to Belgian (be):

Add Entry to /etc/hosts

  • Add an entry in one line to /etc/hosts:

  • Add multiple entries (e.g vhosts)

Save Output to File

  • Save a string to a file:

Capture Network Traffic

  • Start capturing network traffic on a specified interface (example: tun0) and port (example: 389):

Show User Accounts and Groups in Linux

  • Display all user accounts and their groups in Linux:

Download File via SSH with SCP

  • Download a file from a remote server using SCP with specified port (example: 22):

Upload File via SSH with SCP

  • Upload a file to a remote server using SCP:

Connect Using Private Key via SSH

  • Connect to a remote server using a private key:

Change Permission on Private Key File

  • Change mode on id_rsa to obtain persistent access:

Search for a File in Linux

  • Search for a specific file from the current directory:

List All Files Including Hidden Ones

  • List all files including hidden files:

Get a Functional Shell After Reverse Shell

  • Obtain a functional shell after gaining a reverse shell:

Start HTTP Server on Port 80

  • Start a simple HTTP server on port 80:

Get Open Listening Ports on Linux

  • Get open listening ports on Linux:

Access Web Page with Curl

  • Access a webpage with curl:

If Kali Shows Black Screen

  • Run filecheck in console mode and fix filesystem issues:

Task Manager Alternatives

  • Use task manager alternatives like ftop, btop, htop:

Find Files with FZF

  • Find files interactively using fzf:

Display User Information

  • Show UID, GID, and groups information of the current user:

Get Info on Linux Command

  • Get a simpler explanation of a Linux command using tldr:

DNS Settings

  • Show DNS settings from the network manager:

Add User to Group

  • Add your user to the vboxsf group in a guest VM to access shared drives:

Edit GRUB Configuration

  • Add "mitigations=off" to the Linux command line in GRUB configuration:

  • Create a more stable shell after getting a reverse shell

Copy grep's output

Last updated