Usefull command's
To enable SSH on your Linux box, you can use the following command:
Output transformation with cut
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
:
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
Last updated